1
Solved

Wifi not turning on in morning

I'm having an issue where my profile which turns on Wifi at 7 AM will activate but does not actually turn on the wifi. It used to work but no longer does so I'm not sure if it's something to do with OneUI 3.0 or an update to tasker but neither the profile or task has changed. Have no issues with turning off wifi or turning on/off bluetooth or gps. 

1 reply

Does the Wifi action run normally if you run it manually inside Tasker?

M

So I thought it did but trying to run it just now gave me this:

09.27.02/M lastWifiDisableAgoMS: 1610461622550 09.27.02/E check AP state 09.27.02/Mirror android.net.ConnectivityManager.setMobileDataEnabled: unavailable 09.27.02/Mirror android.net.ConnectivityManager.setRadio: unavailable 09.27.02/Mirror android.net.wifi.WifiManager.setWifiApEnabled: unavailable 09.27.02/E AP state: 1 09.27.02/M lastWifiDisableAgoMS: 1610461622551 09.27.02/E current state: 1 09.27.02/E curval: 1 09.27.02/E WiFi: cur: false new: true 09.27.02/E WiFi: setWifiEnabled() 09.27.02/E add wait type Wifi Status Group time 2147483647 09.27.02/E add wait type Wifi Status Group done 09.27.02/M setKeepWifiOn: E/doWifiStatus1 09.27.02/E add wait task 09.27.02/E Error: null

Backing out of Tasker then trying to run again then worked.

So now it's working?

M

No, the action itself will work if I run it manually but not when the profile activates. The profile will activate but for some reason the wifi doesn't turn on. I thought maybe it had to do with the phone being in deep sleep since it activates while I'm still asleep, but the bluetooth and gps turn on correctly when their respective profiles activate.

Could you please enable the run-log for 1 day and see what error you get when yo run it? thanks in advance!

Also, what Android version are you using?

M

Yes, I actually have some logs I took already, one with an error and one without but neither turn on the wifi successfully. I'm on Android 11 but don't remember whether the problem popped up before or after the update. 

https://imgur.com/a/sLmdCCm

https://imgur.com/a/0p01cUf

Hi there.

Google has changed the way Android works for apps that target API 29, so Tasker can't toggle wifi anymore. Check here for more details: https://issuetracker.google.com/issues/128554616

If you want to better understand what "targeting" an API means, check here: https://tasker.joaoapps.com/userguide/en/target_api.html

.Can you please install this app on your phone and then try the "Wifi" action again from Tasker?

Make sure to exempt the "Tasker Settings" app (not only Tasker itself) from battery optimization (https://tasker.joaoapps.com/userguide/en/faqs/faq-problem.html#00) so that Tasker can call it in the background.

Even if you already have the "Tasker Settings" app installed, you need to install this new version for the Wifi toggle to work.

I can't upload this version to Google Play because it targets API 21 (which is why toggling Wifi still works with it) and Google only allows apps that target API 29 and over.

Thanks in advance.

Download here: https://drive.google.com/file/d/1B_cVPKDvIWQPmr3ZppymGvAKEinLsukc/view?usp=sharing

M

Ok, I knew about the API change and I had Tasker Settings but mine was 1.1.0 and the one you posted is 1.2.0 so I will see how that works. Thank you

M

Well it's worked correctly the past 2 days so I guess that version of Tasker Settings fixed it. Thank you again for your help.

Topic is closed for comments