-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
Inverter BMS battery capacity not reporting correctly #535
Comments
If you increase the log level the raw data of the BMS is printed to the log. This raw data would be helpful to get an idea what's going on here. Do use use a BLE or UART connection? Do you know how to increase the log level? |
Sorry, I am using BLE. I saw the section on increasing the log level. Should I increase all the levels or is there a specific one in order to minimize the amount of output? |
This is the required logger configuration for a BLE setup:
I'm interested in all |
Please see the logs attached and the sensor states in Home Assistant. Please let me know if you need more info? |
I did some more troubleshooting. I did a bunch of logging with and without the verbose logging and the results were inconsistent. I have not kept a detailed log of what happened at what time, although I am of a technical background and know better. I decided to flash another ESP with esp32-ble-v14-example.yaml again, I only added the api encryption key. I saw the same result where it sends the wrong battery capacity. I thought that rules out my code implementation on the original ESP. I then proceeded to connect both the old and new ESP to a development HA instance and received the same result. I opened the JK BMS App on my phone again and looked at the status and setting screens and both showed 250Ah. I decided to change the capacity setting in the BMS from 250Ah to 240Ah and then back to 250Ah and it seems to have resolved the issue as I am now receiving the correct values. Two days ago I had a battery undervolt protection event and had to switch the the BMS into emergency mode. I did not power down the BMS. I am not sure if that might have caused the issue? I will monitor it and feed back. I assume this could be closed as a non-issue? |
|
I will think about it later the week. I assume the value of the |
I am not sure I understand the difference between the frames, but it seems the BMS might have been sending the incorrect battery capacity and remaining capacity values although the App was seeing the correct values for some reason. As stated above as soon as I made a change to the capacity setting in the App the values sent by the ESP was corrected. The fact that I received the same incorrect values using different ESPs and on a different HA instances indicated to me that the source of the information might be at fault. I noticed that after I made the change on the BMS, the cycled Ah capacity and the cycle count was reset to 0. This makes me worried as if someone makes a change to the BMS settings 5 years into using the BMS you loose all the history? |
I connected a 250Ah battery and all data seemed correct between JK BMS App and ESP. Somehow this changed and the ESP battery capacity sensor is now reporting 161Ah while the BMS still reports 250Ah in the JK BMS App.
23:05:22][D][sensor:094]: 'inv-batt-1 capacity remaining': Sending state 161.24701 Ah with 3 decimals of accuracy
[23:05:22][D][sensor:094]: 'inv-batt-1 total battery capacity setting': Sending state 161.24701 Ah with 0 decimals of accuracy
Any ideas or guidance on where to look will be appreciated.
Thanks
The text was updated successfully, but these errors were encountered: