-
-
Notifications
You must be signed in to change notification settings - Fork 167
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
Actual battery capacity sensor not accurate #31
Comments
|
Model JK-B1A20S15P |
I am not sure what you mean by using the config values f.e. |
Could you provide your configuration.yaml and mark the "faulty" sensors somehow? For example:
|
actual_battery_capacity: Should be 560 and it is showing 512 |
I can send you a copy of the logs if you like? |
Please enable the debug mode of the uart component by adding:
The full
Please flash again and check the logs of the esphome node by:
Esphome prints the log after flashing automatically:
I'm interested in these lines / the raw traffic between the ESP and your BMS:
|
Let's first focus on |
|
Is that what you wanted? |
I looked at the logs and also found this. [13:55:32][D][uart_debug:114]: >>> 4E:57:00:13:00:00:00:00:06:03:00:00:00:00:00:00:68:00:00:01:29 |
The first line is the request (TX). Line 2 and 3 is the response from the BMS. If we add some linebreaks the response is better readable:
The first hex value of every line is the register. See https://github.com/syssi/esphome-jk-bms/#registers Register |
Please don't care about the CRC error. Some frames/responses are dropped because of CRC errors. The next reading will be fine again and will update the sensor measurements properly. |
Ok so on my bluetooth app There is a value for remain battery and it equals 81% |
Could you tell me the value of the |
https://github.com/syssi/esphome-jk-bms/blob/main/components/jk_bms/jk_bms.cpp#L127-L128
|
|
Another minor thing: Esphome wasn't able to replace the variable
|
May be I didn't understand what you are looking for. This value is available
and looks good to me. Are you looking for the remaining capacity in Ah? Could you tell me the total capacity of your battery? |
Yes but on my bluetooth app there is 2 sections for the battery
|
The https://github.com/syssi/esphome-jk-bms/blob/main/components/jk_bms/jk_bms.cpp#L280-L281 But it looks like your BMS returns the proper value here:
It looks like the But we could introduce a new calculated sensor by doing something like this: What do you think? |
So how would i program that? for the 560 decimal? And yes the other would be good to |
I will care about it. It will take a few days. |
when I add the substitutions name to the config, do I have to flash again? And if yes can I do it while its connected to the bms? |
Yes. You have to flash the new version but the ESP doesn't need to be attached to the USB port anymore. You can use OTA now. |
Ok thank you very much for you help!!!!! |
See #31. The resolution of the actual_battery_capacity sensor isn't useful.
I've improved the component. Please extend your configuration by the two new sensors:
And try/flash again. |
Feel free to create a new issue if you are missing something else. |
Talking to BMS and getting Data back but some stuff does not come back correct.
The text was updated successfully, but these errors were encountered: