Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. English
    3. Scripting / Logic
    4. Blockly
    5. Pause script for x time

    NEWS

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    Pause script for x time

    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      Tomiol80 last edited by

      Hi

      Any advice how I can pause script for 720 minutes? Now if I press light button my lights turn on again immediately.
      78672736-d768-4545-b0e8-7997ce2ed4dd-image.png

      BR,
      -Tomi-

      Asgothian 1 Reply Last reply Reply Quote 0
      • Asgothian
        Asgothian Developer @Tomiol80 last edited by

        @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.

        T 1 Reply Last reply Reply Quote 0
        • T
          Tomiol80 @Asgothian last edited by

          @asgothian

          Ok. Thank you very much.
          I think I got it right now.
          1023170d-9d69-4660-bbdb-5b58b0977c73-image.png

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Support us

          ioBroker
          Community Adapters
          Donate

          873
          Online

          31.6k
          Users

          79.4k
          Topics

          1.3m
          Posts

          2
          3
          354
          Loading More Posts
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes
          Reply
          • Reply as topic
          Log in to reply
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
          The ioBroker Community 2014-2023
          logo