match trigger

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
ttydylcy
Posts: 3
Joined: 25 Sep 2014 04:39

match trigger

Post by ttydylcy » 26 Sep 2014 13:24

can you add match for trigger?
example: trigger A AND trigger B is true, run action xx.

thx.

User avatar
Bushmills
Posts: 286
Joined: 23 Sep 2014 21:56

Re: match trigger

Post by Bushmills » 26 Sep 2014 14:07

I see a complication with this: a time domain component within which a trigger is considered as "has occured". As a trigger is not (necessarily) a lasting condition, and two triggers are extremely unlikely to occur at exactly the same time, either some time specification within which both triggers occurred is needed (you probably don't want your flow to execute because of one trigger issued now, and another trigger ANDed with happened to take place two days ago), or maybe a state machine, which resets if no state change has taken place for some time.

User avatar
kintrupf
Posts: 257
Joined: 10 Sep 2013 08:59

Re: match trigger

Post by kintrupf » 26 Sep 2014 14:27

ttydylcy wrote:can you add match for trigger?
example: trigger A AND trigger B is true, run action xx.
Use both triggers in a flow and connect the rest of the flow to them with a matching condition for trigger A and a matching condition for trigger B. This should effectively work likes two triggers combined with "AND".

mcyber
Posts: 37
Joined: 08 Nov 2013 14:21

Re: match trigger

Post by mcyber » 26 Sep 2014 20:26

kintrupf wrote:
ttydylcy wrote:can you add match for trigger?
example: trigger A AND trigger B is true, run action xx.
Use both triggers in a flow and connect the rest of the flow to them with a matching condition for trigger A and a matching condition for trigger B. This should effectively work likes two triggers combined with "AND".
This is it. Probably, if you want to compare two (or more) states you have to create two (or more) global variables, one for each state, and do the comparison against the variables.

Locked