When this has happened before, I’ve searched using Visual Studio Code and deleted the entry that way, but this time these entities are not showing up anywhere in VSC to be deleted.
As I said above after trying this in the passed, if it fails, I search the entity in VSC and find it somewhere in a file in the .storage folder and delete the section of code containing the entity, but in the case these don’t show up in VSC after a search, so I have no idea where they are hiding.
I get the OCD but if a device provides entities you don’t want the only option you have is to disable them. Tasmota does this as well as lots of integrations.
eg:
If they were added from an Integration and you have removed them from the integration eg Sonoff, Xiaomi but they still appear in HA a reboot of Home Assistant will usually make them disappear.
back to this…]]entities was created when I added them into my configuration.yaml, which then lead HA to create the associated entity, I have removed allot of these previous mqtt sources/entities, but still have them listed under (*new interface/developer tools/states\0
If they were created as part of a YAML, I’ve found that you actually need to reboot TWICE to get them to really disappear after removing them from the YAML. But this still doesn’t seem to delete history data in the database, so if you recreate sensors/entities with the same name, the old data will still be there. I have not found a good way to delete that.
I added some Zigbee lights and I gave them the name backlight1 … backlight4. The actual Entities were named light.backlight1_forceonlight etc.
I lived with it overnight but when I started making sure Alexa and Google could see them I decided to change the Entitiy name to light.backlight1 etc.
So now I have the 4 entities as I want them and have created groups and stuff and they are in Alexa and Google OK.
But, I now also have 4 unavailable entities with the original names. I cannot work out how to delete them. I probably have lots of others like it too.
Help?
I have the exact same problem. I want to delete the unused entities. It is more than OCD; When I create a new entity, it appends _2, _3 etc… to the desired entity name, which requires correcting all the automations. Any new developments since the last post?
I have 2 EVE Energy and 1 EVE Door/Window which I had integrated thru Matter. Initially this worked fine but somewhere along the line they became UNAVAILABLE. I have reloaded the Matter Integration, Restarted HA, rebooted the whole system (HA Yellow), nothing helped.
HA does not allow to delete Entities which are unavailable. I have also deleted the Matter Integration (+ restart; + reboot) in the hope the rogue entities would disappear.
Unfortunately this did not help either, the devices/entities are still listed and unavailable.
I would appreciate guidance as t how to get rid of these.
Dito, I also have an entity I tried to delete (manually from .storage folder). Still appears again. It is not coming from a device and it can’t be deleted from the UI.