-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
esp32-dc-meter-example-faker.yaml
25 lines (24 loc) · 1.17 KB
/
esp32-dc-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-dc-meter-example.yaml
interval:
- interval: 8s
then:
- lambda: |-
const uint8_t frame[36] = {
0xFF, 0x55, 0x01, 0x02, 0x00, 0x00, 0x20, 0x00, 0x4E, 0x20, 0x00, 0x13, 0xFA, 0x00, 0x00, 0x00, 0x11, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x25, 0x00, 0x02, 0x21, 0x1A, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x09
};
id(atorch0).decode(frame, sizeof(frame));
- delay: 2s
- lambda: |-
const uint8_t frame[36] = {
0xFF, 0x55, 0x01, 0x02, 0x00, 0x00, 0x20, 0x00, 0x4E, 0x1E, 0x00, 0x13, 0xFA, 0x00, 0x00, 0x00, 0x11, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x25, 0x00, 0x02, 0x21, 0x1B, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x08
};
id(atorch0).decode(frame, sizeof(frame));
- delay: 2s
- lambda: |-
const uint8_t frame[36] = {
0xFF, 0x55, 0x01, 0x02, 0x00, 0x00, 0x20, 0x00, 0x4E, 0x21, 0x00, 0x13, 0xFB, 0x00, 0x00, 0x00, 0x11, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x25, 0x00, 0x02, 0x21, 0x1C, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x15
};
id(atorch0).decode(frame, sizeof(frame));