-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathesp32-ble-example-faker.yaml
68 lines (65 loc) · 4.9 KB
/
esp32-ble-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
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
61
62
63
64
65
66
67
68
<<: !include esp32-ble-example-debug.yaml
interval:
- interval: 8s
then:
# 16ZM, 16ZMUB00-211026A: 16S, 280 Ah, cold day, 1y runtime
- lambda: |-
const uint8_t device_info_frame[48] = {
0x7E, 0xA1, 0x12, 0x6C, 0x02, 0x20, 0x31, 0x36, 0x5A, 0x4D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x31, 0x36, 0x5A, 0x4D, 0x55, 0x42, 0x30, 0x30, 0x2D, 0x32, 0x31, 0x31, 0x30, 0x32,
0x36, 0x41, 0x72, 0x08, 0xFF, 0x0B, 0x00, 0x00, 0x41, 0xF2, 0xAA, 0x55
};
id(bms0).assemble(device_info_frame, sizeof(device_info_frame));
- delay: 2s
- lambda: |-
const uint8_t status_frame[152] = {
0x7E, 0xA1, 0x11, 0x00, 0x00, 0x8E, 0x05, 0x01, 0x02, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x80, 0x00, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE4, 0x0C,
0xE4, 0x0C, 0xE5, 0x0C, 0xE5, 0x0C, 0xE8, 0x0C, 0xE7, 0x0C, 0xE7, 0x0C, 0xE6, 0x0C, 0xE8, 0x0C, 0xE7, 0x0C,
0xE7, 0x0C, 0xE7, 0x0C, 0xE7, 0x0C, 0xE7, 0x0C, 0xE6, 0x0C, 0xE9, 0x0C, 0x01, 0x00, 0x02, 0x00, 0x02, 0x00,
0x07, 0x00, 0xA4, 0x14, 0x03, 0x00, 0x5B, 0x00, 0x64, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x76, 0xB0, 0x10,
0xD5, 0x67, 0x0E, 0x0F, 0xBA, 0x32, 0x4A, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x10, 0x58, 0x2E, 0x02, 0x00, 0x00,
0x00, 0x00, 0xE9, 0x0C, 0x10, 0x00, 0xE4, 0x0C, 0x01, 0x00, 0x05, 0x00, 0xE6, 0x0C, 0x00, 0x00, 0x80, 0x00,
0x7A, 0x00, 0x0F, 0x02, 0xF2, 0xFA, 0xB9, 0x8C, 0x3B, 0x00, 0xBB, 0xD8, 0x58, 0x00, 0xDA, 0x2D, 0x43, 0x00,
0xE8, 0xB6, 0x49, 0x00, 0x05, 0x43, 0xAA, 0x55
};
id(bms0).assemble(status_frame, sizeof(status_frame));
- delay: 2s
# 16ZMB0TB120A, 16ZMUB00-220501A: 14S, 150 Ah, room temperature, 109d 20h runtime
- lambda: |-
const uint8_t status_frame[148] = {
0x7E, 0xA1, 0x11, 0x00, 0x00, 0x8A, 0x05, 0x01, 0x02, 0x0E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x30, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x77, 0x0D,
0x77, 0x0D, 0x70, 0x0D, 0x71, 0x0D, 0x72, 0x0D, 0x71, 0x0D, 0x70, 0x0D, 0x70, 0x0D, 0x6E, 0x0D, 0x71, 0x0D,
0x71, 0x0D, 0x71, 0x0D, 0x71, 0x0D, 0x70, 0x0D, 0x15, 0x00, 0x14, 0x00, 0x17, 0x00, 0x17, 0x00, 0xD2, 0x12,
0x03, 0x00, 0x02, 0x00, 0x64, 0x00, 0x01, 0x01, 0x00, 0x00, 0x80, 0xD1, 0xF0, 0x08, 0x39, 0xB4, 0x67, 0x00,
0x13, 0xEE, 0x2D, 0x00, 0x09, 0x00, 0x00, 0x00, 0x8F, 0xD4, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x77, 0x0D,
0x01, 0x00, 0x6E, 0x0D, 0x09, 0x00, 0x09, 0x00, 0x71, 0x0D, 0x00, 0x00, 0x80, 0x00, 0x7A, 0x00, 0x0E, 0x02,
0xF1, 0xFA, 0x6E, 0x99, 0x2F, 0x00, 0xB7, 0x42, 0x2C, 0x00, 0xA4, 0x5A, 0x0C, 0x00, 0x2A, 0x51, 0x0A, 0x00,
0x40, 0x08, 0xAA, 0x55
};
id(bms0).assemble(status_frame, sizeof(status_frame));
- delay: 2s
- lambda: |-
const uint8_t device_info_frame[48] = {
0x7E, 0xA1, 0x12, 0x6C, 0x02, 0x20, 0x31, 0x36, 0x5A, 0x4D, 0x42, 0x30, 0x54, 0x42, 0x31, 0x32, 0x30, 0x41,
0x00, 0x00, 0x00, 0x00, 0x31, 0x36, 0x5A, 0x4D, 0x55, 0x42, 0x30, 0x30, 0x2D, 0x32, 0x32, 0x30, 0x35, 0x30,
0x31, 0x41, 0x25, 0x2B, 0xFF, 0x0B, 0x00, 0x00, 0x41, 0xF2, 0xAA, 0x55
};
id(bms0).assemble(device_info_frame, sizeof(device_info_frame));
# 32BHA0TB120A, 32BHUB00-211005A, 30S, 29.4 Ah, 6 temperature sensors, 338d 23h runtime
- lambda: |-
const uint8_t status_frame[184] = {
0x7E, 0xA1, 0x11, 0x00, 0x00, 0xAE, 0x05, 0x01, 0x04, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x0F,
0x04, 0x0F, 0x06, 0x0F, 0x05, 0x0F, 0x06, 0x0F, 0x06, 0x0F, 0x05, 0x0F, 0x06, 0x0F, 0x04, 0x0F, 0x06, 0x0F,
0x06, 0x0F, 0x04, 0x0F, 0x02, 0x0F, 0x03, 0x0F, 0x03, 0x0F, 0x03, 0x0F, 0x03, 0x0F, 0x04, 0x0F, 0x06, 0x0F,
0x06, 0x0F, 0x02, 0x0F, 0x05, 0x0F, 0x03, 0x0F, 0x05, 0x0F, 0x04, 0x0F, 0x06, 0x0F, 0x06, 0x0F, 0x00, 0x0F,
0x00, 0x0F, 0x05, 0x0F, 0x0F, 0x00, 0x10, 0x00, 0x0F, 0x00, 0xD8, 0xFF, 0x10, 0x00, 0x10, 0x00, 0x0C, 0x2D,
0x00, 0x00, 0x46, 0x00, 0x64, 0x00, 0x01, 0x01, 0x00, 0x00, 0xC0, 0x9B, 0xC0, 0x01, 0xEF, 0x20, 0x39, 0x01,
0x98, 0xD6, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0xA5, 0xE4, 0xBE, 0x01, 0x00, 0x00, 0x00, 0x00, 0x06, 0x0F,
0x03, 0x00, 0x00, 0x0F, 0x1C, 0x00, 0x06, 0x00, 0x04, 0x0F, 0x00, 0x00, 0x6B, 0x00, 0x68, 0x00, 0xAE, 0x02,
0xF1, 0xFA, 0xDA, 0x7A, 0x04, 0x00, 0x57, 0x32, 0x05, 0x00, 0x2E, 0xCB, 0x00, 0x00, 0x27, 0x83, 0x03, 0x00,
0x79, 0x7B, 0xAA, 0x55
};
id(bms0).assemble(status_frame, sizeof(status_frame));