Page 1 of 1

wifi or bt

Posted: 04 Jun 2014 18:42
by mindenes
As a new user of automagic i cant find the possibility to use the logical call "or".
Namely, I'd like to make a flow:
In case that a bt device (h123) is connected OR the device is connected to wifi (ssid: ap123), than unlock device (do not ask for passcode). Otherwise lock the device with passcode.

Can someone help me with this, please?
Thank you :)

Re: wifi or bt

Posted: 04 Jun 2014 20:25
by BoBo
Check action:scripts for details :)

Re: wifi or bt

Posted: 04 Jun 2014 20:43
by Martin
Hi,

Depending on situation, you could add two triggers to a flow:
Flow 1:
-trigger WiFi Connected
-trigger Bluetooth Device Connected
-action Set Lock PIN/Password: Clear

Flow 2:
-trigger WiFi Disconnected
-trigger Bluetooth Device Disconnected
-action Set Lock PIN/Password: Set PIN

You can also use conditions in the flow to check whether wifi and/or bluetooth is currently connected.

Working with the lock screen of Android can be unreliable and frustrating. Please check the help page of the Set Lock PIN/Password for some tips. You can also test if action Set Kayguard State works reliable on your device/ROM.

Regards,
Martin

Re: wifi or bt

Posted: 05 Jun 2014 21:41
by mindenes
Thanks Martin, done it with your tips :)