syssi / esphome-jk-bms

ESPHome component to monitor and control a Jikong Battery Management System (JK-BMS) via UART-TTL or BLE
Apache License 2.0
405 stars 134 forks source link

Add heating switch #405

Closed RFDarter closed 5 months ago

RFDarter commented 6 months ago

It would be nice if you could add the heating functioniality,

syssi commented 6 months ago

Are you able to test the feature as soon it's available?

RFDarter commented 6 months ago

yep, i got a 4s pack read to test on my bench. (B1A8S10P-HC) I also have a B2A20S20P-HC waiting to get installed once my cells arrive.

RFDarter commented 6 months ago

Do you have an documentaion of the jk modbus? All I found is this, which is from 2022 and no documentation on the heating function http://www.jk-bms.com/Upload/2022-05-19/1621104621.pdf

This is the newes one, but i guess its the one for the new seplos stile bms http://www.jk-bms.com/Upload/2023-11-28/1721459145.pdf

RFDarter commented 6 months ago

I tried to dump the complete content of data and compare it to when the heating switch is toggled and when it is not. The dump is except for some changing cell volatages identical, so i guess they did't bother to update the modbus. So i guess it would only work via bluethooth.

syssi commented 5 months ago

Could you tell me the firmware version of your BMS?

syssi commented 5 months ago

The heating switch is available now. Please extend your YAML and give it a try: https://github.com/syssi/esphome-jk-bms/blob/main/esp32-ble-v11-example.yaml#L281-L282

RFDarter commented 5 months ago

Hi, thanks I will give it a try tonight. Will it work over uart and ble?

syssi commented 5 months ago

BLE!

RFDarter commented 5 months ago

I guess uart is not possible? Did you get any Informations from jk? I havent recived an answer to my guestion about the heating Status and the uart Modbus protocol.