-
Notifications
You must be signed in to change notification settings - Fork 66
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
JK BMS incomplete MQTT data in Home Assistant #482
Comments
Yes, I am aware. The reason is this: The HomeAssistent integration in OpenDTU-OnBattery still only knows about the Pylontech Battery and publishes all the sensors the Pylontech would feed with data. I started working on fixing this, but have not found the time to finish it... Thanks for using the JK BMS interface and giving feedback 😊 |
This is good news, it means it will work in the future. |
I have added a case to the file “MqttHandlePylontechHass.cpp”. Now, depending on the BMS selected (Pylontech or JK BMS) in the config, the correct data will be published to Home Assistant. I have tested it successfully and would like to make it available to the general public. What I don't really like is that I implemented it in the file for "Pylontech" due to inexperience. Maybe someone can rename the file to "MqttHandleBMSHass.cpp" https://github.com/NevelSavage/OpenDTU-OnBattery/blob/development/src/MqttHandlePylontechHass.cpp
|
is this issue still being worked on/is there a solution? |
I have developed a working solution, which I forked in the link above. Unfortunately I don't know how to transfer this to the main fork. If you are interested, you are welcome to use my fork, which I always keep up to date. |
@ButterBetzi @NevelSavage Please have a look at #640. You can find respective artifacts to test at the bottom of https://github.com/helgeerbe/OpenDTU-OnBattery/actions/runs/7790264715?pr=640 (this would be helgeerbe/development plus the Home Assistent integration I comleted). Your feedback is welcome (put it in #640). |
@schlimmchen flashed it and it works! Thank you! :) |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns. |
What happened?
JK BMS only shows 'SoC' and 'Manufacturer' in Home Assistant.
All other items are 'unbekannt'.
In the OpenDTU-OnBattery web interface, other values are displayed correctly, e.g. temperature, current, etc.
MQTT Explorer shows slightly more entities (although not all of the possible ones that were published in Home Assistant), but these are rarely updated, it seems to me. The entities SoC and Manufacturer are updated cyclically. Could it possibly have something to do with that?
To Reproduce Bug
Removing the device MQTT Battery in Home Assistant.
Reboot Home Assistant and OpenDTU-OnBattery.
After the restart, the battery is recognized again, but the values are still not fully displayed.
Expected Behavior
All available entities could be displayed in Home Assistant. The cell voltages would also be interesting.
Install Method
Self-Compiled
What git-hash/version of OpenDTU?
f0a55ea
Relevant log/trace output
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: