nex5, cataclysm, tasker 4.2u33, secure settings, rooted
this has been working for me for a while now:
profile: state(wificonnected) > home [choose ssid (add multiple by selecting one after the other or manually input them with a forward slash inbetween: home/work/library; you can also do it by macaddress if you want)
task: "name" > (1) secure settings: configuration-pattern unlock "disabled" (2) secure settings configuration-keyguard disabled/BG
then to turn pattern back on:
profile: invert wificonnect [to tell it what to do if NOT connected to the following networks]
task: (1) secure settings configuration-keyguard enabled (2) secure settings configuration-pattern lock enabled
caveats:
- the ordering of the tasks seems to matter on my phone. with other phones, perhaps you only need to enable/disable keyguard, but i initially set up a bunch of slider shortcuts. maybe if i disabled the slider and only set to pattern, it would work. in any case, play with the ordering of the two if you can't get it to work with the settings i described.
- IMPORTANT: when the screen is off on my phone and i my phone is no longer connected to the wireless networks i specified, to get the phone to re-engage the pattern lock, i have to WAKE THE PHONE FIRST and then turn it back off. tasker + nexus 5, i am unable to do it automatically because while i can use tasker to turn the screen on, i haven't figured out a way to turn it back off automatically.