-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Status "unavailable" every three minutes... #133
Comments
Thanks for reporting, can you please attach a debug log of the last minute or so before the exception occurs? Thanks! |
|
Hey! Could you check the version on the linked branch? I hope it is a simple fix. 🤞 |
Hi, I'm sorry - but I don't understand - what is this "version on the linked branch" |
I think I got it - I need to copy the changes to my file. Thanks, I'll try |
Please select this branch and follow the manual install instructions. |
Thank you! Everything worked out! Everything has been working correctly for three hours now |
issue with JK BMS streaming data, fixes #133
Checklist
Provide the type of BMS you used:
JK-B2A8S20P
Describe the issue
Every three minutes entities in HA go into unavailable status and after 30 seconds appear again
Reproduction steps
Debug logs
Unexpected error fetching LiFePo4 data
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/bms_ble/coordinator.py", line 97, in _async_update_data
battery_info = await self._device.async_update()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/bms_ble/plugins/basebms.py", line 257, in async_update
await self._connect()
File "/config/custom_components/bms_ble/plugins/basebms.py", line 214, in _connect
await self._init_connection()
File "/config/custom_components/bms_ble/plugins/jikong_bms.py", line 194, in _init_connection
-32 if int(self._bms_info.get("sw_version", "")[:2]) < 11 else 0
~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '\x00\x00'
The text was updated successfully, but these errors were encountered: