Get entity history
ha_get_historyFetch historical state changes for one or more Home Assistant entities over a time window, defaulting to the last day when no start time is provided.
Instructions
Get historical state changes for one or more entities over a time window. Times are ISO 8601 (e.g. 2026-06-05T06:00:00+00:00). Defaults to the last day if no start_time is given; with a start_time and no end_time it runs up to now (Home Assistant on its own would stop 24 hours after the start).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| minimal | No | Return minimal response (state + last_changed only) to reduce size. | |
| end_time | No | ISO 8601 end timestamp. | |
| entity_ids | Yes | Entities to fetch history for. | |
| max_points | No | Return each series as at most this many [time, value] points: numbers averaged per time bucket, other states as each bucket's last. For charts: a day of a sensor can be thousands of states. | |
| start_time | No | ISO 8601 start timestamp. | |
| instance_id | No | Optional: the instance you mean (as listed by vomehome_list_instances). When given, the call is refused if this session is targeting a different home, instead of answering from it. |