Get entity states in area
areas_get_area_statesRetrieve live Home Assistant entity states for a specified area before making control decisions. Returns entity_id, state, attributes, and timestamps for every entity in that area.
Instructions
Get current states of every entity in a given area.
Calls areas_get_area_entities for the area, then filters the full
state list (ha.get_states()) down to the entity_ids found in that call.
Use when: you need live state values scoped to one area, e.g. before
deciding what to control.
Not for: registry rows without state values — use
areas_get_area_entities, or a combined view — use
snapshot_get_area_snapshot.
Returns: list of HA state objects (entity_id, state, attributes,
last_changed, last_updated) for entities in the area.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area_id | Yes | Area registry ID whose entity states to return; obtain it from areas_list_areas. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |