@flipper999 wrote:
Hi,
I’m trying to get MQTT auto discovery working. I have the MQTT Mosquitto add-on and the MQTT integration installed. MQTT integration has “add new devices” switch turned on.
MQTT integration is configured to enable anonymous connections. I can connect with MQTT explorer on Windows. When I add the example in the documentation nothing happens.
(Example: Topic: homeassistant/binary_sensor/garden/config and payload: {“name”: “garden1”, “device_class”: “motion”, “state_topic”: “homeassistant/binary_sensor/garden/state”}I have Home Assistant (hassio) running in docker on Ubuntu.
Logging config to see debug for mqtt:
logger: default: warning logs: homeassistant.components.mqtt: debug custom_components.my_integration: debug
I see this in the log:
2020-02-29 19:08:03 DEBUG (MainThread) [homeassistant.components.mqtt] Subscribing to homeassistant/#
2020-02-29 19:08:04 DEBUG (MainThread) [homeassistant.components.mqtt] Subscribing to homeassistant/#But nothing more when publishing example to the mqtt add-on.
Documentation mentions adding this:
mqtt: discovery: true discovery_prefix: homeassistant
But that shouldn’t be needed when using the integration.
I couldn’t find the discovery_prefix the integration uses, but the log seems to indicate “homeassistant”. (Also i’m getting port in use messages when I do try to add this to configuration.)Version Home Assistant (Core?): 0.106.1
Anybody got any idea what I am missing?
Regards, flipper.
Posts: 1
Participants: 1