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.

Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden