Multiple Actions per "block"

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
sitruk
Posts: 50
Joined: 14 Jul 2015 14:44

Multiple Actions per "block"

Post by sitruk » 14 Jul 2015 14:58

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.

Wibbly
Posts: 418
Joined: 17 Mar 2014 09:02

Re: Multiple Actions per "block"

Post by Wibbly » 15 Jul 2015 10:36

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

User avatar
Nerey
Posts: 102
Joined: 07 Mar 2014 16:59

Re: Multiple Actions per "block"

Post by Nerey » 15 Jul 2015 12:52

... or use action Restore Audio Volumes
Sorry for bad english, my native is russian.

User avatar
sitruk
Posts: 50
Joined: 14 Jul 2015 14:44

Re: Multiple Actions per "block"

Post by sitruk » 15 Jul 2015 13:26

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.
Attachments
Home Audio Volumes.TXT
(9.48 KiB) Downloaded 762 times

Wibbly
Posts: 418
Joined: 17 Mar 2014 09:02

Re: Multiple Actions per "block"

Post by Wibbly » 15 Jul 2015 15:50

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...
Attachments
Screenshot_2015-07-15-16-07-54.png
Screenshot_2015-07-15-16-07-54.png (120.01 KiB) Viewed 17755 times

User avatar
sitruk
Posts: 50
Joined: 14 Jul 2015 14:44

Re: Multiple Actions per "block"

Post by sitruk » 15 Jul 2015 16:09

Ok, that is helpful. I think I am missing certain variables to initiate and keep the Action enabled. I will experiment more.

User avatar
sitruk
Posts: 50
Joined: 14 Jul 2015 14:44

Re: Multiple Actions per "block"

Post by sitruk » 15 Jul 2015 16:44

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.

Wibbly
Posts: 418
Joined: 17 Mar 2014 09:02

Re: Multiple Actions per "block"

Post by Wibbly » 15 Jul 2015 16:57

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.

User avatar
sitruk
Posts: 50
Joined: 14 Jul 2015 14:44

Re: Multiple Actions per "block"

Post by sitruk » 15 Jul 2015 18:33

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.

Post Reply