powerfully lock flow

Share and discuss your flows and ideas with other users.

Moderator: Martin

Post Reply
velokamil
Posts: 2
Joined: 02 Mar 2014 14:09

powerfully lock flow

Post by velokamil » 02 Mar 2014 15:14

hi guys.
I wanna share my powerfully lock flow.

1. create a global_variable, type: number, value: 5

2. create flow A with user present as the trigger --> (act) set flow state: enable B (which "B" is the name of other flow) --> (act) set screen time out : 2 minutes.

3. create flow, name it as "B" (it is flow I mention earlier). (trigger) periodic timer: every 25s (uncheck wake device) --> (conditions) device orientation: face up, face down --true--> (act)execute Flows C.

4. create flow C. leave blank the trigger --> (act) script : a = global_variable --> (conditions) expression a <= 0.0 --false--> (act) script : a = a - 1 --> (conditions) device orientation: face up, face down --true--> (act) notification on screen: {a} --> loop it back to (condition) expression a <= 0.0 --true--> (act) lock device.

5. create flow D. (trigger) display state: off -->

create 2 action for this trigger :
a. set flow state: disable B
b. script: global_variable = 5

6. create flow E. (trigger) notification on status bar selected: turn off --> (act) script: global_variable = 0 --> execute flow: C

done

this flows will turn your device off after 30s only when it lay down with facing up / down, or when you press button on the notification bar.

have fun

Post Reply