Hi,
I got a problem with hass.io MQTT auto discover. It doesn’ t work. The Mosquitto broker Integrations page is empty. Enable newly added entities. is enabled.
OK how needs the data to be to work with auto discovery. I had zigbee2mqtt working with auto discovery in home assistant. I switched to hass.io because it should work out of the box.
Read the link I posted. The data that is in the MQTT broker isn’t formatted for Auto Discovery to work…I don’t think the problem is with his Home Assistant connection to the broker.
If he uses developer tools -> mqtt publish nothing arrives in mqtt explorer, so the connection between HA is not working.
And in the initial screenshot under homeassistant I see the sensors , zigbee2mqtt creates autodiscovery automatic.
MQTT autodiscovering needs a standard topic (default: homeassistant): homeassistant/<component>/[<node_id>/]<object_id>/config
(<node_id> is optional)
Be aware of using root-slash, /homeassistant is a different topic then homeassistant.
For example, I use this for my Who is Home status sensor:
config topic: homeassistant/sensor/who_is_home/config
Example data (I use this in Node Red): { "name":"WhoIsHome", "platform":"mqtt", "state_topic":"homeassistant/sensor/who_is_home/state", "device": {"name":"Who_Is_Home", "manufacturer":"MQTT Hass.io", "model":"Custom", "identifiers":["Who Is Home"], "sw_version":"20190817"} }
Solved it. Reinstalled hass.io installed mosquito broker plugin and zigbee2mqtt plug and it worked straight away.
I didn’ t find any method for debuging in home assistant. The log info is limited. It didn’t show any problems with the MQTT interface. So making snap shots often en go back if there is a problem. Is somehow the only way to solve issues.