Home Assistant · Skills
Troubleshooting Home Assistant Automations
Every Home Assistant house accumulates one: the automation that silently does nothing, and its cousin, the one that fires when it should not. The platform ships a genuinely good debugging instrument — the automation trace — and most “broken automation” stories end within five minutes of opening it. This guide teaches the trace-first workflow, the test methods that do not involve waiting for Tuesday, and the five root causes that account for nearly every failure. It assumes your automations exist; the automations guide covers building them.
Published Nov 21, 2026
Start with the trace, always
Open the automation, then its traces view: every run is recorded with the trigger that fired, each condition’s true/false verdict, and the path execution took through the actions — including where it stopped and why. Three readings cover most mysteries. No trace at all means the trigger never fired: the problem is upstream (the event, the entity, the schedule), not the logic. A trace that stops at a condition names the culprit directly — read which condition evaluated false and check that entity’s actual state at that moment in the history panel. A trace that completes but “nothing happened” moves the investigation to the action’s target: the light was already on, the notify service name is wrong, the scene contains entities that no longer exist. Traces turn folklore (“it never works on weekends”) into a specific false condition on a specific day. Keep the trace retention in mind — traces are a ring buffer, so reproduce promptly or trigger manually while watching.
Testing without waiting
The automation editor’s “Run” action executes the actions while skipping trigger and conditions — perfect for verifying the action half, useless for the logic half, and the source of much confusion when it “works” there but not in life. For the logic, use the developer tools: fire the event, set a state temporarily (set the motion sensor’s state to on and watch the automation respond), or trigger the automation with its trigger block via the automation.trigger action with conditions optionally skipped or enforced. Time-based tests should not wait for the real hour — temporarily change the trigger time to two minutes from now, watch the trace, then change it back (and write the real time in the automation’s description while you are there; future you says thanks). For template conditions, the template editor in developer tools evaluates the exact expression against live states — paste, read the true/false, adjust. Our check-in builder exists because one such template — a last_changed comparison — is both common and fiddly; it is also the perfect specimen for practicing this workflow.
The five usual causes
1. The entity changed. A renamed device, a replaced sensor, an integration reload that appended _2 — the automation still points at a ghost. The trace shows an unavailable or never-changing trigger entity. 2. The condition is stricter than reality. “Above 25” when the sensor reports 24.9, a sun condition fighting a timezone, a state written as On where the platform stores on. 3. The mode ate it. An automation in single mode (the default) ignores triggers while it is still running — a long delay or a wait step silently swallows the second event; queued or restart mode is sometimes the fix, sometimes the bug. 4. It fired, into a void. The target was unavailable, grouped into a helper that was off, or the service call succeeded against a device that was unplugged. 5. It never reloaded. YAML edited on disk but automations not reloaded — the UI and the running system disagree until a reload or restart. Naming discipline (entity naming) prevents cause 1 more reliably than any debugging skill repairs it.
The habit that ends most of this
Debug in the open: give automations descriptions that state intent (“weekday mornings only; fires when the kitchen has been quiet since 6”), add a temporary notify action while testing so runs announce themselves, and remove it when the trace is clean. When an automation matters — a check-in, a shutoff, an alarm — test it on a schedule, not after it fails: the drills mindset from the homelab series applies to the house’s logic exactly as to its backups. An automation you have watched fire correctly, in the trace, with your own eyes, is the only kind worth trusting.
Official documentation and references
- Home Assistant — Automation troubleshooting — traces and the debugging workflow from the docs
- Home Assistant — Automation modes — single, restart, queued, parallel — cause three, documented
Frequently asked questions
My automation never runs. Where do I start?
The traces view. No trace means the trigger never fired — chase the entity or event upstream. A trace that stops names the false condition. A completed trace with no visible effect moves the hunt to the action’s target.
The Run button works but real life does not. Why?
Run skips the trigger and the conditions by design — it only proves the actions work. Test the logic with developer-tools state changes, fired events, or a temporarily moved trigger time, and watch the trace.
Why did my automation ignore the second trigger?
Probably its run mode: single mode (the default) discards triggers that arrive while a previous run is still executing — a long delay or wait makes that window wide. Restart or queued mode may be the fix.
How do I test a template condition?
In Developer Tools → Template: paste the expression and read its live true/false against current states, then adjust. It is the fastest loop for conditions involving last_changed, timestamps, or numeric thresholds.

