How to trigger another automation in an automation

I see the service for automation trigger. But when I select it what do I do then? How do I specify which other automation to trigger. I see some similar posts in yaml but I am trying to do this through the UI. Thanks.

1 Like

Just select an automation to trigger.

However you should not need to use this service. Automations should be triggered by… their triggers.

maybe you want to call a script instead?

What underlying task are you trying to accomplish?

Thanks - now that you mention it in this case I can just turn on the device that triggers the other automation. But coming from my previous HA system I used this technique quite a lot so would be interested to figure out how to do it here.

Let’s say I have an automation that has a complex series of triggers and then performs a bunch of actions - such as lock all doors in the house. In another automation I want to take advantage of all of those actions so I just call the automation. I often would set up automations that had no trigger and just use them for this purpose. Also cleaner if I need to add a new lock, add it to one automation and not lots of automations. I have not gotten into scripts (yet), staying in the UI.,

So in the screen shot below where do I actually specify the automation to trigger? I am used to the UI allowing me to select from existing items but I don’t see that here. Thanks.

An automation with no triggers is a script in Home Assistant…

1 Like

And if I wanted to trigger an automation that already has triggers - how would I do that in the UI? Thanks.

If it already has triggers wouldn’t it trigger itself? Anyway - just click the Choose Entity button and find the automation.

1 Like

Scripts are in the UI by the way … third menu item …

Thanks and Thanks. Not always will all triggers be satisfied as I am using the automation as a way to do a series of commands - sort of like a macro. It has it’s own triggers that cause it to run, but then sometimes I just want to take advantage of its actions. A shortcut to having to repeat all of the actions in the automation I am working on.

But it seems like a script is a better way to achieve this so will learn more about this.

1 Like

Put your reusable actions in a script. You can call the script in more than one automation’s actions or run the script manually from button tap actions.

2 Likes