Zigbee2MQTT devices not showing

Hi,

I am having big troubles trying to integrate Zigbee2MQTT with Home Assistant.

I have one RPi running the Zigbee2MQTT. This works fine and I can see all my devices there. I have enabled home assistant in the configuration yaml. This seems to work, since if I use MQTT Explorer, I can see that Zigbee2MQTT is sending out a discovery message for each device, which can be seen in the following image. I also have a bunch of other devices, which are not from Zigbee2MQTT but from OpenMQTTGateway.

On another RPi I have installed Home Assistant. I have connected this to my MQTT broker. The MQTT broker is able to add devices from my OpenMQTTGateway, but it does not add any of my Zigbee2MQTT devices.

I feel like I have tried everything and I don’t know where to look anymore. I don’t know if the problem has to do with Home Assistant or Zigbee2MQTT.

Many thanks in advance!

Are those config topics retained?

Yes they were. I managed to solve it by making Zigbee2MQTT publish the discovery messages to a new topic and of course also switch the MQTT topic in Home Assistant. I have no idea why this worked… But thanks anyway!