Get state history
ha_get_historyFetch historical state changes for one or more Home Assistant entities across a defined time range. Use entity IDs plus optional start and end timestamps to inspect past states.
Instructions
State changes for one or more entities. Args: entityIds (required), start (default: 1 day ago), end, minimalResponse (default true — only state + last_changed, much smaller), noAttributes. Returns: one array per entity. Requires the recorder integration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ISO 8601 timestamp, e.g. 2026-10-17T00:00:00+07:00. End of the period. Defaults to 1 day after start. | |
| start | No | ISO 8601 timestamp, e.g. 2026-10-17T00:00:00+07:00. Start of the period. Defaults to 1 day before now. | |
| entityIds | Yes | Entity ids, e.g. ["sensor.kitchen_temperature"] | |
| noAttributes | No | ||
| minimalResponse | No |