esphome-jbd-bms: JBD-SP04S020A-L4S-80A-B-U Invalid Header

Hi I have successfully integrated this on my JBD 4s 80A BMS however I am getting invalid header errors. Any idea how to fix this? Also it seems that the binary sensors (Balancing, Discharging and Charging) is not working?? Please see the sample logs I am having:

[18:07:53][D][jbd_bms:248]: Hardware info:
[18:07:53][D][jbd_bms:249]:   Device model: JBD-SP04S020A-L4S-80A-B-U
[18:07:53][D][sensor:126]: 'jbd-bms-uart total voltage': Sending state 12.86000 V with 2 decimals of accuracy
[18:07:53][D][sensor:126]: 'jbd-bms-uart current': Sending state -4.91000 A with 1 decimals of accuracy
[18:07:53][D][sensor:126]: 'jbd-bms-uart power': Sending state -63.14260 W with 1 decimals of accuracy
[18:07:53][D][sensor:126]: 'jbd-bms-uart charging power': Sending state 0.00000 W with 2 decimals of accuracy
[18:07:53][D][sensor:126]: 'jbd-bms-uart discharging power': Sending state 63.14260 W with 2 decimals of accuracy
[18:07:53][D][sensor:126]: 'jbd-bms-uart capacity remaining': Sending state 0.00000 Ah with 2 decimals of accuracy
[18:07:53][D][sensor:126]: 'jbd-bms-uart nominal capacity': Sending state 5.40000 Ah with 2 decimals of accuracy
[18:07:53][D][sensor:126]: 'jbd-bms-uart charging cycles': Sending state 4.00000  with 0 decimals of accuracy
[18:07:53][D][jbd_bms:265]:   Date of manufacture: 2021.12.18
[18:07:53][D][sensor:126]: 'jbd-bms-uart balancer status bitmask': Sending state 0.00000  with 0 decimals of accuracy
[18:07:53][D][sensor:126]: 'jbd-bms-uart errors bitmask': Sending state 0.00000  with 0 decimals of accuracy
[18:07:53][D][text_sensor:067]: 'jbd-bms-uart errors': Sending state ''
[18:07:53][D][sensor:126]: 'jbd-bms-uart software version': Sending state 2.00000  with 1 decimals of accuracy
[18:07:53][D][sensor:126]: 'jbd-bms-uart state of charge': Sending state 0.00000 % with 0 decimals of accuracy
[18:07:53][D][sensor:126]: 'jbd-bms-uart operation status bitmask': Sending state 3.00000  with 0 decimals of accuracy
[18:07:53][D][sensor:126]: 'jbd-bms-uart battery strings': Sending state 4.00000  with 0 decimals of accuracy
[18:07:53][D][sensor:126]: 'jbd-bms-uart temperature 1': Sending state 28.60000 °C with 1 decimals of accuracy
[18:07:53][D][sensor:126]: 'jbd-bms-uart temperature 2': Sending state 27.60000 °C with 1 decimals of accuracy
[18:07:53][D][sensor:126]: 'jbd-bms-uart temperature 3': Sending state 27.30000 °C with 1 decimals of accuracy
[18:07:53][D][sensor:126]: 'jbd-bms-uart cell voltage 1': Sending state 3.21900 V with 3 decimals of accuracy
[18:07:53][D][sensor:126]: 'jbd-bms-uart cell voltage 2': Sending state 3.22100 V with 3 decimals of accuracy
[18:07:53][D][sensor:126]: 'jbd-bms-uart cell voltage 3': Sending state 3.20900 V with 3 decimals of accuracy
[18:07:53][D][sensor:126]: 'jbd-bms-uart cell voltage 4': Sending state 3.21900 V with 3 decimals of accuracy
[18:07:53][D][sensor:126]: 'jbd-bms-uart min cell voltage': Sending state 3.20900 V with 3 decimals of accuracy
[18:07:53][D][sensor:126]: 'jbd-bms-uart max cell voltage': Sending state 3.22100 V with 3 decimals of accuracy
[18:07:53][D][sensor:126]: 'jbd-bms-uart max voltage cell': Sending state 2.00000  with 0 decimals of accuracy
[18:07:53][D][sensor:126]: 'jbd-bms-uart min voltage cell': Sending state 3.00000  with 0 decimals of accuracy
[18:07:53][D][sensor:126]: 'jbd-bms-uart delta cell voltage': Sending state 0.01200 V with 4 decimals of accuracy
[18:07:53][D][sensor:126]: 'jbd-bms-uart average cell voltage': Sending state 3.21700 V with 4 decimals of accuracy
[18:07:55][D][jbd_bms:248]: Hardware info:
[18:07:55][D][jbd_bms:249]:   Device model: JBD-SP04S020A-L4S-80A-B-U
[18:07:55][D][sensor:126]: 'jbd-bms-uart total voltage': Sending state 12.86000 V with 2 decimals of accuracy
[18:07:55][D][sensor:126]: 'jbd-bms-uart current': Sending state -4.76000 A with 1 decimals of accuracy
[18:07:55][D][sensor:126]: 'jbd-bms-uart power': Sending state -61.21360 W with 1 decimals of accuracy
[18:07:55][D][sensor:126]: 'jbd-bms-uart charging power': Sending state 0.00000 W with 2 decimals of accuracy
[18:07:55][D][sensor:126]: 'jbd-bms-uart discharging power': Sending state 61.21360 W with 2 decimals of accuracy
[18:07:55][D][sensor:126]: 'jbd-bms-uart capacity remaining': Sending state 0.00000 Ah with 2 decimals of accuracy
[18:07:55][D][sensor:126]: 'jbd-bms-uart nominal capacity': Sending state 5.40000 Ah with 2 decimals of accuracy
[18:07:55][D][sensor:126]: 'jbd-bms-uart charging cycles': Sending state 4.00000  with 0 decimals of accuracy
[18:07:55][D][jbd_bms:265]:   Date of manufacture: 2021.12.18
[18:07:55][D][sensor:126]: 'jbd-bms-uart balancer status bitmask': Sending state 0.00000  with 0 decimals of accuracy
[18:07:55][D][sensor:126]: 'jbd-bms-uart errors bitmask': Sending state 0.00000  with 0 decimals of accuracy
[18:07:55][D][text_sensor:067]: 'jbd-bms-uart errors': Sending state ''
[18:07:55][D][sensor:126]: 'jbd-bms-uart software version': Sending state 2.00000  with 1 decimals of accuracy
[18:07:55][D][sensor:126]: 'jbd-bms-uart state of charge': Sending state 0.00000 % with 0 decimals of accuracy
[18:07:55][D][sensor:126]: 'jbd-bms-uart operation status bitmask': Sending state 3.00000  with 0 decimals of accuracy
[18:07:55][D][sensor:126]: 'jbd-bms-uart battery strings': Sending state 4.00000  with 0 decimals of accuracy
[18:07:55][D][sensor:126]: 'jbd-bms-uart temperature 1': Sending state 28.60000 °C with 1 decimals of accuracy
[18:07:55][D][sensor:126]: 'jbd-bms-uart temperature 2': Sending state 27.60000 °C with 1 decimals of accuracy
[18:07:55][D][sensor:126]: 'jbd-bms-uart temperature 3': Sending state 27.30000 °C with 1 decimals of accuracy
[18:07:55][D][sensor:126]: 'jbd-bms-uart cell voltage 1': Sending state 3.21700 V with 3 decimals of accuracy
[18:07:55][D][sensor:126]: 'jbd-bms-uart cell voltage 2': Sending state 3.22100 V with 3 decimals of accuracy
[18:07:55][D][sensor:126]: 'jbd-bms-uart cell voltage 3': Sending state 3.20900 V with 3 decimals of accuracy
[18:07:55][D][sensor:126]: 'jbd-bms-uart cell voltage 4': Sending state 3.22100 V with 3 decimals of accuracy
[18:07:55][D][sensor:126]: 'jbd-bms-uart min cell voltage': Sending state 3.20900 V with 3 decimals of accuracy
[18:07:55][D][sensor:126]: 'jbd-bms-uart max cell voltage': Sending state 3.22100 V with 3 decimals of accuracy
[18:07:55][D][sensor:126]: 'jbd-bms-uart max voltage cell': Sending state 2.00000  with 0 decimals of accuracy
[18:07:55][D][sensor:126]: 'jbd-bms-uart min voltage cell': Sending state 3.00000  with 0 decimals of accuracy
[18:07:55][D][sensor:126]: 'jbd-bms-uart delta cell voltage': Sending state 0.01200 V with 4 decimals of accuracy
[18:07:55][D][sensor:126]: 'jbd-bms-uart average cell voltage': Sending state 3.21700 V with 4 decimals of accuracy
[18:07:57][D][jbd_bms:248]: Hardware info:
[18:07:57][D][jbd_bms:249]:   Device model: JBD-SP04S020A-L4S-80A-B-U
[18:07:57][D][sensor:126]: 'jbd-bms-uart total voltage': Sending state 12.86000 V with 2 decimals of accuracy
[18:07:57][D][sensor:126]: 'jbd-bms-uart current': Sending state -4.43000 A with 1 decimals of accuracy
[18:07:57][D][sensor:126]: 'jbd-bms-uart power': Sending state -56.96980 W with 1 decimals of accuracy
[18:07:57][D][sensor:126]: 'jbd-bms-uart charging power': Sending state 0.00000 W with 2 decimals of accuracy
[18:07:57][D][sensor:126]: 'jbd-bms-uart discharging power': Sending state 56.96980 W with 2 decimals of accuracy
[18:07:57][D][sensor:126]: 'jbd-bms-uart capacity remaining': Sending state 0.00000 Ah with 2 decimals of accuracy
[18:07:57][D][sensor:126]: 'jbd-bms-uart nominal capacity': Sending state 5.40000 Ah with 2 decimals of accuracy
[18:07:57][D][sensor:126]: 'jbd-bms-uart charging cycles': Sending state 4.00000  with 0 decimals of accuracy
[18:07:57][D][jbd_bms:265]:   Date of manufacture: 2021.12.18
[18:07:57][D][sensor:126]: 'jbd-bms-uart balancer status bitmask': Sending state 0.00000  with 0 decimals of accuracy
[18:07:57][D][sensor:126]: 'jbd-bms-uart errors bitmask': Sending state 0.00000  with 0 decimals of accuracy
[18:07:57][D][text_sensor:067]: 'jbd-bms-uart errors': Sending state ''
[18:07:57][D][sensor:126]: 'jbd-bms-uart software version': Sending state 2.00000  with 1 decimals of accuracy
[18:07:57][D][sensor:126]: 'jbd-bms-uart state of charge': Sending state 0.00000 % with 0 decimals of accuracy
[18:07:57][D][sensor:126]: 'jbd-bms-uart operation status bitmask': Sending state 3.00000  with 0 decimals of accuracy
[18:07:57][D][sensor:126]: 'jbd-bms-uart battery strings': Sending state 4.00000  with 0 decimals of accuracy
[18:07:57][D][sensor:126]: 'jbd-bms-uart temperature 1': Sending state 28.60000 °C with 1 decimals of accuracy
[18:07:57][D][sensor:126]: 'jbd-bms-uart temperature 2': Sending state 27.60000 °C with 1 decimals of accuracy
[18:07:57][D][sensor:126]: 'jbd-bms-uart temperature 3': Sending state 27.30000 °C with 1 decimals of accuracy
[18:07:57][D][sensor:126]: 'jbd-bms-uart cell voltage 1': Sending state 3.21600 V with 3 decimals of accuracy
[18:07:57][D][sensor:126]: 'jbd-bms-uart cell voltage 2': Sending state 3.21800 V with 3 decimals of accuracy
[18:07:57][D][sensor:126]: 'jbd-bms-uart cell voltage 3': Sending state 3.20900 V with 3 decimals of accuracy
[18:07:57][D][sensor:126]: 'jbd-bms-uart cell voltage 4': Sending state 3.21900 V with 3 decimals of accuracy
[18:07:57][D][sensor:126]: 'jbd-bms-uart min cell voltage': Sending state 3.20900 V with 3 decimals of accuracy
[18:07:57][D][sensor:126]: 'jbd-bms-uart max cell voltage': Sending state 3.21900 V with 3 decimals of accuracy
[18:07:57][D][sensor:126]: 'jbd-bms-uart max voltage cell': Sending state 4.00000  with 0 decimals of accuracy
[18:07:57][D][sensor:126]: 'jbd-bms-uart min voltage cell': Sending state 3.00000  with 0 decimals of accuracy
[18:07:57][D][sensor:126]: 'jbd-bms-uart delta cell voltage': Sending state 0.01000 V with 4 decimals of accuracy
[18:07:57][D][sensor:126]: 'jbd-bms-uart average cell voltage': Sending state 3.21550 V with 4 decimals of accuracy
[18:07:59][D][jbd_bms:248]: Hardware info:
[18:07:59][D][jbd_bms:249]:   Device model: JBD-SP04S020A-L4S-80A-B-U
[18:07:59][D][sensor:126]: 'jbd-bms-uart total voltage': Sending state 12.87000 V with 2 decimals of accuracy
[18:07:59][D][sensor:126]: 'jbd-bms-uart current': Sending state -4.43000 A with 1 decimals of accuracy
[18:07:59][D][sensor:126]: 'jbd-bms-uart power': Sending state -57.01410 W with 1 decimals of accuracy
[18:07:59][D][sensor:126]: 'jbd-bms-uart charging power': Sending state 0.00000 W with 2 decimals of accuracy
[18:07:59][D][sensor:126]: 'jbd-bms-uart discharging power': Sending state 57.01410 W with 2 decimals of accuracy
[18:07:59][D][sensor:126]: 'jbd-bms-uart capacity remaining': Sending state 0.00000 Ah with 2 decimals of accuracy
[18:07:59][D][sensor:126]: 'jbd-bms-uart nominal capacity': Sending state 5.40000 Ah with 2 decimals of accuracy
[18:07:59][D][sensor:126]: 'jbd-bms-uart charging cycles': Sending state 4.00000  with 0 decimals of accuracy
[18:07:59][D][jbd_bms:265]:   Date of manufacture: 2021.12.18
[18:07:59][D][sensor:126]: 'jbd-bms-uart balancer status bitmask': Sending state 0.00000  with 0 decimals of accuracy
[18:07:59][D][sensor:126]: 'jbd-bms-uart errors bitmask': Sending state 0.00000  with 0 decimals of accuracy
[18:07:59][D][text_sensor:067]: 'jbd-bms-uart errors': Sending state ''
[18:07:59][D][sensor:126]: 'jbd-bms-uart software version': Sending state 2.00000  with 1 decimals of accuracy
[18:07:59][D][sensor:126]: 'jbd-bms-uart state of charge': Sending state 0.00000 % with 0 decimals of accuracy
[18:07:59][D][sensor:126]: 'jbd-bms-uart operation status bitmask': Sending state 3.00000  with 0 decimals of accuracy
[18:07:59][D][sensor:126]: 'jbd-bms-uart battery strings': Sending state 4.00000  with 0 decimals of accuracy
[18:07:59][D][sensor:126]: 'jbd-bms-uart temperature 1': Sending state 28.60000 °C with 1 decimals of accuracy
[18:07:59][D][sensor:126]: 'jbd-bms-uart temperature 2': Sending state 27.60000 °C with 1 decimals of accuracy
[18:07:59][D][sensor:126]: 'jbd-bms-uart temperature 3': Sending state 27.30000 °C with 1 decimals of accuracy
[18:07:59][W][jbd_bms:124]: Invalid header```

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (9 by maintainers)

Most upvoted comments