Hi
So I removed/deleted a switch (Candeo dimmer) from HA because it was randomly switching on and off, and I could not figure out what was doing it(logs were not helping at all). So I wanted to see if deleting it would remove this randomness. Well, it did.
So, now I have decided to try to re-add it, but I cannot. Apparently the device still exists somewhere in the HA database, preventing it from being re-added. Surely there is a simple way to either completely delete the device from the DB, or find it and add it back in.
I’ve trawled the forums and the best option I am seeing is to find the config/.storage in ssh, but I cannot find this for the life of me.
It does seem strange that I can be stupid enough to delete the device, button re-add the device is a very advanced/skilled process.
Any help would be greatly appreciated.
Also, the HA OS does not allow me to run any standard unix/linux commands, so if anyone has a way around this, it may help me.
Con
I’m not following completely. You removed the device using ZHA remove.
But when you go to ZHA add device, the device isn’t found, and it’s not listed in the list of ZHA devices?
I’ve had something similar happen when developing new devices, usually rebooting will solve the issue.
Yes. Exactly. I ran the remove from ZHA but now I cannot rejoin it. I can see the request in the ZHA log, but I’m not really understanding why it cannot join. Apparently (from what I’ve read), the device still exists in the HA database and won’t allow it to reappear.
Thanks
Con
Ok, check that the device isn’t listed in ZHA as unknown, unknown outside of that reboot. I’ve had to edit the database directly to remove devices, but that was in old versions of ZHA, nothing modern and I’ve had a ton of failures to join when I was testing diy Zigbee devices. If you know the ieee, the zha.remove service works well, but usually you won’t have the ieee.
Also, check your logs after you attempt to join the device, if you don’t see any traffic from it, then you may just have a device issue. I’ve seen similar where the device would flash like it was trying to join and never join, only to put fresh batteries in and have it immediately join.
Thanks. I’ll give it a go. It’s mains powered(hardwired), so batteries not involved. I’ll try the breaker though, that will completely power-cycle the device.