Start and stop for a while

Post your questions and help other users.

Moderator: Martin

Post Reply
Bipenett
Posts: 1
Joined: 12 Feb 2014 12:08

Start and stop for a while

Post by Bipenett » 12 Feb 2014 12:30

Hello wonderful people! I need help to perform the following flow:

1 he if screen is turned off
2) wait 5 minutes
3) lock screen
4) (I would like to be sure that Automagic would not try to execute the whole flow again when after step 3 is executed.

Could anybody help me, please?

User avatar
choo
Posts: 37
Joined: 13 Apr 2014 16:27

Re: Start and stop for a while

Post by choo » 24 Apr 2014 18:23

Still no takers? I'm interested too. At least for some pointers on how to execute this.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Start and stop for a while

Post by Martin » 25 Apr 2014 06:13

Hi,

You could disable the flow when you don't want to execute the flow for a period of time:
Flow 1
-trigger Display State: Off
-action Set Flow State: Disable Flow 1 (or by using a variable Set Flow State: Disable {flow_name})
-action Sleep: 3m
-more actions ...

you could enable the flow again at a later time (or using another flow):
-action Sleep: 5m
-action Set Flow State: Enable Flow X

You could also stop a flow when the display is turned on again:
Flow 1
-trigger Display State: Off
-action Sleep: 3m
-more actions ...

Flow 2
-trigger Display State: On
-action Stop Flows: Flow 1

Regards,
Martin

User avatar
choo
Posts: 37
Joined: 13 Apr 2014 16:27

Re: Start and stop for a while

Post by choo » 25 Apr 2014 08:42

Thanks Martin. This helped me, partially, setting up my flows with the display on-off for which I've just made a separate posting.

Post Reply