Get entity state
get_entity_stateReads a Home Assistant entity's live state with its area, device, and domain-relevant attributes for quick inspection.
Instructions
Get the live state of one entity with its area, device and relevant attributes.
The state is read fresh from Home Assistant. Attributes are filtered to the ones meaningful for the entity's domain (e.g. temperatures and modes for climate).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | Yes | Exact entity_id, e.g. 'climate.hvac'. Find it with search_entities. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | Yes | ||
| name | Yes | ||
| unit | Yes | Unit of measurement of the state, if any | |
| state | Yes | ||
| device | Yes | Name of the device this entity belongs to | |
| domain | Yes | ||
| entity_id | Yes | ||
| attributes | Yes | Relevant attributes for this domain; noisy/internal attributes are omitted | |
| last_changed | Yes | When the state value last changed (UTC) |