-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathesp32-old-ble-example.yaml
224 lines (208 loc) · 5.78 KB
/
esp32-old-ble-example.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
substitutions:
name: ant-bms-old-ble
device_description: "Monitor and control a ANT Battery Management System (ANT-BMS) via BLE"
external_components_source: github://syssi/esphome-ant-bms@main
# Apply the MAC address of your ANT-BMS here (BLE device name: "ANT-BLE24C"). Please don't use "BMS-ANT24C".
mac_address: 16:aa:22:02:23:45
password: "12345678"
esphome:
name: ${name}
comment: ${device_description}
min_version: 2024.6.0
project:
name: "syssi.esphome-ant-bms"
version: 2.2.0
esp32:
board: wemos_d1_mini32
framework:
type: esp-idf
external_components:
- source: ${external_components_source}
refresh: 0s
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ota:
platform: esphome
logger:
level: VERY_VERBOSE
logs:
ant_bms_ble: VERY_VERBOSE
ble_client: VERY_VERBOSE
esp32_ble: DEBUG
esp32_ble_tracker: DEBUG
scheduler: DEBUG
component: DEBUG
sensor: DEBUG
api: DEBUG
api.service: DEBUG
# If you use Home Assistant please remove this `mqtt` section and uncomment the `api` component!
# The native API has many advantages over MQTT: https://esphome.io/components/api.html#advantages-over-mqtt
# mqtt:
# broker: !secret mqtt_host
# username: !secret mqtt_username
# password: !secret mqtt_password
# id: mqtt_client
api:
esp32_ble_tracker:
scan_parameters:
active: false
ble_client:
- id: client0
mac_address: ${mac_address}
ant_bms_old_ble:
- id: bms0
ble_client_id: client0
update_interval: 5s
password: "${password}"
binary_sensor:
- platform: ant_bms_old_ble
ant_bms_old_ble_id: bms0
online_status:
name: "${name} online status"
sensor:
- platform: ant_bms_old_ble
ant_bms_old_ble_id: bms0
battery_strings:
name: "${name} battery strings"
current:
name: "${name} current"
soc:
name: "${name} soc"
total_battery_capacity_setting:
name: "${name} total battery capacity setting"
capacity_remaining:
name: "${name} capacity remaining"
battery_cycle_capacity:
name: "${name} battery cycle capacity"
total_voltage:
name: "${name} total voltage"
total_runtime:
name: "${name} total runtime"
average_cell_voltage:
name: "${name} average cell voltage"
power:
name: "${name} power"
min_cell_voltage:
name: "${name} min cell voltage"
max_cell_voltage:
name: "${name} max cell voltage"
min_voltage_cell:
name: "${name} min voltage cell"
max_voltage_cell:
name: "${name} max voltage cell"
delta_cell_voltage:
name: "${name} delta cell voltage"
temperature_1:
name: "${name} temperature 1"
temperature_2:
name: "${name} temperature 2"
temperature_3:
name: "${name} temperature 3"
temperature_4:
name: "${name} temperature 4"
temperature_5:
name: "${name} temperature 5"
temperature_6:
name: "${name} temperature 6"
cell_voltage_1:
name: "${name} cell voltage 1"
cell_voltage_2:
name: "${name} cell voltage 2"
cell_voltage_3:
name: "${name} cell voltage 3"
cell_voltage_4:
name: "${name} cell voltage 4"
cell_voltage_5:
name: "${name} cell voltage 5"
cell_voltage_6:
name: "${name} cell voltage 6"
cell_voltage_7:
name: "${name} cell voltage 7"
cell_voltage_8:
name: "${name} cell voltage 8"
cell_voltage_9:
name: "${name} cell voltage 9"
cell_voltage_10:
name: "${name} cell voltage 10"
cell_voltage_11:
name: "${name} cell voltage 11"
cell_voltage_12:
name: "${name} cell voltage 12"
cell_voltage_13:
name: "${name} cell voltage 13"
cell_voltage_14:
name: "${name} cell voltage 14"
cell_voltage_15:
name: "${name} cell voltage 15"
cell_voltage_16:
name: "${name} cell voltage 16"
cell_voltage_17:
name: "${name} cell voltage 17"
cell_voltage_18:
name: "${name} cell voltage 18"
cell_voltage_19:
name: "${name} cell voltage 19"
cell_voltage_20:
name: "${name} cell voltage 20"
cell_voltage_21:
name: "${name} cell voltage 21"
cell_voltage_22:
name: "${name} cell voltage 22"
cell_voltage_23:
name: "${name} cell voltage 23"
cell_voltage_24:
name: "${name} cell voltage 24"
cell_voltage_25:
name: "${name} cell voltage 25"
cell_voltage_26:
name: "${name} cell voltage 26"
cell_voltage_27:
name: "${name} cell voltage 27"
cell_voltage_28:
name: "${name} cell voltage 28"
cell_voltage_29:
name: "${name} cell voltage 29"
cell_voltage_30:
name: "${name} cell voltage 30"
cell_voltage_31:
name: "${name} cell voltage 31"
cell_voltage_32:
name: "${name} cell voltage 32"
charge_mosfet_status_code:
name: "${name} charge mosfet status code"
discharge_mosfet_status_code:
name: "${name} discharge mosfet status code"
balancer_status_code:
name: "${name} balancer status code"
text_sensor:
- platform: ant_bms_old_ble
ant_bms_old_ble_id: bms0
charge_mosfet_status:
name: "${name} charge mosfet status"
discharge_mosfet_status:
name: "${name} discharge mosfet status"
balancer_status:
name: "${name} balancer status"
total_runtime_formatted:
name: "${name} total runtime formatted"
switch:
- platform: ant_bms_old_ble
ant_bms_old_ble_id: bms0
charging:
name: "${name} charging"
discharging:
name: "${name} discharging"
button:
- platform: ant_bms_old_ble
ant_bms_old_ble_id: bms0
shutdown:
name: "${name} shutdown"
clear_counter:
name: "${name} clear counter"
balancer:
name: "${name} balancer"
factory_reset:
name: "${name} factory reset"
restart:
name: "${name} restart"