forked from syssi/esphome-atorch-dl24
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathesp32-ac-meter-example-faker.yaml
25 lines (24 loc) · 1.17 KB
/
esp32-ac-meter-example-faker.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
<<: !include esp32-ac-meter-example.yaml
interval:
- interval: 8s
then:
- lambda: |-
const uint8_t frame[36] = {
0xFF, 0x55, 0x01, 0x01, 0x00, 0x09, 0x04, 0x00, 0x00, 0x0E, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x64, 0x01, 0xF4, 0x00, 0x85, 0x00, 0x2F, 0x00, 0x00, 0x0A, 0x09, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x39
};
id(atorch0).decode(frame, sizeof(frame));
- delay: 2s
- lambda: |-
const uint8_t frame[36] = {
0xFF, 0x55, 0x01, 0x01, 0x00, 0x08, 0xEB, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xFE, 0x00,
0x00, 0x64, 0x01, 0xF4, 0x00, 0x00, 0x00, 0x2F, 0x00, 0x31, 0x25, 0x14, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x66
};
id(atorch0).decode(frame, sizeof(frame));
- delay: 2s
- lambda: |-
const uint8_t frame[36] = {
0xFF, 0x55, 0x01, 0x01, 0x00, 0x08, 0xFF, 0x00, 0x00, 0x27, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x64, 0x01, 0xF4, 0x01, 0x74, 0x00, 0x31, 0x00, 0x00, 0x38, 0x08, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x88
};
id(atorch0).decode(frame, sizeof(frame));