Hi all,
I’ve been running Zigbee2MQTT for a long time without issues, but recently I noticed something strange.
Some Zigbee devices are randomly disappearing from the Zigbee2MQTT database.
There were no new devices added and no Z2M update, and this doesn’t happen very often.
What’s odd is:
- The device is still present in
configuration.yaml - But it’s gone from the database (MariaDB)
- So it disappears from the Z2M UI, MQTT, and Home Assistant
To get it back, I have to stop Zigbee2MQTT, reinsert the missing entry into the DB (or restore a backup), then start Z2M again. After that, the device works normally. So it’s not a pairing or network issue — it’s the DB dropping the device for some reason.
A few details that might help:
- Using MariaDB as the backend
- Network has 75 devices (63 routers / 12 end devices)
- Network is stable with good response times
- This has happened to different devices, not always the same ones
- Nothing shows up in the logs when the device disappears
- I don’t restore add-on backups, so the DB shouldn’t be getting overwritten or corrupted
Any idea why Zigbee2MQTT would remove a device from the database but leave it in configuration.yaml?
Is there any cleanup or maintenance process that could be doing this?
Or something that could cause Z2M to drop a device silently without logging anything?
Thanks for any ideas ![]()