ZigBee2MQTT all entities lost but control is still possible from zigbee2mqtt panel

I run into a problem where all the zibgee entities are gone from home assistant:


However from the ZigBee2MQTT pannel I still can see them all and can interact with them properly:

Up to this morning everything was working well (HA 2025.2.3) but then I updated both home assistant core to 2025.3.1 and zigbee2mqtt to 2.1.3. After the update it seemed to work for a while and after an hour or so, it broke as shown.
Any ideas? I already tried to rename one entity (portal carrer) and it appears as not detected and reconnect another one (portal Garatge) with the same result

I see you have mqtt explorer already installed.

In that case, what happens when you try to control a device from Z2M directly? Do you see mqtt messages in mqtt explorer?

If you do, then the issue is either in your mqtt broker or with the ‘homeassistant’ setting in Z2M.

Try a full restart and check the logs for Z2M & mqtt to narrow down the issue

This morning I also did one thing with the mqtt explorer. I wanted to clear the list of topics and clicked in the tras icon


Might it have something to do with the failure?

Yep, I suspect that would cause the issue. You essentially deleted all discovery messages from mqtt so now HA doesn’t know about your devices.

Start with a simple reboot of your host machine. If that doesn’t work, try the reconfigure button for 1 device in Z2M and see if it shows up in HA. Repeat for other devices if it works.

If it doesn’t work, I’m not sure how to get the discovery messages republished, sorry.

A thing worth noting if Zigbee-devices fall apart on the HA side, but still works fine in Z2M: Z2M don’t republish the homeassistant topic defining all the devices in HA after initial startup.

If you were to restart your MQTT-broker, without also restarting Z2M afterwards, you’ll probably end up in the situation you’re describing in this thread.

This have caused me some grief a couple of times :slight_smile:

It seems that rebooting the system (not restarting home assistant only) fixed most of the problems. I hade to reasign the devices locations but that was prity much it. Thanks!

If it helped you, please consider marking my previous post with the solution tag. That way others with the same issue will be able to identify the appropriate fix