I had the same problem after I had to reconnect all zigbee devices. Probably enumeration of the "unit" value is done in chronological order of the (randomly) received values. And of course this order will differ on rejoin the devices.
Furthermore the plugin interface of zigbee2mqtt obviously does not work well. I also see just empty pages.
However: I found the obscure "configuration", which holds these aliases: it is the sqlite database:
domoticz/domoticz\.db (note: I had to use "\." in place of "." since this forum does not allow to submit strings like example-dot-db as it treats it as an URL)
This file is used also to backup/restore all domoticz settings and history values.
To recover:
- backup the domoticz database (settings -> backup -> check downloads)
- I recommend to copy this original db version: cp domoticz\.db domoticz\.orig\.db
- check the content:
Code: Select all
sqlite3 domoticz\.db 'SELECT * FROM Hardware WHERE `Extra` is "Zigbee2MQTT"'
When the output matches expectation (one entry having these aliases), continue. Otherwise use another WHERE clause.
- clear plugin config:
Code: Select all
sqlite3 domoticz\.db 'UPDATE Hardware SET Configuration = "" WHERE `Extra` is "Zigbee2MQTT"'
- restore by modified database (settings -> restore)
In case you have multiple HW entries matching `Extra` is "Zigbee2MQTT", you may want to use WHERE `Name` is "yourSpecialName"