New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removal of Z-Wave nodes leave orphaned entities/devices behind #18795
Comments
Removing a node needs to remove associated device from device registry and entities from the entity registry. This is not currently being done. |
Also, when marking an entity as hidden from the z-wave configuration panel (or config files) this leaves the same dead entities. |
The entity and device registry in the core don't have functions to remove entities, so this is a core issue as well, not just zwave. |
+1 this is very annoying. Every time I end up editing my network I have to constantly go edit files in |
I concur! I've been fighting with blank nodes and THIS just allowed me to remove them. THANK YOU!!! |
I have had huge issues with this. I have had sensors that were not added correctly (non-secure instead of secure for example because I did not click fast enough on sensor button). |
Also having issues with this. What is the best way to identify and remove the orphaned entities? |
+1 on this, as a new user (migrated from another platform), management and naming of z-wave devices is a nightmare. The fact they're not even removed after a failed association is madness. |
+1 on this. I had Z-Wave devices that didn't configure right and had to remove the node and readd. I now have not only stale entities, but I have 2 of the same Z-Wave device and one uses the _2 and the other is _7 because of all the failures in between. |
I also stumbled upon this issue. Really annoying :/ |
+1 on this issue. Anyone know how to solve it temporarily? I have a ton of orphaned Z-Wave entities. Hitting delete in the UI warns me that it's not actually deleting the entity |
You need to sift through the file in |
I was able to remove the ghost/misconfigured items. Thanks for the recommendation of looking in the .storage. For those needing more details. Success for me. Thanks again zerox1212. |
I would love to see this solved in an automated way. I am switching out my z-wave usb controller and will have so many orphaned devices that it seems better to just wipe and reinstall the HA server and start fresh. |
Will that MR remove existing nodes or only subsequent deletions? |
It will only delete entities for future node removals, it won’t clean up entities from nodes that were already deleted |
I'm running 0.97.2 and it doesn't work for me :( |
Please open a new issue. |
Home Assistant release with the issue:
0.82.0
Last working Home Assistant release (if known):
Probably when the entity registry was created.
Operating environment (Hass.io/Docker/Windows/etc.):
Linux, RPi3, virtualenv.
Component/platform:
Z-Wave
Description of problem:
There are two related cases, 1) when nodes are removed (excluded) and 2) z-wave controller resets.
In either case, there are orphaned entity IDs and z-wave nodes (devices?) displayed in the Z-Wave Integration panel; all the config entries in
.storage
are left behind. I'm not sure what would happen if you tried to rename a new entity with one of these.In the second case, I am theorizing that since entities are mapped via the node ID, if the controller is reset and nodes are included in a different order, it's possible that operating a light switch could turn on a siren, etc. (node 8 used to map to a light entity, but after a controller reset node 9 is a door siren). I don't have any proof of it, but this kind of weird behavior has come up in Discord chat.
Because the entity IDs and devices are stored in the "inaccessible"
.storage
location, it's not easy for users to get rid of them, and it can be risky to hand modify the JSON. There's also no way in the UI to remove them.Here's what it looks like when you remove (exclude) nodes (taken from this community post):
Additional information:
As a user, I would probably expect a node removal to also remove all the associated entity IDs and devices.
The second issue, controller reset, is a bigger problem but pretty similar. Maybe removing the Z-Wave integration itself should also remove all entities?
I'm not sure if the above suggestions are in-line with the rest of HA behavior, but are just my thoughts.
The text was updated successfully, but these errors were encountered: