I can't delete not used entities

I have a lot of not used entities in HA e.q. not used Aqara sensors. It is a bunch of data and very messy. I want to get rid of it to have a nice and clear HA.

I try and disable the entities I don’t care about

That doesn’t really describe what you mean very well.

when you say “not used entities” do you mean entities included by the integration associated with a device that you use other entities out of?

Or do you mean orphaned entities that are no longer associated with any device or integration?

if it’s the first then as noted you just need tgo disable the unused entities.

if it’s the second then you should be able to delete them from the dev tools states page or you may need to find where they are in your yaml and delete them there.

1 Like

Sorry, I mean orphaned devices.


I want to remove all the devices with ‘Disabled’

Spook will bulk delete orphaned entities.

2 Likes

Could you please add some details to your reply? I have an entity called “switch.the_living_room_lights” which duplicates what “switch.tv_lights” does. I want to delete “switch.the_living_room_lights” but the delete button is always grayed out. Spook does not allow me to delete this entity.

When I disable the entities I get this ugly brown bar telling me they are no longer available.

You mean like this?

You should be able to click on the cogwheel to get settings, then on “Delete” bottom left.

I just needed to do this,
this is 3 clicks per entity, for 20 entities,
60 clicks, one minute or something.
but it’s not ideal.