Home Assistant Automation Triggers but Does Nothing — A Four-Layer Check for Silent Run-Mode Skips
Some automation faults look exactly like a broken trigger. Someone walks down the hallway, the light comes on, but the promised delayed switch-off never happens. The Logbook shows the trigger, the automation log shows nothing worse than Already running, and sometimes there is no error at all. Run the actions by hand and everything works, so the conclusion becomes: Home Assistant is flaky, reboot it.
A reboot does help for a while, and then the fault returns. The root cause is usually not the trigger. It is the run mode and the concurrency limit: a new start was silently dropped by the mode rules, or a restart erased a wait that was still counting down. Both behaviors are defined in the official documentation, so this is not something to fix by rebooting on a schedule.
Scope first. The difference between a trigger and a condition is covered in Trigger vs Condition, and ten common automation failures are listed in Ten Home Assistant Automation Failures. This article covers one narrow case: the trigger happened, but this run never reached its actions, or stopped partway through. The facts below follow the official automation modes reference and the official troubleshooting guide.
1. Learn the Four Modes and What They Drop
The official docs define four policies for what happens when an automation starts again before the previous run has finished:
| Mode | What happens to the new start | Default? | Limit and warning |
|---|---|---|---|
| single | The current run continues; the new run does not start | Yes | Effectively a limit of 1; warning Already running |
| restart | The current run, including a delay or wait, stops and a new run starts from the top | No | Restarts only if the conditions pass |
| queued | The new run waits behind earlier runs and starts in order | No | max defaults to 10, minimum 2; warning Maximum number of runs exceeded |
| parallel | A new independent run starts immediately alongside existing runs | No | max defaults to 10, minimum 2; same warning |
Two details are easy to miss. The max option applies only to queued and parallel. For queued, the limit counts the run that is executing plus every run waiting in the queue; for parallel, it counts only runs executing at the same time. Single has no max — the docs describe its limit as effectively 1.
The warning text is a useful discriminator. Single logs Already running. Queued and parallel log Maximum number of runs exceeded when the limit is reached. The official guide says explicitly that this is how the modes work, not an error.
To change the mode, use Menu > Change mode in the visual editor, or set mode: and max: in YAML. If a dropped start is genuinely harmless, add max_exceeded: silent to suppress the warning. The default log level is warning.
2. A Four-Layer Tree to Find Where the Run Was Lost
Traces are the first evidence to read, not the color of a log entry. The official guidance says most problems show up in the trace of the automation.
automation triggered but no action
+-- no trace run for this event
| +-- trigger never fired -> trigger layer (see trigger-vs-condition article)
| +-- condition failed -> Stopped because a condition failed
+-- Stopped because only a single execution is allowed
| +-- default single mode dropped the new run
+-- Stopped because maximum number of parallel runs reached
| +-- queued or parallel hit max (default 10)
+-- run exists but stopped mid-way
+-- HA restarted / automation saved / automation disabled
+-- delay, wait, For at least lost -> wait-state layer
Open an automation under Settings > Automations & scenes and enter the trace from its run history, or use Settings > Tools > Traces and search by time. Memorize the two markers from the official guide: Stopped because only a single execution is allowed for a single-mode drop, and Stopped because maximum number of parallel runs reached for a full limit. Select the failed step in the graph; Step details shows the condition result or the action error.
One frequent misread: Run actions skips triggers and conditions. A successful manual run proves the actions work, nothing more. Automations whose templates use trigger.to_state.state have no trigger data during a manual run, so their behavior differs by design. Do not treat a manual run as acceptance testing.
3. Three Fixes, Chosen by Intent
3.1 You want throttling: single plus a trailing delay
Notification automations often need at most one alert every five minutes. The official pattern is single mode with a delay at the end, plus max_exceeded: silent for the starts that get ignored:
automation:
- id: hallway_motion_throttle
alias: Hallway motion alert, five-minute throttle
mode: single
max_exceeded: silent
triggers:
- trigger: state
entity_id: binary_sensor.hallway_motion
to: "on"
actions:
- action: notify.mobile_app_phone
data:
message: Motion in the hallway
- delay:
minutes: 5
Replace notify.mobile_app_phone with the notification service on your system. Silencing is a decision made after checking the semantics: the dropped starts genuinely should not notify. Do not add silent first, because that removes the only clue.
3.2 You want every command: queued with an explicit max
For shutters and locks, where no command may be lost but commands must not overlap, use queued and write a deliberate number:
automation:
- id: shutter_serial_queue
alias: Shutter commands, serial queue
mode: queued
max: 25
triggers:
- trigger: mqtt
topic: home/shutter/cmd
payload: "open"
actions:
- action: cover.open_cover
target:
entity_id: cover.shutter
Raising max is not a cure. If an upstream gateway replays 30 messages, starts 26 through 30 are still dropped. Fix the replay at the publisher and treat max as a buffer. Replace the topic and entity with your own; check them against the site.
3.3 You want the countdown to restart: use restart, knowingly
For a hallway light that switches off five minutes after the last motion, restart is the right choice: a new start stops the old delay and runs from the top. The cost is that the old run is cut short. If that run contains an uninterruptible sequence of device commands, do not choose restart. Parallel suits notifications that need one independent run per event, but concurrent runs share the automation context, so templates that depend on a previous run state can interfere with each other.
4. Move Long Waits Out of the Automation
A restart stops all running automations, and an in-progress delay, wait, or For at least duration is lost. Saving a changed automation stops the run of that automation. Turning an automation off stops its actions as well. Changing the entity ID of an automation lets running actions continue, but an in-progress For at least duration is lost.
For waits longer than a few minutes, use a timer entity:
# configuration.yaml
timer:
night_humidifier:
duration: "02:00:00"
restore: true
automation:
- id: start_night_humidifier_timer
alias: Start the night humidifier timer
triggers:
- trigger: state
entity_id: binary_sensor.night_mode
to: "on"
actions:
- action: timer.start
target:
entity_id: timer.night_humidifier
- id: stop_night_humidifier
alias: Switch off the humidifier when the timer finishes
triggers:
- trigger: timer.finished
target:
entity_id: timer.night_humidifier
actions:
- action: switch.turn_off
target:
entity_id: switch.humidifier
The restore: true line is the point: it restores active and paused timers after Home Assistant starts. The default is false. There is a documented limit as well: if a timer expires while Home Assistant is not running, a timer.finished automation does not run at startup. For a task that must happen at a specific time, use a fixed Time trigger instead of relying on catch-up after boot. Check key names and trigger syntax against the official timer documentation for your version.
5. Three Post-Mortems from Typical Production Scenarios
Scenario one: the hallway light goes off early (based on a typical production scenario). Default single mode plus a five-minute trailing delay. Someone passes, the run begins, and three minutes later another person passes; the new start is dropped. The result is a light that switches off on the first person's schedule. The second run shows Stopped because only a single execution is allowed in the trace. Choose restart if every person should reset the countdown, or keep single if throttling was the intent. The timing and headcount here are representative values; check your site.
Scenario two: a shutter receives a burst of duplicate commands (based on a typical production scenario). After a gateway reconnects, it replays MQTT messages. Queued mode has a default max of 10, so starts 11 onward are dropped and the log shows Maximum number of runs exceeded. Raising max to 25 only enlarges the buffer. The durable fix is replay deduplication at the gateway. Judge this by the trace marker, not by the presence of an error dialog — the docs call this expected behavior.
Scenario three: an overnight humidifier never switches off (based on a typical production scenario). A two-hour delay is halfway through when Home Assistant restarts for an update. The run stops, the timing is lost, and nothing resumes after boot. A timer with restore keeps the remaining time across that restart. If the downtime crosses the expiry point, use a fixed Time trigger and verify the device state after recovery.
6. Durable Fixes and a Misdiagnosis Table
First, make the mode explicit. Do not rely on the single default: set mode: in YAML or choose it in Menu > Change mode, and record why in the handover notes. Second, move any wait longer than a maintenance window to a timer or a fixed Time trigger. Third, keep the run discoverable: a dropped start should leave a trace, silence a warning only after confirming the start was meant to be dropped, and sample a few critical traces after a major Home Assistant upgrade. YAML syntax and indentation problems are covered in the Automation YAML Cheat Sheet.
| Symptom | First suspect | First evidence |
|---|---|---|
| Trigger recorded, action missing | single mode dropped the start | trace marker for a single execution |
| Last commands in a batch never ran | queued or parallel limit reached | trace max marker and warning text |
| Delayed action gone after an upgrade | restart erased the delay or wait | restart time aligned with the stopped run |
| Manual run works, automatic run fails | trigger or condition issue, outside this scope | Run actions skips triggers and conditions |
| Automation stops right after an edit | saving stopped the run | save time aligned with the stopped run |
For testing, use the official automation testing guide: replay a simulated trigger after changing the mode, then read the trace. That is faster than waiting for the next natural trigger.
Related Reading
- Home Assistant Automation Basics: the trigger, condition, action structure.
- Node-RED Automation: applying the same concurrency control in a flow editor.
Trace markers, default limits, warning texts, and timer restore behavior in this article come from Home Assistant's official documentation. UI paths and version-specific keys should be checked against your installation.