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. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Countdown mit Blockly

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    16
    1
    1.6k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    855

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.1k

Countdown mit Blockly

Scheduled Pinned Locked Moved Blockly
4 Posts 3 Posters 972 Views 1 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
    tb_apple04
    wrote on last edited by
    #1

    Hi, Ich habe folgendes Probem:
    ich möchte wenn ein bestimmtes Gerät (welches mit Alexa gesteuert wird) wahr oder falsch (das ist egal) geschaltet wird, ein countdown aktiviert wird, der nach einer bestimmten Zeit einen Phillips Hue Lightstrip deaktiviert. Warum funktioniert dies nicht? Anbei das Skript:

    Screenshot (1).png

    <xml xmlns="http://www.w3.org/1999/xhtml">
      <variables>
        <variable type="" id="}pp{P}Q`1Tcw%[W~{5r3">Countdown</variable>
        <variable type="undefined" id="Intervall">Intervall</variable>
      </variables>
      <block type="variables_set" id="aXGPlLzY1#AwuI_)X~u." x="287" y="87">
        <field name="VAR" id="}pp{P}Q`1Tcw%[W~{5r3" variabletype="">Countdown</field>
        <value name="VALUE">
          <block type="math_number" id="+$XhL~q#,Hb+KCC~!7K)">
            <field name="NUM">0</field>
          </block>
        </value>
        <next>
          <block type="on_ext" id="T!00I:A*YFU{[.nI+j4_">
            <mutation items="1"></mutation>
            <field name="CONDITION">ne</field>
            <field name="ACK_CONDITION"></field>
            <value name="OID0">
              <shadow type="field_oid" id="7/lIy%(@h3Za!ak:hOL)">
                <field name="oid">javascript.0.scriptEnabled.Starte_meinen_Tag.Starte_meinen_Tag_Alexa_Objekt</field>
              </shadow>
            </value>
            <statement name="STATEMENT">
              <block type="timeouts_setinterval" id="L+^tnTuN:LupSo7_05#N">
                <field name="NAME">Intervall</field>
                <field name="INTERVAL">1</field>
                <field name="UNIT">min</field>
                <statement name="STATEMENT">
                  <block type="math_change" id="_6Kv^2-jMteY2Mpq{eue">
                    <field name="VAR" id="}pp{P}Q`1Tcw%[W~{5r3" variabletype="">Countdown</field>
                    <value name="DELTA">
                      <shadow type="math_number" id="_rA//7E5dB!A7+22r.Rl">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="math_number" id="Z(OFM-yiK$NsWa$wB7CH">
                        <field name="NUM">1</field>
                      </block>
                    </value>
                  </block>
                </statement>
              </block>
            </statement>
            <next>
              <block type="controls_if" id="aIRIzN-A-EZ}WXR2:POG">
                <value name="IF0">
                  <block type="logic_compare" id="_5{0aOM4$R:|vVs^OVvV">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="variables_get" id="mpASi3.C9qk|zYmc_tF}">
                        <field name="VAR" id="}pp{P}Q`1Tcw%[W~{5r3" variabletype="">Countdown</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="math_number" id="+^e%FmqQmDF%@vq_^*d}">
                        <field name="NUM">3</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="control" id="kei88O+P-nOim/X8K`1p">
                    <mutation delay_input="false"></mutation>
                    <field name="OID">hue.0.Philips_hue.Schreibtischbeleuchtung.on</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="KL[*Vz-rW)Ua?=.Hh2I$">
                        <field name="BOOL">FALSE</field>
                      </block>
                    </value>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </next>
      </block>
    </xml>
    
    FredFF paul53P 2 Replies Last reply
    0
    • T tb_apple04

      Hi, Ich habe folgendes Probem:
      ich möchte wenn ein bestimmtes Gerät (welches mit Alexa gesteuert wird) wahr oder falsch (das ist egal) geschaltet wird, ein countdown aktiviert wird, der nach einer bestimmten Zeit einen Phillips Hue Lightstrip deaktiviert. Warum funktioniert dies nicht? Anbei das Skript:

      Screenshot (1).png

      <xml xmlns="http://www.w3.org/1999/xhtml">
        <variables>
          <variable type="" id="}pp{P}Q`1Tcw%[W~{5r3">Countdown</variable>
          <variable type="undefined" id="Intervall">Intervall</variable>
        </variables>
        <block type="variables_set" id="aXGPlLzY1#AwuI_)X~u." x="287" y="87">
          <field name="VAR" id="}pp{P}Q`1Tcw%[W~{5r3" variabletype="">Countdown</field>
          <value name="VALUE">
            <block type="math_number" id="+$XhL~q#,Hb+KCC~!7K)">
              <field name="NUM">0</field>
            </block>
          </value>
          <next>
            <block type="on_ext" id="T!00I:A*YFU{[.nI+j4_">
              <mutation items="1"></mutation>
              <field name="CONDITION">ne</field>
              <field name="ACK_CONDITION"></field>
              <value name="OID0">
                <shadow type="field_oid" id="7/lIy%(@h3Za!ak:hOL)">
                  <field name="oid">javascript.0.scriptEnabled.Starte_meinen_Tag.Starte_meinen_Tag_Alexa_Objekt</field>
                </shadow>
              </value>
              <statement name="STATEMENT">
                <block type="timeouts_setinterval" id="L+^tnTuN:LupSo7_05#N">
                  <field name="NAME">Intervall</field>
                  <field name="INTERVAL">1</field>
                  <field name="UNIT">min</field>
                  <statement name="STATEMENT">
                    <block type="math_change" id="_6Kv^2-jMteY2Mpq{eue">
                      <field name="VAR" id="}pp{P}Q`1Tcw%[W~{5r3" variabletype="">Countdown</field>
                      <value name="DELTA">
                        <shadow type="math_number" id="_rA//7E5dB!A7+22r.Rl">
                          <field name="NUM">1</field>
                        </shadow>
                        <block type="math_number" id="Z(OFM-yiK$NsWa$wB7CH">
                          <field name="NUM">1</field>
                        </block>
                      </value>
                    </block>
                  </statement>
                </block>
              </statement>
              <next>
                <block type="controls_if" id="aIRIzN-A-EZ}WXR2:POG">
                  <value name="IF0">
                    <block type="logic_compare" id="_5{0aOM4$R:|vVs^OVvV">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="variables_get" id="mpASi3.C9qk|zYmc_tF}">
                          <field name="VAR" id="}pp{P}Q`1Tcw%[W~{5r3" variabletype="">Countdown</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="math_number" id="+^e%FmqQmDF%@vq_^*d}">
                          <field name="NUM">3</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="control" id="kei88O+P-nOim/X8K`1p">
                      <mutation delay_input="false"></mutation>
                      <field name="OID">hue.0.Philips_hue.Schreibtischbeleuchtung.on</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="KL[*Vz-rW)Ua?=.Hh2I$">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </next>
        </block>
      </xml>
      
      FredFF Online
      FredFF Online
      FredF
      Most Active Forum Testing
      wrote on last edited by
      #2

      @tb_apple04
      Den falls-mache Block in den Trigger Block setzen

      1 Reply Last reply
      0
      • T tb_apple04

        Hi, Ich habe folgendes Probem:
        ich möchte wenn ein bestimmtes Gerät (welches mit Alexa gesteuert wird) wahr oder falsch (das ist egal) geschaltet wird, ein countdown aktiviert wird, der nach einer bestimmten Zeit einen Phillips Hue Lightstrip deaktiviert. Warum funktioniert dies nicht? Anbei das Skript:

        Screenshot (1).png

        <xml xmlns="http://www.w3.org/1999/xhtml">
          <variables>
            <variable type="" id="}pp{P}Q`1Tcw%[W~{5r3">Countdown</variable>
            <variable type="undefined" id="Intervall">Intervall</variable>
          </variables>
          <block type="variables_set" id="aXGPlLzY1#AwuI_)X~u." x="287" y="87">
            <field name="VAR" id="}pp{P}Q`1Tcw%[W~{5r3" variabletype="">Countdown</field>
            <value name="VALUE">
              <block type="math_number" id="+$XhL~q#,Hb+KCC~!7K)">
                <field name="NUM">0</field>
              </block>
            </value>
            <next>
              <block type="on_ext" id="T!00I:A*YFU{[.nI+j4_">
                <mutation items="1"></mutation>
                <field name="CONDITION">ne</field>
                <field name="ACK_CONDITION"></field>
                <value name="OID0">
                  <shadow type="field_oid" id="7/lIy%(@h3Za!ak:hOL)">
                    <field name="oid">javascript.0.scriptEnabled.Starte_meinen_Tag.Starte_meinen_Tag_Alexa_Objekt</field>
                  </shadow>
                </value>
                <statement name="STATEMENT">
                  <block type="timeouts_setinterval" id="L+^tnTuN:LupSo7_05#N">
                    <field name="NAME">Intervall</field>
                    <field name="INTERVAL">1</field>
                    <field name="UNIT">min</field>
                    <statement name="STATEMENT">
                      <block type="math_change" id="_6Kv^2-jMteY2Mpq{eue">
                        <field name="VAR" id="}pp{P}Q`1Tcw%[W~{5r3" variabletype="">Countdown</field>
                        <value name="DELTA">
                          <shadow type="math_number" id="_rA//7E5dB!A7+22r.Rl">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="math_number" id="Z(OFM-yiK$NsWa$wB7CH">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </statement>
                <next>
                  <block type="controls_if" id="aIRIzN-A-EZ}WXR2:POG">
                    <value name="IF0">
                      <block type="logic_compare" id="_5{0aOM4$R:|vVs^OVvV">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="variables_get" id="mpASi3.C9qk|zYmc_tF}">
                            <field name="VAR" id="}pp{P}Q`1Tcw%[W~{5r3" variabletype="">Countdown</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="+^e%FmqQmDF%@vq_^*d}">
                            <field name="NUM">3</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="control" id="kei88O+P-nOim/X8K`1p">
                        <mutation delay_input="false"></mutation>
                        <field name="OID">hue.0.Philips_hue.Schreibtischbeleuchtung.on</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="KL[*Vz-rW)Ua?=.Hh2I$">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </xml>
        
        paul53P Offline
        paul53P Offline
        paul53
        wrote on last edited by paul53
        #3

        @tb_apple04 Ein Countdown zählt rückwärts bis 0 und stoppt dann.

        Blockly_temp.JPG

        Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
        Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tb_apple04
          wrote on last edited by
          #4

          Super Danke für eure Hilfe, das hat geklappt!

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          Support us

          ioBroker
          Community Adapters
          Donate

          349

          Online

          32.6k

          Users

          82.1k

          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