You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the "MQTT Base Topic" setting in OpenMQTTGateway (OMG) is changed to include additional layers (e.g. from the default home/ to home/devices/), the Home Assistant MQTT discovery messages do not update to reflect the new topic structure correctly. The stat_t in the discovery message remains tied to the default structure, even though the base topic has changed.
To Reproduce
Change the "MQTT Base Topic" in OMG to include a different number of layers than the default (e.g. home/devices/).
Enable Home Assistant auto-discovery.
The MQTT devices appear in Home Assistant but with an unknown status, and the value stat_t of the HA AutoDiscovery message is not updated to reflect the new base topic.
Expected behavior
The stat_t value in the Home Assistant MQTT discovery messages should update to include the new topic structure, such as including the additional layers when the "MQTT Base Topic" is changed.
Describe the bug
When the "MQTT Base Topic" setting in OpenMQTTGateway (OMG) is changed to include additional layers (e.g. from the default
home/
tohome/devices/
), the Home Assistant MQTT discovery messages do not update to reflect the new topic structure correctly. Thestat_t
in the discovery message remains tied to the default structure, even though the base topic has changed.To Reproduce
home/devices/
).stat_t
of the HA AutoDiscovery message is not updated to reflect the new base topic.Expected behavior
The
stat_t
value in the Home Assistant MQTT discovery messages should update to include the new topic structure, such as including the additional layers when the "MQTT Base Topic" is changed.Environment:
Default behavior
home/
Auto-discovery Topic:
homeassistant/sensor/[DEVICE]/config
:Current behavior (after changing to
home/devices/
)home/devices/
Auto-discovery Topic:
homeassistant/sensor/[DEVICE]/config
:Expected behavior (after changing to
home/devices/
)home/devices/
Auto-discovery Topic:
homeassistant/sensor/[DEVICE]/config
:The text was updated successfully, but these errors were encountered: