Multiple Triggers

Post your questions and help other users.

Moderator: Martin

Post Reply
TheUnknownBuffalo
Posts: 38
Joined: 09 Aug 2017 07:19

Multiple Triggers

Post by TheUnknownBuffalo » 11 Aug 2017 06:45

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?

drboa
Posts: 27
Joined: 01 Dec 2016 07:24

Re: Multiple Triggers

Post by drboa » 11 Aug 2017 07:49

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!

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Multiple Triggers

Post by Desmanto » 11 Aug 2017 08:33

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.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

TheUnknownBuffalo
Posts: 38
Joined: 09 Aug 2017 07:19

Re: Multiple Triggers

Post by TheUnknownBuffalo » 11 Aug 2017 20:01

Hey guys

My head hurts after that, where do I add another trigger as I can't see a button?

[edit# found it - thankyou :)

Daisy666
Posts: 10
Joined: 13 Sep 2016 02:38

Re: Multiple Triggers

Post by Daisy666 » 22 Aug 2017 23:00

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.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Multiple Triggers

Post by Desmanto » 23 Aug 2017 05:09

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.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply