Explain why something changed
explain_state_changeExplains why a Home Assistant entity changed by reading the logbook and reporting the cause of each recent change: automation or script, user action, service call, or the device itself.
Instructions
Why did this entity change? Reads the logbook and reports, for each recent change, what caused it: an automation or script (with the id to pass to get_automation_trace), a user or service call, or the device itself.
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": "explain_state_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | ||
| limit | No | ||
| entity_id | Yes |