By Jakub

2013-10-03 20:19:18 8 Comments

I have a Tasker app on my tablet, I want to make a profile which will trigger silent mode when 2 conditions are met: Connection with WiFi Network A is lost and either network B or C is connected. I want this profile to be turned off when network A is connected again. I assume that some sort of variable has to be used for the 'B or C' function.

How can I do this? Also can please walk me through how to assign variables if any.


@Mr. Buster 2013-10-03 23:58:02

You can specify quite a bit of logic in just the contexts. Having a profile with multiple contexts would be the easiest way to accomplish this. Remember that all contexts have to be met sequentially before the task(s) will fire. Also, the Wifi Connected context will accept multiple SSIDs by using pattern matching. In this case a / equals logical OR. Try the following:


  • Context: [Wifi Connected] SSID="NetworkA", Invert=Yes
  • Context: [Wifi Connected] SSID="NetworkB/NetworkC"
  • Task(s): Ringtone silence settings of your choice

This means that the task(s) will fire if Network A is not connected AND Network B OR Network C are connected. As soon either condition is lost the task will exit.

@Izzy 2013-10-04 00:17:20

Just for clarification: You can enter multiple SSIDs in that text field, separated by a /, and Tasker interprets that as "one of those"? Have you tried? The Tasker UserGuide doesn't mention that, but simply says SSID: the SSID of the AP e.g. SKY34312.

@Mr. Buster 2013-10-04 00:24:53

Yes. Check out the Pattern Matching section of the User Guide (linked above). Simple Matching (versus Regex Matching) "is used ... in text parameters of State and Event contexts." The SSID parameter in the Wifi Connected context is such a field. One of the matching rules is "/ means 'or', it divides up multiple possible matches."

@Izzy 2013-10-04 06:25:27

I must have missed that part all those years! Thanks for the enlightment! That makes some other tasks much easier. Need to go over my repo with that :)

Related Questions

Sponsored Content

2 Answered Questions

Cannot Connect to internet via WiFi on Galaxy Tab

1 Answered Questions

Execute task if tasker profile has been active for some time

  • 2016-02-10 22:17:34
  • HugoRune
  • 2430 View
  • 1 Score
  • 1 Answer
  • Tags:   tasker automation

2 Answered Questions

[SOLVED] Tasker - turn off wifi IF there's no internet connection

  • 2018-07-20 12:41:53
  • newbie
  • 1485 View
  • 1 Score
  • 2 Answer
  • Tags:   tasker

1 Answered Questions

[SOLVED] Tasker: If variable - not connected to Wifi

1 Answered Questions

[SOLVED] Automatically enable WiFi when you're near a saved network

  • 2017-05-18 14:50:24
  • KyleMit
  • 1225 View
  • 3 Score
  • 1 Answer
  • Tags:   wi-fi tasker

1 Answered Questions

[SOLVED] Automate Always-On VPN with Tasker

  • 2015-06-25 09:57:40
  • Martin
  • 2021 View
  • 2 Score
  • 1 Answer
  • Tags:   tasker vpn

2 Answered Questions

1 Answered Questions

Tasker duty cycling wifi profile

  • 2014-11-16 17:32:34
  • Sven Akkermans
  • 154 View
  • 1 Score
  • 1 Answer
  • Tags:   tasker

0 Answered Questions

Can I use Tasker to enable and disable WiFi hotspot functionality?

1 Answered Questions

[SOLVED] How to check success status of opened URL in Tasker?

  • 2012-04-06 15:33:50
  • Android Quesito
  • 6626 View
  • 7 Score
  • 1 Answer
  • Tags:   tasker

Sponsored Content