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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entity_id": "<entity_id>"
},
"name": "ha_get_history"
}
}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. |