home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.38k stars 30.64k forks source link

Old entities from an integration can't be removed #21290

Closed danielsjf closed 5 years ago

danielsjf commented 5 years ago

Home Assistant release with the issue: 0.88.0

Last working Home Assistant release (if known): First notice

Operating environment (Hass.io/Docker/Windows/etc.): Hassio on a Pi3B+

Component/platform: Deconz integration

Description of problem: The integration screen shows entities that don't exist. Their status is unavailable but they don't show up in the entity list of home assistant. I can't remove them from the integration since clicking on them doesn't work.

They did exist in the past, but the value was always zero. Deconz must have fixed this and now the entity is removed. Home assistant still remembers this old entity. Deleting the integration and reconfiguring doesn't help.

cgarwood commented 5 years ago

You should be able to delete them from the Configuration -> Entity Registry page

rpatterson commented 5 years ago

This happened to me with a LIFX integration light. I also have the SmartThings integration and it happened with the entity from that integration too. Deleting the entities from "Configuration -> Entity Registry page" didn't work. I worked around this by shutting down the docker container and removed the entities from config/.storage/core.device_registry and config/.storage/lovelace

Leatherface75 commented 5 years ago

I have a few hundreds of old devices in my telldus live integration and i don't want to remove the whole integration and need to reconfigure everything. Maybe a setting that can remove all old not used things? Those devices seems to have "via_device_id": null in core.device_registry file but removing a few 100 there would be a real pain.

Tontze commented 4 years ago

Have this issue too, recently restarted again, and entities came from zmeuzb stick, forgot to reset it. Now i removed z-wave integration and my desktop is full of unused non functional entities i cannot remove anywhere ?

jmtatsch commented 3 years ago

I removed the lovelace file in homeassistant/.storage. That of course reset my entire UI but that all the not found yellow entities were gone. If it is only some entities you certainly could have also edited the file but sometimes starting over is a good thing.