Flow state changed trigger

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

Moderator: Martin

Locked
jimox
Posts: 6
Joined: 29 Apr 2013 23:20

Flow state changed trigger

Post by jimox » 18 Aug 2013 21:02

I would like to be able to execute a script when a trigger changes from enabled to disabled (or the other way).

jimox
Posts: 6
Joined: 29 Apr 2013 23:20

Re: Flow state changed trigger

Post by jimox » 18 Aug 2013 21:04

It would be really cool if there was a way to get the name of the flow when the state changed. Because then you could have one flow state changed trigger monitor multiple flows and have conditional logic based on which one changed.

auto_wiz
Posts: 26
Joined: 30 Nov 2012 23:49

Re: Flow state changed trigger

Post by auto_wiz » 12 Sep 2013 22:35

In each of the flows you want to monitor add a script to assign the name of the active flow to a global variable like global_flowname.

You can than have another flow with the trigger "Global Variable" which will initiate each time global_flowname changed. In this flow you can read the variable to find which flow triggered it.

You may need to add a time stamp of some kind when you set the value of the variable because the second flow won't trigger if the value assigned is the same as it's previous value ie when a flow executes twice in a row.

Locked