Repository navigation
Expand file tree
/
Copy pathjk-bms-24v280ah.yaml
More file actions
229 lines (211 loc) · 6.44 KB
/
Copy pathjk-bms-24v280ah.yaml
File metadata and controls
229 lines (211 loc) · 6.44 KB
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
225
226
227
228
229
# Tích hợp common.yaml để tái sử dụng config chung
<<: !include common.yaml
external_components:
- source: github://syssi/esphome-jk-bms@main
esphome:
name: 24v280ah
friendly_name: 24v280ah
esp32:
board: esp32dev
# ──────────────────────────── Wi-Fi networks riêng ────────────────────────────
wifi:
networks:
# === Aruba T1 (Channel 1) ===
# - ssid: !secret wifi_ssid
# password: !secret wifi_password
# bssid: !secret wifi_bssid_t1
# channel: !secret wifi_channel_t1
# === Aruba T2 (Channel 6) ===
# - ssid: !secret wifi_ssid
# password: !secret wifi_password
# bssid: !secret wifi_bssid_t2
# channel: !secret wifi_channel_t2
# === Aruba T3 (Channel 11) - Hiện tại active ===
- ssid: !secret wifi_ssid
password: !secret wifi_password
bssid: !secret wifi_bssid_t3
channel: !secret wifi_channel_t3
uart:
id: uart_0
tx_pin: GPIO16
rx_pin: GPIO17
baud_rate: 115200
rx_buffer_size: 1024
jk_modbus:
id: modbus0
uart_id: uart_0
jk_bms:
id: bms0
jk_modbus_id: modbus0
update_interval: 5s
sensor:
- platform: jk_bms
total_voltage:
name: "Total Voltage"
current:
name: "Current"
power:
name: "Power"
charging_power:
name: "Charging Power"
min_cell_voltage:
name: "Min Cell V"
max_cell_voltage:
name: "Max Cell V"
min_voltage_cell:
name: "Min voltage cell"
max_voltage_cell:
name: "Max voltage cell"
delta_cell_voltage:
name: "Delta Cell V"
average_cell_voltage:
name: "Average Cell V"
discharging_power:
name: "Discharging Power"
capacity_remaining:
name: "Remaining Capacity"
capacity_remaining_derived:
name: "Capacity Remaining Derived"
temperature_sensor_1:
name: "Temperature Sensor 1"
temperature_sensor_2:
name: "Temperature Sensor 2"
power_tube_temperature:
name: "MOSFET Temperature"
cell_voltage_1:
name: "Cell 1 Voltage"
cell_voltage_2:
name: "Cell 2 Voltage"
cell_voltage_3:
name: "Cell 3 Voltage"
cell_voltage_4:
name: "Cell 4 Voltage"
cell_voltage_5:
name: "Cell 5 Voltage"
cell_voltage_6:
name: "Cell 6 Voltage"
cell_voltage_7:
name: "Cell 7 Voltage"
cell_voltage_8:
name: "Cell 8 Voltage"
errors_bitmask:
name: "Error Bitmask"
charging_cycles:
name: "Charging Cycles"
total_charging_cycle_capacity:
name: "Total Charging Cycle Capacity"
total_runtime:
name: "Total Runtime"
battery_strings:
name: "Battery Strings"
operation_mode_bitmask:
name: "Operation Mode Bitmask"
total_voltage_overvoltage_protection:
name: "Total Voltage Overvoltage Protection"
total_voltage_undervoltage_protection:
name: "Total Voltage Undervoltage Protection"
cell_voltage_overvoltage_protection:
name: "Cell Voltage Overvoltage Protection"
cell_voltage_overvoltage_recovery:
name: "Cell Voltage Overvoltage Recovery"
cell_voltage_overvoltage_delay:
name: "Cell Voltage Overvoltage Delay"
cell_voltage_undervoltage_protection:
name: "Cell Voltage Undervoltage Protection"
cell_voltage_undervoltage_recovery:
name: "Cell Voltage Undervoltage Recovery"
cell_voltage_undervoltage_delay:
name: "Cell Voltage Undervoltage Delay"
cell_pressure_difference_protection:
name: "Cell Pressure Difference Protection"
discharging_overcurrent_protection:
name: "Discharging Overcurrent Protection"
discharging_overcurrent_delay:
name: "Discharging Overcurrent Delay"
charging_overcurrent_protection:
name: "Charging Overcurrent Protection"
charging_overcurrent_delay:
name: "Charging Overcurrent Delay"
balance_starting_voltage:
name: "Balance Starting Voltage"
balance_opening_pressure_difference:
name: "Balance Opening Pressure Difference"
power_tube_temperature_protection:
name: "Power Tube Temperature Protection"
power_tube_temperature_recovery:
name: "Power Tube Temperature Recovery"
temperature_sensor_temperature_protection:
name: "Temperature Sensor Temperature Protection"
temperature_sensor_temperature_recovery:
name: "Temperature Sensor Temperature Recovery"
temperature_sensor_temperature_difference_protection:
name: "Temperature Sensor Temperature Difference Protection"
charging_high_temperature_protection:
name: "Charging High Temperature Protection"
discharging_high_temperature_protection:
name: "Discharging High Temperature Protection"
charging_low_temperature_protection:
name: "Charging Low Temperature Protection"
charging_low_temperature_recovery:
name: "Charging Low Temperature Recovery"
discharging_low_temperature_protection:
name: "Discharging Low Temperature Protection"
discharging_low_temperature_recovery:
name: "Discharging Low Temperature Recovery"
total_battery_capacity_setting:
name: "Total Battery Capacity Setting"
current_calibration:
name: "Current Calibration"
device_address:
name: "Device Address"
sleep_wait_time:
name: "Sleep Wait Time"
alarm_low_volume:
name: "Alarm Low Volume"
manufacturing_date:
name: "Manufacturing Date"
# start_current_calibration:
# name: "start current calibration"
actual_battery_capacity:
name: "Actual Battery Capacity"
# protocol_version:
# name: "protocol version"
binary_sensor:
- platform: jk_bms
jk_bms_id: bms0
balancing:
name: "Balancing"
balancing_switch:
name: "balancing switch"
charging:
name: "Charging"
discharging:
name: "Discharging"
dedicated_charger_switch:
name: "dedicated charger switch"
online_status:
name: "Online Status"
switch:
- platform: jk_bms
charging:
name: "Charging"
discharging:
name: "Discharging"
text_sensor:
- platform: jk_bms
errors:
name: "Errors"
operation_mode:
name: "Operation Mode"
battery_type:
name: "Battery Type"
software_version:
name: "Software Version"
manufacturer:
name: "Manufacturer"
password:
name: "Password"
device_type:
name: "Device Type"
total_runtime_formatted:
name: "Total Runtime Formatted"