several actions in one flow

Post your questions and help other users.

Moderator: Martin

Post Reply
bpetri
Posts: 5
Joined: 31 Dec 2013 15:45

several actions in one flow

Post by bpetri » 17 Jan 2014 11:50

Hello,

I am pretty new to Automagic and I tried to change settings based on my location for the following cases:
1 Leave Home
2 Arrive Work
3 Leave Work
4 Arrive Home

1) switch WLAN OFF; enable mobile data, turn GPS on, Sound Profile Loud (in CAR)
2) switch on WLAN, disable mobile data + GPS, Sound Profile silent
3) disable WLAN, enable mobile data, turn GPS on, Sound Profile Loud (in CAR)
4) enable WLAN, disable mobile data & GPS, Sound Profile normal

To be honest I could not get it to work.
Does someone have an idea how to manage the above mentioned steps?

Thanks a lot in advance

Greetings
Bernhard

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: several actions in one flow

Post by Martin » 17 Jan 2014 12:51

Hi,

You can do this by building four flows, one for each case.

A flow for 1 Leave Home could look like this (german version below):
-trigger Location: exiting x/y ensure that only Exiting is selected to execute the flow when you leave the location
-action Set WiFi State: Off
-action Set Mobile Datanetwork State: On
-action Set GPS State: On (requires root)
-action Set Ringer Mode: Normal
-action Set Audio Stream Volume: Ring to level 7

German:
-Trigger Standort: verlassen x/y
-Action WLAN ein-/ausschalten: Aus
-Action Mobiles Datennetzwerk ein-/ausschalten: Ein
-Action GPS ein-/ausschalten: Ein (benötigt root)
-Action Soundprofil einstellen: Normal
-Action Lautstärke einstellen: Klingelton auf Level 7

The other three flows can be built using the same kind of actions but with different locations in the trigger and with Entering instead of Exiting (resp. Ankunft anstelle von Verlassen).

You could also combine the cases with the same location into one flow each (1+4 and 2+3) by selecting Entering and Exiting in the trigger and then executing different actions in the flow by using a condition Location Entering first to make the distinction between entering and existing.

Regards,
Martin

bpetri
Posts: 5
Joined: 31 Dec 2013 15:45

Re: several actions in one flow

Post by bpetri » 20 Jan 2014 07:32

Hallo Martin,

vielen Dank für die rasche Antwort, ich werde das die Tage mal probieren.
Hatte es schon mal mit 4 Flows versucht aber die Actions haben nicht so ganz funktioniert.
Vermutlich weil es immer die Standardeinstellung überschrieben hat.

LG
Bernhard

Post Reply