List entities with filters
entities_list_entitiesBrowse and search current Home Assistant entity states with optional domain filtering, pagination, and field selection.
Instructions
List entity states, optionally filtered by domain, with pagination and field selection.
Reads live states via ha.get_states() over HTTP; when fields requests
area_id, device_id or labels, it also fetches the entity registry
over WebSocket and joins it by entity ID. Filtering by domain and
pagination (limit/offset) are applied client-side after the fetch.
Use when: browsing or searching current entity states across the whole
installation or one domain.
Not for: raw registry fields such as disabled/hidden status — use
entities_list_entity_registry; a plain unfiltered state dump — use
ws_get_states.
Returns: list of dicts, one per entity, containing only the requested
fields.
Limits: limit/offset paginate the already-filtered list; no size cap
beyond that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of entities to return after filtering, for pagination. Omit for no limit. | |
| domain | No | Entity domain prefix filter, e.g. 'light' or 'sensor'. Omit to include every domain. | |
| fields | No | Per-entity keys to return. Defaults to entity_id, state, friendly_name. Also accepts attributes, area_id, device_id, labels. | |
| offset | No | Number of filtered entities to skip before applying limit. 0 starts from the first match. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |