Originally Posted by daneaston
Ok, thanks for this info.
I bought Tasker ages ago but simply couldn't work it out. I'll have another go.
Very annoyed at the website though as it appears that they've just made this up.
Yup, I think they did.
Tasker is great but it's not the easiest app to use. I have just written a profile to do exactly this and it did take a bit of digging about.
You need to use the Wifi Near context. For tasks you will need an entry task and an exit task. Keyguard Off and Keyguard On would seem to be the obvious ones but they don't work on the S4 (and quite a few other phones) so install the Secure Settings plugin and then your entry task should be Secure Settings - Clear Password/Wait For Unlock and your exit task will be Secure Settings - Set Pin.
It's not obvious but once you are familiar with Tasker, not that hard either.