Actions8
State → List
AI-generatedSummary
Lists Home Assistant states and can filter them by entity type, entity ID, or area. Enable Resolve Entities to include entity registry details with each matching state.
Inputs
- Entity Type Name or ID — Optionally filter by entity type, such as a domain. Choose from the list or enter a value; the filter checks whether the state’s entity_id starts with it.
- Entity Name or ID — Optionally filter to an exact entity_id. Choose from the list or enter a value.
- Area Name or ID — Optionally filter by area. The implementation checks the entity_id prefix and, when entity details are fetched, the entity or device area ID.
- Resolve Entities — Defaults to false. When enabled, fetches entity registry data and attaches the matching entity details to each state. Setting an area filter also fetches entity data, but those details are removed unless this option is enabled.
Output shape
A list of matching state objects for each input item.
Each state includes entity_id, state, attributes, last_changed, last_reported, last_updated, and context. With Resolve Entities enabled, a matching entity record is added as entity; otherwise entity is omitted. Results are linked to their corresponding input item.