-
Notifications
You must be signed in to change notification settings - Fork 3
Mqtt version on Home Assistant and in MQTT DEVICES section #15
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
Conversation
DevOldSchool
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this improvement.
Can you rebase from master for the database fixes as they have been merged in and make the requested change.
|
Thank you for this contribution. That's a neat idea. Reviewing the docs for Home Assistant, it appears these fields are intended for a different use: https://developers.home-assistant.io/docs/device_registry_index/#device-properties To me it would be more fitting to pass the firmware version of the hub which is in the headers rather than our "hub-server" version. |
|
Just have a look that power_discovery is held back until the hub_version is available. and I set a default DEVICE_URL but when I run my local one it is set to my portainer address where i can manage the containers. |
|
Hey @HenJou , I have been playing around with this on local and got the firmware version working. However, one part really concerns me. The devices don't update automatically. It seems you have to delete and recreate them which will cause issue with peoples history. Do you have any ideas on a way around this / did you run into the same issue? |
|
Hi @DevOldSchool , You talk about the update in home assistant under MQTT. I just now delete the homeassistant/sensor/efergy_h2_sid and restart the docker and the history is back with the old name. You must not delete it in home assistant. Does this make sense? |
That part makes sense. What about if they swap out their hub device or somehow get firmware update? The data will be out of date until they manually delete it. |
|
If i got it right is that home assistant cache discovery topics and for this to work we need a process to delete the old topic and republish, but a check must be build in to know when to do the delete and the republish. |
On the weekend I'll do some more research to see if there is a recommended way to handle this in HA. If you get the chance to look before hand that would be good as well. |
Looks like we can pass an empty payload to clear the discovery. Thanks for your work on this :) |


Have a look at this enhancement for mqtt that you can see the firmware version that reference the release build and in Home Assistant you can click on the icon and open the github repository.
