Automation to remove unavailable entities

Hello everyone,

is there a way to remove unavailable entities with an automation.

If yes, how do I do this?

There’s no action available to delete an entity.

The Spook custom integration provides actions to enable/disable and hide/unhide entities. It also provides an action to delete orphaned entities (a leftover entity belonging to an integration that was uninstalled).

2 Likes

Is it a good practice to delegate a deletion of such entities to an automation? Shouldn’t each case be investigated by a user to get a reason of becoming “unavailable”?

1 Like

Heck no.

Imagine a brief network glitch causing most of your entities to be deleted.

3 Likes

So, the solution is - «do not use an automation to delete unavailable entities».

Seems like an XY problem. I think we need to know why. I’ll take a guess: the neighbour’s Bluetooth devices.

1 Like

We shouldn’t take control of the neighbor’s Bluetooth devices?? Oops :grin:

1 Like

I think you are legally required to do this to their bluetooth toothbrushes: https://youtu.be/9Zd9hURkmXM?si=hNI0taWT9CLH_5wj&t=14

1 Like