Page 1 of 1

How to restore deleted device items (zigbee2mqt)?

Posted: Sunday 21 March 2021 8:19
by Wolly76
Hi all,

in an attempt to fix a zigbee2mqt device that didn't update anymore, I deleted the items (link quality, battery, voltage, switch, etc) that belonged to the device.
Subsequently, I wanted to repair the device assuming the items would be restored and the update should work again.

Unfortunately, that didn't work out that well. I have also removed the device and repaired. The device will appear again but not the related items .
How can I restore the items?

I don't know if this is related, but some of these items appeared in the log as "Python Plugin System: (Zigbee2MQTT) Device is in blacklist, skipped."
Searching for "Blacklist" and "Zigbee2mqtt" didn't help me as there is very little knowledge about the blacklist to find. I have tried to find the file related to blacklist on my Raspberry using grep on the device id but no clue so far.

Hope someone to have a solution to restore the items of the device.

Many thanks in advance.
Regards,
Wolly

Re: How to restore deleted device items (zigbee2mqt)?

Posted: Sunday 21 March 2021 9:12
by MikeF
Have a look at zigbee2mqtt's configuration file, and see if the device is listed under a blacklist heading. If so, delete that entry and restart zigbee2mqtt and see if that works.

On a Raspberry Pi, the file should be at /opt/zigbee2mqtt/data/configuration.yaml.

Re: How to restore deleted device items (zigbee2mqt)?

Posted: Sunday 21 March 2021 12:21
by Wolly76
Thanks for response. That's exactly the location where I expected to find these definitions, but unfortunately, there isn't.

The next suspect I have, is the /opt/zigbee2mqtt/data/database.db but I don't understand the syntax sufficiently to extract any link to a blacklist.

Re: How to restore deleted device items (zigbee2mqt)?

Posted: Monday 22 March 2021 21:55
by Wolly76
The issue might have been caused by the fact that there were two Zigbee2MQTT plugins installed n the domoticz folder. This made the system instable. I wasnt aware. Even renaming didn't solve as all plugins were loaded regardless their names.
I have removed all zigbee2mqtt plugin folders and did a reinstall. Now it appeared to work again. Keep my fingers crossed.