-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[Feature request]: Allow HA discvery refresh #22977
Comments
With "no longer being picked up", do you mean that now a restart is required or are they not picked up at all anymore? |
So the update to the discovery config change are not picked up by Home Assistant, after z2m restart I need to manually remove the retained topic for the discovery config to be picked up again by HA But I might have been too fast to point fingers, I thought it was linked to the recent optimisation as I don't remember this behavior before, but It does looks like the mqtt config payload is correctly sent my z2m, but not updated in HA :
|
Ok scratch all that, anyway my bad ... |
Is your feature request related to a problem? Please describe
Since #22701, changes to the homeassistant discovery overrides are no longer picked up
https://www.zigbee2mqtt.io/guide/configuration/devices-groups.html
Describe the solution you'd like
From best to worst on user POV, and worst to best on dev effort , either :
homeassistant
keyDescribe alternatives you've considered
Right now the only way I see is to manually remove the retained topics before restarting z2m:
mosquitto_sub -h <mqtthost> -u<user> -P<pass> -t 'homeassistant/+/<0xieeAddr>/+/config' --retained-only --remove-retained -W 2
Removing all discovery messages will also remove all other non z2m mqtt configs. Be really careful as you'll have to force a republish of those in the other publishers...
mosquitto_sub -h <mqtthost> -u<user> -P<pass> -t 'homeassistant/+/+/+/config' --retained-only --remove-retained -W 2
Additional context
N/A
The text was updated successfully, but these errors were encountered: