Get automation/script trace
ha_get_traceExplain why an automation or script run failed: return step-by-step trigger, condition, action results, and the first failing step for the latest or specified run.
Instructions
Step-by-step detail for one run: what triggered it, every condition and action in order with its result, and 'failed_at' naming the first step that errored or evaluated false. This is the tool for 'why didn't my automation run' — logs usually stay silent about a condition returning false. Give 'item' and omit run_id for its most recent run, or give a run_id from ha_list_traces (item is then optional — the run's own item is looked up). Summarised by default; set full=true for the raw trace including the config (large).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| full | No | Return the raw, unsummarised trace including the item's config (default false). | |
| item | No | entity_id or unique id (automation.x / the unique id; script.y / y). Required unless run_id is given. | |
| domain | No | Item kind (default 'automation'). | |
| run_id | No | Specific run to fetch (default: the latest). | |
| 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. | |
| include_variables | No | Include each step's changed variables (default false — verbose). |