Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Countdown mit Blockly

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Countdown mit Blockly

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

      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>
      
      FredF paul53 2 Replies Last reply Reply Quote 0
      • FredF
        FredF Most Active Forum Testing @tb_apple04 last edited by

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

        1 Reply Last reply Reply Quote 0
        • paul53
          paul53 @tb_apple04 last edited by paul53

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

          Blockly_temp.JPG

          1 Reply Last reply Reply Quote 0
          • T
            tb_apple04 last edited by

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

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

            Support us

            ioBroker
            Community Adapters
            Donate

            685
            Online

            31.6k
            Users

            79.6k
            Topics

            1.3m
            Posts

            3
            4
            819
            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