Same tasks for multiple locations? (Optimizing profiles)

773 views
Skip to first unread message

KeeWee

unread,
Sep 27, 2010, 11:40:36 PM9/27/10
to Tasker
Hi.
I use Tasker basically for turning WiFi and Sync on and off depending
on my location. First the only location configured was my home, so I
did this:

Priofile: HOME.
Context: Location (pointing my home in the map, network based only)
Enter Task: WiFi On, Variable %WIFION set to 1.
Exit Task: WiFi Off, Variable %WIFION set to 0.

Profile: SYNC.
Context: "Wifi connected" (MAC address only) AND %WIFION is 1.
Enter Task: Sync On.
Exit Task: Sync Off.

* I didn't set everything in the same profile because I often go out
near home, and I don't want to have Sync on while my wireless is not
connected. I don't worry that much about having the wireless on while
not being at home.

* I set this %WIFION variable because it seems that sometimes it still
recognizes the MAC address, even if the wireless is off (maybe a bug).
I sometimes found the Sync on while having the WiFi off.

Now I have a new location where I want to do the exact same tasks, but
the location context is different and the MAC address too.
Is there a way of having a profile with 2 Location contexts? Or 2
"flags" marked inside the same location context?
Also, is there a way of adding 2 MAC addresses to the Wifi Connected
context? Something like sepparating with a dash or similar?

Now I also want to set Tasker to enable Remote Notifier while being at
home, but not while being at work (work is the second location). For
now, I'll just duplicate everything, but I'd like to know if there is
an easier way.

Thanks,
Rodrigo.

Shantanu

unread,
Sep 28, 2010, 1:50:34 AM9/28/10
to Tasker
You don't need to duplicate the things. For your home profile, you
should name the task (i.e. create a name for the stuff you are doing).
Then when you create your second profile where you want to do the same
things, just choose the same named task from the dropdown menu.

For your second query, if you want to use the same task, then you can
look for the variable %PACTIVE. This will tell you which profiles are
currently active. See if it contains your work profile name or home
profile name. If it contains home profile name, then activate remote
notifier.

Regards
Shantanu

UncleMike

unread,
Sep 28, 2010, 7:12:18 AM9/28/10
to Tasker
Shantanu is right - named tasks are the way to go if you want to do
the same thing in multiple profiles.

As for matching multiple mac addresses, check out the pattern matching
section of the help.

Lastly, if you decide to change from a Location context to Cell Near,
you can define both locations in a single context, but it's less
accurate (in general) than location.

KeeWee

unread,
Sep 30, 2010, 11:49:49 PM9/30/10
to Tasker
Thanks Shantanu and UncleMike.

I already had the same tasks for different profiles. My question was
if there was a way of having all that in a single profile (both
locations in the same profile), but it seems that the only way is with
the Cell Near context.
I used Locale before, and I tested a cell-based location context, but
I had a weird problem, it seemed that some cells have the same cell
info (number, name, or whatever) repeated in different locations, so
sometimes I was away from home and the cell was detected, so I think
I'll stick with the Location context and different profiles.

I'll try adding both MAC addresses with a slash as mentioned in the
help.

I currently have this:

Profile: HOME.
Context: Location (pointing my home in the map, network based only)
Enter Task: WiFi On, Variable %WIFION set to 1.
Exit Task: WiFi Off, Variable %WIFION set to 0.

Profile: WORK. (Duplicated Home, then changed the location in the
map).

Profile: SYNCHOME.
Context: "Wifi connected" (Home MAC Address) AND %WIFION is 1.
Enter Task: Sync On, Remote Notifier On.
Exit Task: Sync Off, Remote Notifier On.

Profile: SYNCWORK. (Duplicated SYNCHOME, changed MAC address and added
new tasks without Remote Notifier).
Context: "Wifi connected" (Home MAC Address) AND %WIFION is 1.
Enter Task: Sync On.
Exit Task: Sync Off.

I don't understand how to use the %PACTIVE variable. I want Remote
Notifier to start when it's connected to my home wireless, but not
when it's connected to work's wireless. Would you recommend me to
leave it as it is?
I'd like to have one only profile for enabling/disabling Sync (I'll
test this tomorrow), and maybe another profile for enabling/disabling
Remote Notifier when HOME and HOMESYNC are active (how?).

Thanks,
Rodrigo.

Peleke

unread,
Sep 29, 2013, 6:01:46 AM9/29/13
to tas...@googlegroups.com
Nearly three years later I want to achieve the same: one profile with different location contexts which are "connected" with an if... or logic.
So the profile should be true if any of the locations are met.
Is it still not possible?
Thanks

Nuno Mendes

unread,
Sep 29, 2013, 8:59:31 AM9/29/13
to tas...@googlegroups.com
With an if? Try Flash/Pop Up %WIFII right after you click the Wifi to be on, youll see a list of devices in range..

Frederik Niedernolte

unread,
Sep 29, 2013, 11:17:31 AM9/29/13
to tas...@googlegroups.com
Cannot see how that should help...
_______________________________________________________________________________________
29.09.2013 @ 14:59:31 -> Nuno Mendes <nunopi...@gmail.com>:
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/fn9wAWlbEjI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/groups/opt_out.

Bob Hansen

unread,
Sep 29, 2013, 12:16:08 PM9/29/13
to tas...@googlegroups.com
It is still not possible and highly unlikely it will ever be possible. But simply using separate profiles and launching the common task works, so it could be worse ;>) 
Reply all
Reply to author
Forward
0 new messages