Joining the WTF frenzy, here is one of my most irritating nits.
We need a filter in device-states to hide unavailable entities.
More than half of my entities are permanently unavailable and are replaced with “_2” copies.
Since it is apparently impossible to delete old, unused entities, why can’t we just turn on a filter to hide “Unavailable” entities?
I shouldn’t have to.
Maybe I don’t keep my system as squeaky clean as you do.
Most of the “unavailable” entities are the result of making a change in the YAML configuration for a device. Then spending more time fixing all of the broken automations and scripts because Home Assistant thinks it’s a new device and adds a _2 to the entity ID.
I’m not sure what you mean. You shouldn’t have to do what?
But if you delete the old entity then fixing all the automations and such is as easy as just renaming the *_2 entity to remove the *_2 part. Then everything else just works.
That means you don’t have a unique_id and when you restart they will be gone. If you reload without a unique_id, you’ll get _2 entities. There’s no way around this because HA doesn’t know the configuration has changed.