So, I was just doing FW update on my Aeotec Home Energy Meter Gen5 that required to remove it from my network. I did that, updated re-add and noticed that now I have 2 meters in my things list, tried removing and adding again and now I have 3 meters (12 devices in total as I use a composite DTH i created). When I try to remove them from IDE I get:
I ran into the same thing today. Itās a bug. SmartThings is apparently not allowing deleting devices that are not directly associated with a hub. Youāll see this if you log into the IDE and go to that device.
The workaround is easy enough - edit the device, choose a hub, then save. Now you can delete the device as normal.
I think itās actually very common for hub to be null for custom and 3rd party integrations. This a recent bug that has caused problems when trying to delete those, though.
I wrote one other āmulti deviceā DTH and all child devices using it have HUB assigned but I added them some time ago and as you said - itās a recent bug.
I was having the same problem
Cannot invoke method contains() on null object
What I had to do is go in & remove the thing (my case trying to remove an old android phone) from all smartthings ir was connected to then & only then would it remove.
Mike
Hi, I tried the above approaches by trying to associate it to a hub and removing any smartapps from it. But it still does not allow me to delete the device.
Still showing the error message - Cannot invoke method removeChildDevice() on null object
Background - installing a HS105. My steps are
(1) Add new HS105 using Kasa apps
(2) Ensure HS105 is included in the device handler file.
(3) Goto IDE-my devices to add the HS105 unique device IDā¦
(4) Notice HS105 is added to the smartthing-classic but not able to control switching it and off.
Trying to uninstall it and then noticed that I was not able to delete the device.
Switching device āTypeā on the web to zwave light switch allowed me to finally delete it (deleted on the web). you can try different types. mine was a broken device but the app and web were registering it as on and wouldnāt let me delete it or turn it off. I tried changing hubs, rooms, etc. only thing that worked was changing device type.