Delete old discovered item

Also, if they are hard coded, just have discovery ignore that component by adding to the ignore list.

How I can exclude only yeelight bulbs and lamps from discovery?
I can only exclude “yeelight Sunflower bulb”, but this is not the same as they write in the description.
If I would disable “Xiaomi Gateway (Aqara)” then I am afraid that my sensors will not be detected.

And I don’t wan’t to disable discovery in general, but only for these yeelights, which can’t be renamed or deleted. I also added all my yeelights manually to be able to assign a name, because the automatically added yeelights can’t be renamed.

If I can’t avoid the automatic detection: is there at least a way to hide them and to avoid them to be added to autmatically created groups?

The auto detected yeelight scan be renamed in customise.

I had the same issue but this worked perfectly for me:

Discover some devices automatically

discovery:
ignore:
- yeelight

Now my hard coded devices all appear correctly and the discovered yeelight_XXX are all gone.

This link explains how to remove old entities, toward the bottom of the page.

2 Likes

I created an account because I had the same problem with Chromecast. All my devices are static IP before I even learns about HA.
I found that just removing the cast integration and rebooting I was able to quickly setup the devices again and get a clean list.
Obviously not a real solution but it helps.

2 Likes

I know this is an old thread, but I did manage to fix the same problem you were having without any database shenanigans. Went to /config/.storage/core.entity_registry and deleted the old entries for the LG TV Media Player, renamed the most recent from lg_living_room_tv_3 to lg_living_room_tv and all my cards worked again.

Discovery is long gone for the most part, pretty much everything in this thread is out of date.

Not seems to be out of date because I’m facing the same problem. Solved by removing entities from .storage\core.config_entries and disabling discovery in all integrations which was installed. It seems that issue raising when anybody adds entities by hand with the help of YAML and additionally installed integrations with switched on discovery.

hmmm can’t do that in my case :frowning: it’s not in there.

Everything that shows up in the core files mentioned above is not “discovery”. Discovery is an integration that no longer exists in home assistant and it was only used by a small fraction of integrations. New devices that are automatically found are handled by a number of integrations, like zero config, Bluetooth, and more.

If the devices are found by those integrations, you can ignore the found devices. After you remove the integration causing the device to be found, restart your system, they will be deleteable.

If your entities came from yaml, you have to remove the yaml and wait until the entity is purged from the database before they will naturally disappear.