Found: trigger on WiFi "signal strength" change

1,361 views
Skip to first unread message

Matt R

unread,
Aug 8, 2014, 3:44:57 AM8/8/14
to tas...@googlegroups.com
I recall a few users asking about triggering a task when WiFi signal strength changed (specifically when the strength was low). I came across an intent broadcast that works on my phone:

Profile: WiFi Strength Changed
Event: Intent Received [ Action:android.net.wifi.RSSI_CHANGED Cat:None Cat:None Scheme:* Mime Type:* ]
Enter: Anon
A1: Flash [ Text:WiFi strength changed! RSSI = %newrssi Long:Off ]

The RSSI is available in the %newrssi variable. I have no idea if this is OS/ROM/device dependent. Just an FYI.

Matt

Jeremy Harris

unread,
Aug 8, 2014, 6:08:32 PM8/8/14
to tas...@googlegroups.com
Interesting. Thanks for sharing! I don't really need this specific purpose atm, but I wanted to learn the new context Intent Received so I tried testing this out. Walking around my house and definitely having varying signal strengths, I didn't get the profile to fire...S4 with a custom TouchWiz based ROM... so your hunch might be right.

Profile: Testwifi (272)


Event: Intent Received [ Action:android.net.wifi.RSSI_CHANGED Cat:None Cat:None Scheme:* Mime Type:* ]

Enter: Testwifi (273)
A1: Flash [ Text:It worked! Long:Off ]

Question: how did you stumble on this intent to begin with? Intent Interceptor doesn't help here, right?

Matt R

unread,
Aug 8, 2014, 6:35:37 PM8/8/14
to tas...@googlegroups.com

Jeremy Harris

unread,
Aug 8, 2014, 7:16:01 PM8/8/14
to tas...@googlegroups.com
Thanks! Useful tool... and so is Interceptor. I confirmed that my phone users the same intent. I'll figure out why the profile isn't firing tonight after the game...

Jeremy Harris

unread,
Aug 8, 2014, 7:38:18 PM8/8/14
to tas...@googlegroups.com
I'll figure out why the profile isn't firing tonight after the game...

Okay, for my device, I got the profile working by removing the asterisks from the Scheme and Mime fields and just leaving them blank.

Thanks again for sharing that app!

Matt R

unread,
Aug 8, 2014, 7:39:53 PM8/8/14
to tas...@googlegroups.com
Yeah, I left those blank too.  Strange that leaving it blank and entering an asterisk aren't equivalent ...

Matt

John Faire

unread,
May 30, 2015, 2:30:37 AM5/30/15
to tas...@googlegroups.com
how did you know that %newrssi is the correct variable?

Juergen Gruen

unread,
May 30, 2015, 2:56:07 AM5/30/15
to tas...@googlegroups.com

You can check the API documentation: http://developer.android.com/reference/android/net/wifi/WifiManager.html#EXTRA_NEW_RSSI

Here is described how Tasker modifies variable names in intents: http://tasker.dinglisch.net/userguide/en/intents.html

Also the above mentioned App Broadcast Monitor provides information about intent extras.

Juergen.
Screenshot.png

Dale Smith

unread,
May 30, 2015, 10:02:44 AM5/30/15
to tas...@googlegroups.com
just tried it on my samsung galaxy s5 unrooted. Scheme and Mime Type left blank. Works just fine. :)

Jay K

unread,
Jun 1, 2015, 5:34:25 AM6/1/15
to tas...@googlegroups.com
Good tip! Thanks Matt.
Reply all
Reply to author
Forward
0 new messages