ha_get_history
Fetch historical state data for any Home Assistant entity over custom time intervals using ISO 8601 timestamps.
Instructions
Get the state history for an entity over a time period
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | Yes | Entity ID to get history for | |
| start_time | No | ISO 8601 start time (e.g. '2025-01-01T00:00:00Z'). Defaults to 1 day ago. | |
| end_time | No | ISO 8601 end time. Defaults to now. |