The question still remains; “How do you purge an entry that does not appear in the list of entities or when typed out?”
For me I went to “Developer Tools”, “Statistics” tab, then clicked “Fix Issue” on all the entities without unique ID’s.
Thanks a lot,
I just had to clear the cache
For me, the devices were not in the known_devices.yaml…
I had removed them from the configuration.yaml, and the entities persisted.
Restarting HA in the interface didn’t work… UNTIL I ran “reboot” from the terminal.
After that they were gone.
Thanks- that’s a tool that I didn’t know about.
But my orphan device is not on that list.
I had the same issue after creating an entity with the REST api. I was able to remove this by posting a DELETE event:
curl -X DELETE -H "Authorization: Bearer $TOKEN" https://your-homeassistant.example.com/api/states/sensor.example
More about the REST api in the docs, although this delete action is not mentioned there: REST API | Home Assistant Developer Docs
This worked for me as well
The entities I want to remove dont show up under statistics.
I had added a few things in config yaml and when I removed them they would not go away as entity and had no id and so on.
The solution for me was to use addon studio code server and going into known devices yaml and remove them, save and reboot and they were removed.
known_devices.yaml
is deprecated and not used anymore so you should be safe with just removing the file (and since there is theory and practice - I would just make a copy just in case :))
worked for me, thanks so much!
Worked for me!
Fantastic, thanks.
Now the trick will be remembering this next time!
Doing this on the specific entity, and then shift+refresh in my browser did the trick.
Thanks
this work for me, for one of my helper sensors, but the other is still " This entity (‘sensor.eletrtic_off_peak’) does not have a unique ID, therefore its settings cannot be managed from the UI.
what a pain. I will just have to recreate it with a new name and hope in time I am able to delete it
Thanks for this! Purge entities in Developer tools and then logging out and back in again worked a charm!
This great, and worked for me! Now someone needs to make a simple add-on that can issue this API call from a simple UI
I found I needed to refresh my browser once I had done that. Clear the cache so to speak.
Is there any screen or method to see the unique_id parameter of the entities?
I have used SQLite to delete the relevant entries for the states table, and then the states_meta table, then re-booted HA - and the defunct entity was re-created in states_meta with a new ID !
Do I need a wooden stake ?