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
459 stars 154 forks source link

Is it compatible with PB BMS version? #509

Closed sarzyk closed 2 months ago

sarzyk commented 3 months ago

Hi is the solution compatible with inverter BMS version like pb2a16s20p?

Thanks

syssi commented 3 months ago

The short answer is: Yes.

How do you want to talk to your BMS?

sarzyk commented 3 months ago

I prefer via BT. But I need to read about this because I'm newbie. What I exactly need to connect jk BMS via BT to HA?

syssi commented 3 months ago

You have to use this YAML: https://github.com/syssi/esphome-jk-bms/blob/main/esp32-ble-example.yaml

Just update the mac_address to the one of your BMS and change the protocol_version to JK02_32S. Make sure there is no other BLE client connected to the BMS (= force-close the Android app). As soon the ESP boots up the BMS should beep and indicate an established connection. HA will auto-discover the ESPHome node if you have the ESPHome integration already enabled. That's all!

sarzyk commented 3 months ago

I have lilygo can485 to wifi with Bluetooth. Maybe I can use it?

hungden94 commented 3 months ago

Hello, I'm currently using a PB version bms connect via BLE esp32 but it seem not reliable and some time I also want to use jkbms app on my phone I want to try comnect by rs485, can you guide me which yaml should I used? How can I connect the cable?

Thank a lot

HA1Andrzej commented 3 months ago

Hi @syssi , super project !!! Good job. I have a question for you regarding the communication with the PB series, both over BLE and RS485. BLE communication - what does the number of entities detected depend on? I have BMSs where there are 65 entities but I have also had 100 entities. RS485 communication - here does the UART and CAN protocol affect the success of the communication? Thanks!

syssi commented 3 months ago

BLE communication - what does the number of entities detected depend on? I have BMSs where there are 65 entities but I have also had 100 entities.

There is no auto-detection for supported entities/measurements. The number of entities depends on the mentioned sensors at your YAML configuration. Did you remove sensors from the config example?

RS485 communication - here does the UART and CAN protocol affect the success of the communication?

You can select between different protocols using the Android app. If you want to interface your BMS using Modbus you have to enable this protocol first.