Problem deleting ZigBee things - cached in adapter?

Now that the holidays are over, I unplugged four of the five ZigBee controlled plugs I was using on the lights.

I wasn’t too surprised when the removed ones didn’t disappear on their own, but was a bit when the “remove” from the detail page did not do the trick.

I just tried deleting the id’s from the sqlite database as described this answer. After a reboot, they disappeared from the Things page. \o/

However, I had to add back in the 1 plug I’m still using. So I clicked the ‘+’ icon, and found ALL 5 of the devices listed. I assume that means they are cached somehow in my ZigBee adapter.

Any suggestion on clearing them from my adapter with requiring a complete reconfigure of all my other devices?

Thanks,
–Hal

See here: https://github.com/mozilla-iot/zigbee-adapter/issues/174

Essentially, do the following:

  1. Stop the gateway, e.g. sudo systemctl stop mozilla-iot-gateway
  2. Open ~/.mozilla-iot/data/zigbee-adapter/zb-xxxxxxxxxxxxxxxx.json
  3. Remove any nodes you no longer want.
  4. Save the file.
  5. Start the gateway: sudo systemctl start mozilla-iot-gateway

Thanks - tweaking that file, in addition to the main database, did the job.