Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. English
  3. Scripting / Logic
  4. Blockly
  5. Pause script for x time

NEWS

  • Neues YouTube-Video: Visualisierung im Devices-Adapter
    BluefoxB
    Bluefox
    11
    1
    330

  • Neuer ioBroker-Blog online: Monatsrückblick März/April 2026
    BluefoxB
    Bluefox
    8
    1
    1.9k

  • Verwendung von KI bitte immer deutlich kennzeichnen
    HomoranH
    Homoran
    11
    1
    793

Pause script for x time

Scheduled Pinned Locked Moved Blockly
3 Posts 2 Posters 657 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tomiol80
    wrote on last edited by
    #1

    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-

    AsgothianA 1 Reply Last reply
    0
    • T Tomiol80

      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-

      AsgothianA Offline
      AsgothianA Offline
      Asgothian
      Developer
      wrote on last edited by
      #2

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

      ioBroker auf RPi4 - Hardware soweit wie möglich via Zigbee.
      "Shit don't work" ist keine Fehlermeldung, sondern ein Fluch.

      T 1 Reply Last reply
      0
      • AsgothianA Asgothian

        @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 Offline
        T Offline
        Tomiol80
        wrote on last edited by
        #3

        @asgothian

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

        1 Reply Last reply
        0

        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
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        Support us

        ioBroker
        Community Adapters
        Donate

        459

        Online

        32.9k

        Users

        83.0k

        Topics

        1.3m

        Posts
        Community
        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
        ioBroker Community 2014-2025
        logo
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Home
        • Recent
        • Tags
        • Unread 0
        • Categories
        • Unreplied
        • Popular
        • GitHub
        • Docu
        • Hilfe