Page 1 of 1
Multiple Triggers
Posted: 11 Aug 2017 06:45
by TheUnknownBuffalo
I have a few workflows where the trigger condition is to start at 2am, and it works brilliantly, but I also want to add another trigger to start the same workflow at 8am. I've been going through the forums and don't understand how you do it? Is it easier to copy & paste the entire workflow in to a new file and change the time that way?
Re: Multiple Triggers
Posted: 11 Aug 2017 07:49
by drboa
Hey Buffalo!
You could use the periodic timer function, put the interval to 1 hour and limit the active time to fall between 2am and 8am. Immediately underneath you put a condition expression that checks if the time conincides with either 2am or 8am. If yes, the flow continues... ...that is a simple workaround that will not cost you a lot of battery drain...
cheers!
Re: Multiple Triggers
Posted: 11 Aug 2017 08:33
by Desmanto
You can add as many triggers as you need in a single flow, but there is always only one trigger element visible (since it is the starting point of the flow). At the trigger elements, tap the 5 line icon on the top, choose new. Then you can define new time trigger. You can also add another, such as calendar or other different trigger as well.
But remember, all triggers executed as OR logic. That means, if anyone of them triggered, the flow will be executed even the other trigger event are not fulfilled.
Re: Multiple Triggers
Posted: 11 Aug 2017 20:01
by TheUnknownBuffalo
Hey guys
My head hurts after that, where do I add another trigger as I can't see a button?
[edit# found it - thankyou
Re: Multiple Triggers
Posted: 22 Aug 2017 23:00
by Daisy666
Hi, may I please ask what to do if I do need a multi-trigger with AND logic?
Thanks so much in advance.
Desmanto wrote:all triggers executed as OR logic. That means, if anyone of them triggered, the flow will be executed even the other trigger event are not fulfilled.
Re: Multiple Triggers
Posted: 23 Aug 2017 05:09
by Desmanto
You should rephrase your intention first as in this thread.
http://automagic4android.com/forum/view ... f=5&t=6880
Most of the time, it is not AND trigger, but trigger + condition. Because trigger checks events and condition checks state. The one happens instantly should be the trigger, while the one can be in some state for a longer time should be condition.
But if you still need to AND multi trigger, there is a way to to do it using enable/disable flow or GloVar. You should show me first what exactly you wanna do, so I can check for the best solution. If it is different than the one here, It is better you just create a new thread. Later we will continue the discussion there.