I have tasker and secure settings on a rooted phone. One of the profiles I have set up turns off my pattern lock when connected to the home WiFi. When the pattern lock is turned off by the profile, I can't swipe to unlock the screen initially but once I get it unlocked then it works like it should.