Hi Thom, sorry, I thought I had posted the Profile I use to trigger the task. Here it is. By way of explanation, first of all I set a few variables (%BluetoothTo; %TriggeredBy) that are then added to a log csv file whenever I connect or disconnect Bluetooth or WiFi and finally I Perform Task [ Name:Unlock
Profile: WiFi Connected (8)
Notification: no
State: Wifi Connected [ SSID:* MAC:* IP:* ]
Enter: WiFi Connected (38)
A1: Variable Set [ Name:%BluetoothTo To:Unknown Recurse Variables:Off Do Maths:Off Append:Off ]
A2: Variable Set [ Name:%TriggeredBy To:Wifi Connected Recurse Variables:Off Do Maths:Off Append:Off ]
A3: Perform Task [ Name:Unlock Priority:%priority Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:Off ]
The Tasm Unlock I perform is as follows.
Unlock (11)
A1: Secure Settings [ Configuration:Screen Dim
1 Second Timeout (Seconds):0 ]
A2: Secure Settings [ Configuration:Clear Password Timeout (Seconds):0 ]
A3: System Lock
As soon as I come home the Unlock task runs so I don't need to enter a PIN. Trouble is that e.g. if I walk in the front door while I am typing a message, all of a sudden the screen goes blank as the System Lock is executed. I can live with it because it's better than before I started this post, but it would be better if it didn't run System Lock if I the screen was unlocked when the task started