Find possibly unused entities
search_find_unused_entitiesIdentify unused or orphaned Home Assistant entities for cleanup by flagging those unavailable, unknown, or missing a device_id for over 7 days.
Instructions
Heuristically list entities that look unused or orphaned.
Flags entities whose state has been 'unavailable' or 'unknown' for
more than 7 days (or has no last_changed at all), plus any
entity-registry entries with no device_id — which normally means
helpers, automations and template entities, not proof of disuse.
Use when: hunting for cleanup candidates, always reviewing each result
before deleting anything.
Returns: list of dicts (entity_id, state, last_changed, device_id,
reasons) — reasons explains which heuristic(s) matched.
Limits: purely heuristic; the 7-day unavailability threshold and a
missing device_id are weak signals, not confirmation that an entity is
truly unused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |