FYI, I also had a phantom zigbee device. I did some experiments and found that the name of the phantom device appeared in 2 places in the .webthings directory tree:
- in a
data/zigbee-adapter/zb-*.json
file
- in the
config/db.sqlite3
file
Note that the record was not active in sqlite, but the pattern was still in the file.
I tried various combinations of removing from the gateway, and/or removing from the json file (rebooting in between) to no effect. The phantom would always reappear in the gateway UI and the json file.
What did work was:
sudo systemctl stop webthings-gateway.service
- remove the phantom id from the json file
- connect to the
~/.webthings/config/db.sqlite3
database and run the VACUUM
command
- reboot for a clean startup
Yeah - it doesn’t make any sense to me either. YMMV, but I’d be interested to know if it works for you.