How to restore deleted device items (zigbee2mqt)?

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
User avatar
Wolly76
Posts: 24
Joined: Sunday 21 March 2021 8:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Netherlands / Utrecht region
Contact:

How to restore deleted device items (zigbee2mqt)?

Post 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
MikeF
Posts: 350
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.2
Location: UK
Contact:

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

Post 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.
User avatar
Wolly76
Posts: 24
Joined: Sunday 21 March 2021 8:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Netherlands / Utrecht region
Contact:

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

Post 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.
User avatar
Wolly76
Posts: 24
Joined: Sunday 21 March 2021 8:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Netherlands / Utrecht region
Contact:

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

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest