I’d like to be able to execute the same commands in multiple automations. How can you do this and keep the “DO” commands in one place?
Write a script. A script is an automation without a trigger at its basic level.
Then the automation can trigger and call the script, so can other automations.
3 Likes
Or you could trigger a manual event and an automation that is triggered by that event.
Sir_Goodenough’s suggestion is the best way to go, alternatively you can also use the automation.trigger action to accomplish this. Automation action docs.
This is what I was looking for, but scripts is actually a better way. Plus I was able to pass in a value to change the command based on that value.
2 Likes