forked from syssi/esphome-pipsolar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
esp8266-test-protocols.yaml
60 lines (51 loc) · 1.01 KB
/
esp8266-test-protocols.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
substitutions:
name: pipsolar-protocol-test
tx_pin: GPIO4
rx_pin: GPIO5
esphome:
name: ${name}
platform: ESP8266
board: d1_mini
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
api:
ota:
logger:
uart:
id: uart0
baud_rate: 2400
tx_pin: ${tx_pin}
rx_pin: ${rx_pin}
debug:
direction: BOTH
dummy_receiver: true
after:
delimiter: "\r"
sequence:
- lambda: UARTDebug::log_string(direction, bytes);
interval:
- interval: 30s
then:
# PI16
- uart.write: "QPI\r"
- delay: 2s
# PI17
- uart.write: "^P003PI\r"
- delay: 2s
# PI18
- uart.write: "^P005PIq\x8b\r"
- delay: 2s
# PI30/PI30MAX/PI30REVO
- uart.write: "QPI\xbe\xac\r"
- delay: 2s
# PI41
- uart.write: "QDIq\x1b\r"
- delay: 2s
- uart.write: "QPIRI\xF8T\r"
- delay: 2s
- uart.write: "QPIGS\xB7\xA9\r"
- delay: 2s
- uart.write: "QMODI\xC1\r"
- delay: 2s
- uart.write: "QFLAG\x98t\r"