forked from easybotics/esphome-ruixu-bms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
esp32-example-faker.yaml
24 lines (23 loc) · 1.32 KB
/
esp32-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
<<: !include esp32-example-debug.yaml
interval:
- interval: 4s
then:
- lambda: |-
id(bms0).on_seplos_modbus_data({
0x20, 0x00, 0x46, 0x00, 0xA0, 0x8E, 0x00, 0x01, 0x0E, 0x0F, 0xBB, 0x0F, 0xB6,
0x0F, 0xAC, 0x0F, 0xAC, 0x0F, 0xB9, 0x0F, 0xB6, 0x0F, 0xB9, 0x0F, 0xBD, 0x0F,
0xBD, 0x0F, 0xBD, 0x0F, 0xBC, 0x0F, 0xBF, 0x0F, 0xBF, 0x0F, 0xBF, 0x06, 0x0B,
0x2D, 0x0B, 0x2A, 0x0B, 0x30, 0x0B, 0x2A, 0x0B, 0x52, 0x0B, 0x2F, 0x00, 0x37,
0x16, 0x03, 0xCA, 0x04, 0x0A, 0xDA, 0xC0, 0x03, 0x9B, 0xDA, 0xC0, 0x00, 0x02,
0x03, 0xE8, 0x16, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
});
- delay: 2s
- lambda: |-
id(bms0).on_seplos_modbus_data({
0x20, 0x00, 0x46, 0x00, 0x10, 0x96, 0x00, 0x01, 0x10, 0x0C, 0xD8, 0x0C, 0xE8, 0x0C,
0xF4, 0x0C, 0xD7, 0x0C, 0xEE, 0x0C, 0xE5, 0x0C, 0xE1, 0x0C, 0xDD, 0x0C, 0xE9, 0x0C,
0xF0, 0x0C, 0xE8, 0x0C, 0xEF, 0x0C, 0xEB, 0x0C, 0xDA, 0x0C, 0xDE, 0x0C, 0xD9, 0x06,
0x0B, 0xA6, 0x0B, 0xA0, 0x0B, 0x97, 0x0B, 0xA6, 0x0B, 0xA5, 0x0B, 0xA2, 0xFD, 0x72,
0x14, 0xA0, 0x34, 0x4A, 0x0A, 0x42, 0x68, 0x03, 0x13, 0x46, 0x50, 0x00, 0x46, 0x03,
0xE8, 0x14, 0x9F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xDC, 0x7C
});