Hi everybody,
I have countless “dead” entities that have been picked up through an 433MHz proxy ages ago that I finally want to get rid off.
I have tried this, which does not work (it needs an actual list of all entities, no wildcard)
action: ha_registry.remove_entity
data:
entity_id: *acurite*
So then I was hoping to find all these entities with this template, but it only returns an empty string.
{%- for state in states -%}
{% if "*acurite*" in state.entity_id %}
- {{ state.entity_id }}
{% endif %}
{%- endfor -%}
There are over 300 entities with acurite
alone that I would like to remove, then countless more that I haven’t even filtered for yet because I don’t know how to list them all.
Can you please help me remove these entities? They were auto-discovered and the only other way to delete them seems to click on each and every device, click the three dots next to MQTT INFO, then DELETE. But that would take forever.
I have already tried running a script that will clear all MQTT messages that were set to “retain”, hoping that this might delete these ages old devices, but it did not. They are still part of Home Assistant, and I am currently trying to get rid off everything that doesn’t need to be in my HASS instance.
(I cannot add / remove favorites on my smart watch because - at least I believe so - there are too many entities; it loads, and loads, and eventually crashes or simply quits the Home Assistant app, which might be caused by the app trying to load every single entity before displaying them all…)
Thank you in advance for your help