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.
-
Ok. Thank you very much.
I think I got it right now.