syssi / esphome-jbd-bms

ESPHome component to monitor and control a Xiaoxiang Battery Management System (JBD-BMS) via UART-TTL or BLE
Apache License 2.0
118 stars 31 forks source link

SP16S020L16S100A: Missing attributes #101

Open ThomasCr opened 1 month ago

ThomasCr commented 1 month ago

Hi,

I have a new battery with a BT BMS:

It is a Vatrer Power 51.2v 100ah LiFePo4 battery - the BMS should be Jiabaida / JBD SP16S020

Informations from Overkill Solar App: Manufacturer: ZJDY Firmware Version: 6.2 Device Name: SP16S020L16S100A

The SP16S020 Model should be tested (its listed in the README.md) - but not with the same Firmware

Some of the attributes are in state "unknown":

Also a small questions stays: why is there a Button for retrieve_hardware_version? Why not fetch this info like the other informations and put them in a text_sensor field? Or I am missing something?

syssi commented 1 month ago

There are BMS models which doesn't support the model version request and behaves pretty strange afterwards. The value is pretty useless in general so I try to avoid the retrieval.

syssi commented 1 month ago

How do you talk to your BMS? Using UART or BLE? Could you increase the log level and provide some logs including the RAW traffic. I would like to have a look why the mentioned measurements/states are missing.

ThomasCr commented 1 month ago

I connect with BLE - I set the debug params from esp32-ble-example-debug.yaml - hope thats good.

jbd_bms_ble.log

ThomasCr commented 1 month ago

I also noticed, that I can't switch off the switch.discharging. It switches automatically back (to on), when I switch if manually off in HomeAssistant.

EDIT: I wanted to add, that I now know, why that happened. The BMS got to a error state und is was not allowed to me to switch on the discharging.