Remove an entity from the registry
ha_remove_entityRemove orphaned Home Assistant entity registry entries when the integration no longer provides them. If the integration still provides it, disable the entity instead.
Instructions
Remove an entity's registry entry, for cleaning up orphans: an entity whose integration no longer provides it (status 'unavailable' with restored: true), or one left behind by a deleted device. An entity its integration still provides comes straight back, so disable it with ha_update_entity instead. Requires HA_ALLOW_CONFIG_WRITE (ha:config).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | Yes | The entity to remove. | |
| instance_id | No | Optional: the instance you mean (as listed by vomehome_list_instances). When given, the call is refused if this session is targeting a different home, instead of answering from it. |