MQTT Discovery not adding devices

I’m publishing this data like this:

  • topic: homeassistant/sensor/yellow_breadboard/temp1/config
  • qos: 0
  • retain: true
  • payload: { "name": "Example Temperature 1", "unit_of_measurement": "°F"}

Pretty sure I have it configured correctly.

The logs show this:

2018-07-17 09:17:54 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on homeassistant/sensor/yellow_breadboard/temp1/config: b'{"name": "Example Temperature 1", "unit_of_measurement": "\xc2\xb0F"}'
2018-07-17 09:17:54 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: sensor yellow_breadboard_temp1
2018-07-17 09:17:54 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.mqtt
2018-07-17 09:17:54 DEBUG (MainThread) [homeassistant.components.mqtt] Subscribing to homeassistant/sensor/yellow_breadboard/temp1/state
2018-07-17 09:17:55 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on homeassistant/sensor/yellow_breadboard/temp1/state: b'71.825'

Everything looks good to me. Why do I not see devices in HA?

What am I missing?

Never mind. It appears to be working now.

Hi,
What helped you to solve it?
I am facing same issue…on config topic Hassio is receiving the json data but the device is not getting added.
Any suggestions from your side?

I have also checked in core device_registry but no new device seen.

Thanks in advance

So, I don’t think I did anything differently. It just started to work. Also, I may have had to remove older, persistent discovery items from the /homeassistant topic in MQTT. Much has changed in discovery since my previous post, so any number of other things could be different, to be honest.