Why Your Home Assistant Automation Works When You Click 'Run Actions' but Not Automatically

Ever set up an automation in Home Assistant, clicked "Run actions," watched everything work, and then wondered why nothing happens when it's actually supposed to run?

Why Your Home Assistant Automation Works When You Click 'Run Actions' but Not Automatically

Ever set up an automation in Home Assistant, clicked "Run actions," watched everything work, and then wondered why nothing happens when it's actually supposed to run?

It's frustrating, especially when you're just getting started. The light turns on when you test it, so why doesn't it turn on when you open the door?

The trick is understanding what that button is testing. "Run actions" tells Home Assistant to run the action sequence. It skips the triggers and the automation's top-level conditions, which normally determine when those actions should run. Conditions inside the action sequence still apply. Home Assistant explains that distinction in its automation testing documentation.

You haven't necessarily built a broken automation. You might just be testing a different part of it than you thought.

What the button skips

Imagine you want a hallway lamp to turn on when a door opens, but only in the evening when someone is home.

The door opening is your trigger. It's the thing that starts the automation. In this example, that means the sensor changing from closed to open, not simply the door being open. Leaving it open doesn't keep triggering the automation. The official trigger documentation explains how those changes start a run.

The evening and presence checks are your conditions. Home Assistant checks them after the trigger matches. If it's the middle of the day, or nobody is home, the automation stops before turning on the lamp. That's the intended behavior, even though it can look like nothing happened.

Turning on the lamp is the action. You might also have an action that sends a notification.

Click "Run actions" and Home Assistant jumps straight to that last part. The lamp can turn on even if the door never opened, it's daytime, or everyone is out. The lamp coming on is useful information. It just doesn't tell you whether the door trigger or those conditions are working as intended.

Two catches worth knowing about

When we say the manual test skips conditions, we mean the conditions at the top level of the automation. These are separate from checks you've added inside the action sequence.

If your actions include an If-then block, a Choose block, or a condition step, those checks still happen. For example, the lamp might turn on, but an If-then block could prevent a notification during quiet hours. One action succeeding doesn't mean every later action will run.

The other catch is trigger data. "Run actions" doesn't have the original event's information or a trigger ID. If your automation chooses a path based on which trigger fired, or uses a template that needs information from that event, the manual test can't reproduce that context. This matters most when you have several triggers or more advanced action logic.

For those automations, watching what happens after the real event is much more useful than clicking the same test button again.

Where to find the automation's traces

A trace is Home Assistant's record of what happened during a run. It lets you see where the automation went, which checks passed, and where it stopped.

To open it:

  1. Go to Settings > Automations & scenes.
  2. Open the automation you're investigating.
  3. Select Traces in the top bar. On a narrow screen, open Menu, then select Traces.
  4. Use Select trace, or the Older trace and Newer trace controls, to find the run from around the time the problem happened.

These are the paths described in Home Assistant's current guide to viewing automation traces.

Pay attention to that last step. If you've just clicked "Run actions," the newest trace might be your manual test, not the event you're trying to investigate.

What the trace is telling you

Follow the graph from the trigger forward. Select a step and look at Step details to see what happened there. The trace timeline can also help you see which steps ran and when.

If the run says "Stopped because a condition failed," look at that condition and the values it checked. Your presence condition might pass now but have failed when the door opened. Changing the actions won't fix that.

If it says "Stopped on error," inspect the step where it stopped. If the expected action ran but the lamp stayed off, check whether the action targeted the right light and whether that light was available. An action appearing in the trace isn't the same as the device doing what you expected.

No matching trace? First check that you're looking at the right automation and time. Home Assistant normally retains the last five traces, so newer runs can replace the one you wanted. YAML-written automations also need an id for traces to be available. The trace documentation covers those limits and other reasons a trace might be missing. An empty list alone isn't proof that your trigger never fired.

A few checks before you start rewriting things

Make sure the automation is enabled, then check exactly what you've asked it to react to. Is it the right sensor? Does it require a particular change? If it uses a temperature threshold, did the temperature actually cross it, or was it already above it?

State labels can also catch you out. A door sensor might display "Open" while its underlying state is on. If you're writing a state trigger yourself, check the actual state rather than assuming the friendly label is the value you need.

If the automation contains a delay or wait, it might still be running when the next trigger arrives. In the default Single mode, Home Assistant won't start another run while the previous one is active. Its automation modes guide explains the alternatives if overlapping runs are relevant to your problem.

Start with traces rather than experimenting with simulated states or fired events. Those tests can activate other automations too, and their actions operate real devices. If you download a trace to ask for help, check it for private information before sharing it. Home Assistant's trace preparation guidance explains what to remove.

The next time your automation works when you click "Run actions" but not on its own, don't start changing everything at once. Check what actually triggers it, look at the conditions, and open the trace from the real event. You'll have a much better idea of what needs changing, and what you can leave alone.