Page 1 of 1

Multiple Actions per "block"

Posted: 14 Jul 2015 14:58
by sitruk
Is there a way to have one "block" with multiple actions? I have a flow that depending on certain conditions, will execute 3 separate actions.

Check location, When "here", if time between, change ring volume, change notification vol, change music vol.

It would be nice to have all the volume options in one action block to clean things up.

Re: Multiple Actions per "block"

Posted: 15 Jul 2015 10:36
by Wibbly
To 'clean things up' I either

- organise multiple actions horizontally all 'attached' directly to the last condition (which causes them also to execute essentially at the same time rather than serially)
- put the actions in another flow and simply call the other flow

Re: Multiple Actions per "block"

Posted: 15 Jul 2015 12:52
by Nerey
... or use action Restore Audio Volumes

Re: Multiple Actions per "block"

Posted: 15 Jul 2015 13:26
by sitruk
Ahhhh Restore Audio... I missed that option. I will have to check it out.

I am coming from Llama which used to automatically do periodic check of status (I'm assuming). I think my main issue now is finding how to get my flows to run when they need to so they can apply the settings. Attached is a flow I am having trouble with. I'm used to just setting a location or a wifi connection and having it adjust settings based on time after that. I may have set this up strangely.

Re: Multiple Actions per "block"

Posted: 15 Jul 2015 15:50
by Wibbly
I came from Llama too.

I have flows in Automagic triggered by being in a location. The location is defined by being in a partiualr GSM cell or when certain SSIDs are connected...

The trigger below fires when specfic cells or SSIDs connect OR disconnect. The flow then determines to set (in this case) global_home variable to true or false that other flows can react to. The 20s delay on the right hand side is to attempt to ensure there hasn't been a temporary disconnection when at home...

Re: Multiple Actions per "block"

Posted: 15 Jul 2015 16:09
by sitruk
Ok, that is helpful. I think I am missing certain variables to initiate and keep the Action enabled. I will experiment more.

Re: Multiple Actions per "block"

Posted: 15 Jul 2015 16:44
by sitruk
It seems as though if I want to be more efficient and battery conscious I will need to create scripts. I could be wrong. I'm not really great with programming so this becomes a little overwhelming at times. I am technically inclined... this is just a little bit of a weakness for me.

I actually added the Wifi Scan function at the start of a couple of my flows.. that seems to have helped but Im not sure if that is going to destroy my battery. It seems to run the flows frequently. Not that its a bad thing since that should keep my desires sound profiles accurate.

Re: Multiple Actions per "block"

Posted: 15 Jul 2015 16:57
by Wibbly
I'm just using the triggers above

...nothing more complicated. Seems to work, but sometimes the trigger is delayed a bit on the Nexus 4 when it's asleep.

Re: Multiple Actions per "block"

Posted: 15 Jul 2015 18:33
by sitruk
What is in your initial trigger?

Wifi Connected: SSID list
Phone Cell GSM: Tower List
Wifi.... ?

I tried:
Wifi Connected: SSID list
Phone Cell GSM: Tower list

Also:
Wifi State: Enabling, Enabled
Wifi Connected: SSID list
Phone Cell GSM: Tower list

But it may run once and never again. So if something causes the audio settings to reset my Flow doesn't seem to rerun even though all the conditions are true. From the behavior I am seeing it looks like the flow is not being triggered to run the flow (seen by last run time).

I see you said your trigger runs when Cells and SSIDs connect AND disconnect. This might help me but at the same time I have different flows for disconnections... So i don't know if that will conflict.

I'm struggling to get this to work smoothly.