Page 1 of 1
					
				Get name of flow
				Posted: 13 Oct 2014 18:28
				by tschaedl
				Hi,
is there a possibility to get the name of the flow, which is currently running? I want to use action "SetFlowState" to disable all flows of a group excluding the running one.
Thx,
Thomas
			 
			
					
				Re: Get name of flow
				Posted: 13 Oct 2014 20:42
				by kintrupf
				tschaedl wrote:
is there a possibility to get the name of the flow, which is currently running? I want to use action "SetFlowState" to disable all flows of a group excluding the running one.
Each flow supplies the variable 
flow_name, which, of course, contains the name of the flow 

 
			
					
				Re: Get name of flow
				Posted: 14 Oct 2014 09:22
				by tschaedl
				Hi kintrupf,
thx for this information. Where did you found this. I didn't found "flow_name" either in the forum nor in the help pages.
Regards,
Thomas
			 
			
					
				Re: Get name of flow
				Posted: 14 Oct 2014 09:54
				by kintrupf
				Where did I find it? That's a really good question 

I'm a very regular user of Automagic, so I just learned over time...
To find out which variables are supplied by a flow do this:
- create a new flow
- add the condition Debug to the empty trigger
- execute the flow manually
The 
Debug condition displays all variables, and everything that does not start with "global_" is defined by the flow itself.
Currently these are the variables 
flow_name, 
trigger and 
triggertime.
 
			
					
				Re: Get name of flow
				Posted: 14 Oct 2014 11:13
				by Bushmills
				... or easier:
create a new flow
add any action (for example the action you want to use flow_name in)
tap menu (3 bars or dots)
select "choose variable")
from the list of variables, pick "{flow_name}"