We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
v1.6.2 works while v1.6.3 sometimes produces 0 values as it can be seen here:
Issue is caused by clearing bytearray which is later assigned (not copied) to final version: 8e9c1b7#diff-ce80ef634830b4483558d11765fb3faca12bf0ee435cd5f85faa072835be557dR106
2024-09-21 17:06:29.600 DEBUG (MainThread) [custom_components.bms_ble.plugins.jikong_bms] BMS BatteryOben-00 already connected 2024-09-21 17:06:29.600 DEBUG (MainThread) [custom_components.bms_ble.plugins.jikong_bms] (BatteryOben-00) Wrong data length (150): bytearray(b'U\xaa\xeb\x90\x02#\x85\r\x83\r\x83\r\x83\r\x83\r\x83\r\x83\r\x83\r\x83\r\x83\r\x83\r\x83\r\x83\r\x85\r\x85\r\x85\r\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\x00\x00\x84\r\x03\x00\t\x00:\x00<\x00F\x00H\x00T\x00\\\x00i\x00v\x00}\x00v\x00l\x00i\x00a\x00K\x00G\x00<\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf7\x00\x00\x00\x00\x00') 2024-09-21 17:06:29.600 DEBUG (MainThread) [custom_components.bms_ble] BMS data sample {'cell_count': 16, 'delta_voltage': 0.003, 'temp#0': 24.7, 'temp#1': 0.0, 'temp#2': 0.0, 'voltage': 0.0, 'current': 0.0, 'battery_level': 0, 'cycle_charge': 0.0, 'cycles': 0, 'cell#0': 3.461, 'cell#1': 3.459, 'cell#2': 3.459, 'cell#3': 3.459, 'cell#4': 3.459, 'cell#5': 3.459, 'cell#6': 3.459, 'cell#7': 3.459, 'cell#8': 3.459, 'cell#9': 3.459, 'cell#10': 3.459, 'cell#11': 3.459, 'cell#12': 3.459, 'cell#13': 3.461, 'cell#14': 3.461, 'cell#15': 3.461, 'cycle_capacity': 0.0, 'power': 0.0, 'battery_charging': False, 'temperature': 8.233, 'rssi': -74}
The text was updated successfully, but these errors were encountered:
Code review showed similar issue for JBD
Sorry, something went wrong.
patman15
Successfully merging a pull request may close this issue.
Checklist
Describe the issue
v1.6.2 works while v1.6.3 sometimes produces 0 values as it can be seen here:

Issue is caused by clearing bytearray which is later assigned (not copied) to final version:
8e9c1b7#diff-ce80ef634830b4483558d11765fb3faca12bf0ee435cd5f85faa072835be557dR106
Reproduction steps
Debug logs
The text was updated successfully, but these errors were encountered: