Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • 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

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Countdown mit Blockly

NEWS

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    11
    1
    348

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    24
    1
    1.6k

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    9.5k

Countdown mit Blockly

Geplant Angeheftet Gesperrt Verschoben Blockly
4 Beiträge 3 Kommentatoren 962 Aufrufe 1 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • T Offline
    T Offline
    tb_apple04
    schrieb am zuletzt editiert von
    #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 Antworten Letzte Antwort
    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
      schrieb am zuletzt editiert von
      #2

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

      1 Antwort Letzte Antwort
      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
        schrieb am zuletzt editiert von 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 Antwort Letzte Antwort
        0
        • T Offline
          T Offline
          tb_apple04
          schrieb am zuletzt editiert von
          #4

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

          1 Antwort Letzte Antwort
          0
          Antworten
          • In einem neuen Thema antworten
          Anmelden zum Antworten
          • Älteste zuerst
          • Neuste zuerst
          • Meiste Stimmen


          Support us

          ioBroker
          Community Adapters
          Donate

          722

          Online

          32.5k

          Benutzer

          81.8k

          Themen

          1.3m

          Beiträge
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
          ioBroker Community 2014-2025
          logo
          • Anmelden

          • Du hast noch kein Konto? Registrieren

          • Anmelden oder registrieren, um zu suchen
          • Erster Beitrag
            Letzter Beitrag
          0
          • Home
          • Aktuell
          • Tags
          • Ungelesen 0
          • Kategorien
          • Unreplied
          • Beliebt
          • GitHub
          • Docu
          • Hilfe