I’m in the process of remodelling my kitchen and whilst doing so, I’ve decided to add smart light; Ikea Trafri. As my server (UnRAID with HA in Docker is a long way away, I’m using a Raspberry Pi 3b+ running zigbee2MQTT and a cc2531 flahed accordingly. Mosquitto is running on my UnRAID and working properly. I use it to report my tablet battery level (WallPanel) to HA and Node-Red and toggle a Sonoff Smartplug accordingly. I manually added the tablet MQTT sensor and it works well.
I have successfully added one bulb to my Pi and can see it in the config file and I’ve renamed it test_bulb. Node-Red can see it, but Home Assistant won’t discover it. I don’t want to have to add every bulb separately, so I really want to get this working.
Zigbee2mqtt also uses a configuration.yaml file and its instructions say you must set homeassistant: true in order to make it publish discovery topics.
I assume you know this but I will mention it for those who don’t: receiving messages via that topic means Home Assistant is connected to the MQTT Broker and so is zigbee2mqtt. What it isn’t confirming is that Home Assistant is receiving the messages zigbee2mqtt publishes to Home Assistant’s discovery topics.
From the documentation, discovery topics have this format: