NEWS
Pause script for x time
-
Hi
Any advice how I can pause script for 720 minutes? Now if I press light button my lights turn on again immediately.

BR,
-Tomi-@tomiol80
you want to:- define a variable "block_script"
- set the variable to "false" before the trigger
- your "if actual time is between" you want to extend with a logic block so that the condition reads "if actual time is between 15:00 and 23:00 and block_script = false
- inside the trigger where you have the pause, you want to set it the variable to true
- then start a timeout for 720 minutes. Inside the timeout, set the variable to false.
A.
-
@tomiol80
you want to:- define a variable "block_script"
- set the variable to "false" before the trigger
- your "if actual time is between" you want to extend with a logic block so that the condition reads "if actual time is between 15:00 and 23:00 and block_script = false
- inside the trigger where you have the pause, you want to set it the variable to true
- then start a timeout for 720 minutes. Inside the timeout, set the variable to false.
A.
Ok. Thank you very much.
I think I got it right now.

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login