-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decode protocol version 2.5 of the TDT-6022 BMS
Kudos to @wojtbar
- Loading branch information
Showing
6 changed files
with
203 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
substitutions: | ||
name: seplos-bms | ||
device_description: "Monitor a TDT-BMS via UART-TTL" | ||
external_components_source: github://syssi/esphome-seplos-bms@main | ||
tx_pin: GPIO4 | ||
rx_pin: GPIO5 | ||
|
||
esphome: | ||
name: ${name} | ||
comment: ${device_description} | ||
project: | ||
name: "syssi.esphome-seplos-bms" | ||
version: 1.1.0 | ||
|
||
esp32: | ||
board: wemos_d1_mini32 | ||
|
||
external_components: | ||
- source: ${external_components_source} | ||
refresh: 0s | ||
|
||
wifi: | ||
ssid: !secret wifi_ssid | ||
password: !secret wifi_password | ||
|
||
ota: | ||
|
||
logger: | ||
level: 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: | ||
|
||
uart: | ||
id: uart_0 | ||
# Please set the default baudrate of your TDT BMS model here. It's sometimes 19200 baud instead of 9600. | ||
baud_rate: 9600 | ||
tx_pin: ${tx_pin} | ||
rx_pin: ${rx_pin} | ||
# The increased RX buffer size is important because | ||
# the full BMS response must fit into the buffer | ||
rx_buffer_size: 384 | ||
|
||
seplos_modbus: | ||
id: modbus0 | ||
uart_id: uart_0 | ||
rx_timeout: 150ms | ||
|
||
seplos_bms: | ||
- id: bms0 | ||
address: 0x01 | ||
protocol_version: 0x25 | ||
seplos_modbus_id: modbus0 | ||
update_interval: 10s | ||
|
||
sensor: | ||
- platform: seplos_bms | ||
seplos_bms_id: bms0 | ||
min_cell_voltage: | ||
name: "min cell voltage" | ||
max_cell_voltage: | ||
name: "max cell voltage" | ||
min_voltage_cell: | ||
name: "min voltage cell" | ||
max_voltage_cell: | ||
name: "max voltage cell" | ||
delta_cell_voltage: | ||
name: "delta cell voltage" | ||
average_cell_voltage: | ||
name: "average cell voltage" | ||
cell_voltage_1: | ||
name: "cell voltage 1" | ||
cell_voltage_2: | ||
name: "cell voltage 2" | ||
cell_voltage_3: | ||
name: "cell voltage 3" | ||
cell_voltage_4: | ||
name: "cell voltage 4" | ||
cell_voltage_5: | ||
name: "cell voltage 5" | ||
cell_voltage_6: | ||
name: "cell voltage 6" | ||
cell_voltage_7: | ||
name: "cell voltage 7" | ||
cell_voltage_8: | ||
name: "cell voltage 8" | ||
cell_voltage_9: | ||
name: "cell voltage 9" | ||
cell_voltage_10: | ||
name: "cell voltage 10" | ||
cell_voltage_11: | ||
name: "cell voltage 11" | ||
cell_voltage_12: | ||
name: "cell voltage 12" | ||
cell_voltage_13: | ||
name: "cell voltage 13" | ||
cell_voltage_14: | ||
name: "cell voltage 14" | ||
cell_voltage_15: | ||
name: "cell voltage 15" | ||
cell_voltage_16: | ||
name: "cell voltage 16" | ||
temperature_1: | ||
name: "environment temperature" | ||
temperature_2: | ||
name: "mosfet temperature" | ||
temperature_3: | ||
name: "temperature 1" | ||
temperature_4: | ||
name: "temperature 2" | ||
temperature_5: | ||
name: "temperature 3" | ||
temperature_6: | ||
name: "temperature 4" | ||
total_voltage: | ||
name: "total voltage" | ||
current: | ||
name: "current" | ||
power: | ||
name: "power" | ||
charging_power: | ||
name: "charging power" | ||
discharging_power: | ||
name: "discharging power" | ||
residual_capacity: | ||
name: "residual capacity" | ||
battery_capacity: | ||
name: "battery capacity" | ||
rated_capacity: | ||
name: "rated capacity" | ||
state_of_charge: | ||
name: "state of charge" | ||
charging_cycles: | ||
name: "charging cycles" | ||
sampling_voltage: | ||
name: "sampling voltage" | ||
port_voltage: | ||
name: "port voltage" |