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. (gelöst) eine Aktion nach einer Zeit ausführen

NEWS

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

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

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.5k

(gelöst) eine Aktion nach einer Zeit ausführen

Geplant Angeheftet Gesperrt Verschoben Blockly
blockly
11 Beiträge 4 Kommentatoren 459 Aufrufe 2 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.
  • BBTownB Offline
    BBTownB Offline
    BBTown
    schrieb am zuletzt editiert von
    #2

    Du könntest Die Zeitverzögerung separieren
    38e7d001-ee32-4a09-963d-25d302b7eec4-grafik.png

    ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

    1 Antwort Letzte Antwort
    1
    • ostseereiterO ostseereiter

      Hallo Freunde,
      ich habe noch etwas ich möchte das eine Aktion erst nach eine bestimmte Zeit (6 sek) ausgeführt wird falls der Wert Stop dann noch stimmt,ansonnsten soll diese Aktion nicht ausgeführt werden.
      Wie kann man das realisieren?
      Screenshot (174).png

      paul53P Offline
      paul53P Offline
      paul53
      schrieb am zuletzt editiert von
      #3

      @ostseereiter sagte:

      Wie kann man das realisieren?

      Z.B. so

      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

      ostseereiterO BBTownB 2 Antworten Letzte Antwort
      1
      • paul53P paul53

        @ostseereiter sagte:

        Wie kann man das realisieren?

        Z.B. so

        Blockly_temp.JPG

        ostseereiterO Offline
        ostseereiterO Offline
        ostseereiter
        schrieb am zuletzt editiert von
        #4

        @paul53
        werde ich dann probieren das wäre ja toll.

        Gruß OSR

        Plattform
        Linux x64 CPUs2 AMD G-T56N Processor 1646 MHz 8GB RAM

        1 Antwort Letzte Antwort
        0
        • paul53P paul53

          @ostseereiter sagte:

          Wie kann man das realisieren?

          Z.B. so

          Blockly_temp.JPG

          BBTownB Offline
          BBTownB Offline
          BBTown
          schrieb am zuletzt editiert von
          #5

          @paul53 jepp, das ist eleganter ;-)

          ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

          1 Antwort Letzte Antwort
          0
          • ostseereiterO Offline
            ostseereiterO Offline
            ostseereiter
            schrieb am zuletzt editiert von
            #6

            @paul53
            das Script wird nach 6 Sekunden trotzdem ausgeführt
            Screenshot (175).png
            Ich lege mal das ganze Skript mit bei.

            <xml xmlns="http://www.w3.org/1999/xhtml">
              <variables>
                <variable type="undefined" id="timeout">timeout</variable>
              </variables>
              <block type="on_ext" id=")^U#Op#[o;Y=[chkuig9" x="-337" y="-162">
                <mutation items="1"></mutation>
                <field name="CONDITION">ne</field>
                <field name="ACK_CONDITION"></field>
                <value name="OID0">
                  <shadow type="field_oid" id="=MV8NCQfEw?)uv+I7;JK">
                    <field name="oid">kodi.0.state</field>
                  </shadow>
                </value>
                <statement name="STATEMENT">
                  <block type="controls_if" id=",9_Nr-P-{%Fd+Tc0-=Nu">
                    <mutation elseif="2" else="1"></mutation>
                    <value name="IF0">
                      <block type="logic_compare" id=";_i]cfZdrmL/qXWB6PuO">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="05hB:}da}@CQX_^vBlC@">
                            <field name="ATTR">val</field>
                            <field name="OID">kodi.0.state</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="text" id=".XpJFW9d}.;,|@XF~5Q:">
                            <field name="TEXT">play</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="control" id="-bW3=KVu3vdlqU2aX)=n">
                        <mutation delay_input="false"></mutation>
                        <field name="OID">sonoff.0.Sonoff-Schrankwand.POWER</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="HlyW/,NN*]S[gwa+`oUp">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                        <next>
                          <block type="control" id="{GEg)0Ml(3~/NdGsJnE=">
                            <mutation delay_input="true"></mutation>
                            <field name="OID">lightify.0.96B4DA0000261884.on</field>
                            <field name="WITH_DELAY">TRUE</field>
                            <field name="DELAY_MS">1000</field>
                            <field name="UNIT">ms</field>
                            <field name="CLEAR_RUNNING">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="j7~ICoLk);iS7chyWp#T">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="control" id="n,Ew/dp@wd2ARXK6.SxY">
                                <mutation delay_input="true"></mutation>
                                <field name="OID">onkyo.0.Zone1.Volume</field>
                                <field name="WITH_DELAY">TRUE</field>
                                <field name="DELAY_MS">1</field>
                                <field name="UNIT">sec</field>
                                <field name="CLEAR_RUNNING">FALSE</field>
                                <value name="VALUE">
                                  <block type="math_number" id="d0qb-5nwZ!ej0g9%@3PP">
                                    <field name="NUM">41</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="control" id="Zzo:sY+@;EFzIR30pdn%">
                                    <mutation delay_input="true"></mutation>
                                    <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field>
                                    <field name="WITH_DELAY">TRUE</field>
                                    <field name="DELAY_MS">2</field>
                                    <field name="UNIT">sec</field>
                                    <field name="CLEAR_RUNNING">FALSE</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="ZtO6^~.alKx*i6|N~gvZ">
                                        <field name="NUM">1</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="control" id="l.q.9bJPg,`VA-Ju@UHb">
                                        <mutation delay_input="true"></mutation>
                                        <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field>
                                        <field name="WITH_DELAY">TRUE</field>
                                        <field name="DELAY_MS">2</field>
                                        <field name="UNIT">sec</field>
                                        <field name="CLEAR_RUNNING">FALSE</field>
                                        <value name="VALUE">
                                          <block type="math_number" id="BQmVC,FCu#dw7}BheCX+">
                                            <field name="NUM">1</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="control" id="lZkUHOXsA@iQsPkE.sF3">
                                            <mutation delay_input="true"></mutation>
                                            <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field>
                                            <field name="WITH_DELAY">TRUE</field>
                                            <field name="DELAY_MS">8</field>
                                            <field name="UNIT">sec</field>
                                            <field name="CLEAR_RUNNING">FALSE</field>
                                            <value name="VALUE">
                                              <block type="logic_boolean" id="Q+cV)e%X@d7EOE8cx9Wq">
                                                <field name="BOOL">FALSE</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="control" id="hD]:P50.i?ywAAEUpw0y">
                                                <mutation delay_input="true"></mutation>
                                                <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field>
                                                <field name="WITH_DELAY">TRUE</field>
                                                <field name="DELAY_MS">8</field>
                                                <field name="UNIT">sec</field>
                                                <field name="CLEAR_RUNNING">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="logic_boolean" id="XIwr6t@JkH8BtO`!OlR8">
                                                    <field name="BOOL">FALSE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <value name="IF1">
                      <block type="logic_compare" id="L4#aR-t265FcF~{V-=z}">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="k)S4{9LhWhh7i(zgpcAX">
                            <field name="ATTR">val</field>
                            <field name="OID">kodi.0.state</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="text" id="u%liIIv78{-{B/t[kHwD">
                            <field name="TEXT">pause</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO1">
                      <block type="control" id="?qyo2f}a8H?/+o?c|g4=">
                        <mutation delay_input="false"></mutation>
                        <field name="OID">onkyo.0.Zone1.Volume</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="math_number" id="-Qnd[tHOYR76^0wOY~7p">
                            <field name="NUM">20</field>
                          </block>
                        </value>
                        <next>
                          <block type="control" id="#E;yx;iHjG_E+FH;g0%z">
                            <mutation delay_input="false"></mutation>
                            <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="#9ss|SZefcOBRFZC2_X8">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                            <next>
                              <block type="control" id="*4N:KDr6.bW,o*45e_A|">
                                <mutation delay_input="false"></mutation>
                                <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="odZd[MAx4CI:v203!Zq4">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="control" id="YS?!}nX#p1PXCl5kt1^#">
                                    <mutation delay_input="false"></mutation>
                                    <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="6[tQ[e%dRUv[j2FpO@d4">
                                        <field name="NUM">50</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="control" id="Ycp]|)fUwJF7cHdiC5jJ">
                                        <mutation delay_input="false"></mutation>
                                        <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="math_number" id="`EzeaI`O`0lf-4v0{os9">
                                            <field name="NUM">50</field>
                                          </block>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <value name="IF2">
                      <block type="logic_compare" id="pLmOMKPiWB|{VpCz8-1U">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="FVUcHy,!FMnH)#,#p[A(">
                            <field name="ATTR">val</field>
                            <field name="OID">kodi.0.state</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="text" id="ZTI-J3/|^I-5#QhSKG1t">
                            <field name="TEXT">stop</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO2">
                      <block type="timeouts_settimeout" id="OvnwUoS@a.ev/9WARJX7">
                        <field name="NAME">timeout</field>
                        <field name="DELAY">6</field>
                        <field name="UNIT">sec</field>
                        <statement name="STATEMENT">
                          <block type="control" id="WhsWLu2omtF*Y8xsF*`@">
                            <mutation delay_input="false"></mutation>
                            <field name="OID">onkyo-vis-dev.0.Zone1.Volume</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="math_number" id="Zu/+#DHiEA1[EYXnmE.^">
                                <field name="NUM">20</field>
                              </block>
                            </value>
                            <next>
                              <block type="control" id="[Qp)M!a|p:G}55K|zwxC">
                                <mutation delay_input="false"></mutation>
                                <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="/|q9u4=xm.I`R/#%!L2I">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="control" id="E)MBR);MOzQEs#v!%;~N">
                                    <mutation delay_input="false"></mutation>
                                    <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="logic_boolean" id="6}9T0m*Ct07J^)T..u)[">
                                        <field name="BOOL">TRUE</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="control" id="jE0Fs#QKRcQbc~Hqz_mZ">
                                        <mutation delay_input="false"></mutation>
                                        <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="math_number" id="^E]pfz(LcF!CYR5Z!Fin">
                                            <field name="NUM">100</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="control" id="!/S?4L-B(a}.X1GE5UH3">
                                            <mutation delay_input="false"></mutation>
                                            <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="math_number" id="MemkoCGutF=-zRx/5=Iu">
                                                <field name="NUM">100</field>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </statement>
                      </block>
                    </statement>
                    <statement name="ELSE">
                      <block type="timeouts_cleartimeout" id="LRW1no=YM6C0`{MJY_8o">
                        <field name="NAME">timeout</field>
                      </block>
                    </statement>
                  </block>
                </statement>
              </block>
            </xml>
            

            Gruß OSR

            Plattform
            Linux x64 CPUs2 AMD G-T56N Processor 1646 MHz 8GB RAM

            BBTownB 3 Antworten Letzte Antwort
            0
            • ostseereiterO ostseereiter

              @paul53
              das Script wird nach 6 Sekunden trotzdem ausgeführt
              Screenshot (175).png
              Ich lege mal das ganze Skript mit bei.

              <xml xmlns="http://www.w3.org/1999/xhtml">
                <variables>
                  <variable type="undefined" id="timeout">timeout</variable>
                </variables>
                <block type="on_ext" id=")^U#Op#[o;Y=[chkuig9" x="-337" y="-162">
                  <mutation items="1"></mutation>
                  <field name="CONDITION">ne</field>
                  <field name="ACK_CONDITION"></field>
                  <value name="OID0">
                    <shadow type="field_oid" id="=MV8NCQfEw?)uv+I7;JK">
                      <field name="oid">kodi.0.state</field>
                    </shadow>
                  </value>
                  <statement name="STATEMENT">
                    <block type="controls_if" id=",9_Nr-P-{%Fd+Tc0-=Nu">
                      <mutation elseif="2" else="1"></mutation>
                      <value name="IF0">
                        <block type="logic_compare" id=";_i]cfZdrmL/qXWB6PuO">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="05hB:}da}@CQX_^vBlC@">
                              <field name="ATTR">val</field>
                              <field name="OID">kodi.0.state</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="text" id=".XpJFW9d}.;,|@XF~5Q:">
                              <field name="TEXT">play</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="control" id="-bW3=KVu3vdlqU2aX)=n">
                          <mutation delay_input="false"></mutation>
                          <field name="OID">sonoff.0.Sonoff-Schrankwand.POWER</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="HlyW/,NN*]S[gwa+`oUp">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="{GEg)0Ml(3~/NdGsJnE=">
                              <mutation delay_input="true"></mutation>
                              <field name="OID">lightify.0.96B4DA0000261884.on</field>
                              <field name="WITH_DELAY">TRUE</field>
                              <field name="DELAY_MS">1000</field>
                              <field name="UNIT">ms</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="j7~ICoLk);iS7chyWp#T">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                              <next>
                                <block type="control" id="n,Ew/dp@wd2ARXK6.SxY">
                                  <mutation delay_input="true"></mutation>
                                  <field name="OID">onkyo.0.Zone1.Volume</field>
                                  <field name="WITH_DELAY">TRUE</field>
                                  <field name="DELAY_MS">1</field>
                                  <field name="UNIT">sec</field>
                                  <field name="CLEAR_RUNNING">FALSE</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="d0qb-5nwZ!ej0g9%@3PP">
                                      <field name="NUM">41</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="control" id="Zzo:sY+@;EFzIR30pdn%">
                                      <mutation delay_input="true"></mutation>
                                      <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field>
                                      <field name="WITH_DELAY">TRUE</field>
                                      <field name="DELAY_MS">2</field>
                                      <field name="UNIT">sec</field>
                                      <field name="CLEAR_RUNNING">FALSE</field>
                                      <value name="VALUE">
                                        <block type="math_number" id="ZtO6^~.alKx*i6|N~gvZ">
                                          <field name="NUM">1</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id="l.q.9bJPg,`VA-Ju@UHb">
                                          <mutation delay_input="true"></mutation>
                                          <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field>
                                          <field name="WITH_DELAY">TRUE</field>
                                          <field name="DELAY_MS">2</field>
                                          <field name="UNIT">sec</field>
                                          <field name="CLEAR_RUNNING">FALSE</field>
                                          <value name="VALUE">
                                            <block type="math_number" id="BQmVC,FCu#dw7}BheCX+">
                                              <field name="NUM">1</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="control" id="lZkUHOXsA@iQsPkE.sF3">
                                              <mutation delay_input="true"></mutation>
                                              <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field>
                                              <field name="WITH_DELAY">TRUE</field>
                                              <field name="DELAY_MS">8</field>
                                              <field name="UNIT">sec</field>
                                              <field name="CLEAR_RUNNING">FALSE</field>
                                              <value name="VALUE">
                                                <block type="logic_boolean" id="Q+cV)e%X@d7EOE8cx9Wq">
                                                  <field name="BOOL">FALSE</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="control" id="hD]:P50.i?ywAAEUpw0y">
                                                  <mutation delay_input="true"></mutation>
                                                  <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field>
                                                  <field name="WITH_DELAY">TRUE</field>
                                                  <field name="DELAY_MS">8</field>
                                                  <field name="UNIT">sec</field>
                                                  <field name="CLEAR_RUNNING">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="logic_boolean" id="XIwr6t@JkH8BtO`!OlR8">
                                                      <field name="BOOL">FALSE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                      <value name="IF1">
                        <block type="logic_compare" id="L4#aR-t265FcF~{V-=z}">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="k)S4{9LhWhh7i(zgpcAX">
                              <field name="ATTR">val</field>
                              <field name="OID">kodi.0.state</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="text" id="u%liIIv78{-{B/t[kHwD">
                              <field name="TEXT">pause</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO1">
                        <block type="control" id="?qyo2f}a8H?/+o?c|g4=">
                          <mutation delay_input="false"></mutation>
                          <field name="OID">onkyo.0.Zone1.Volume</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="math_number" id="-Qnd[tHOYR76^0wOY~7p">
                              <field name="NUM">20</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="#E;yx;iHjG_E+FH;g0%z">
                              <mutation delay_input="false"></mutation>
                              <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="#9ss|SZefcOBRFZC2_X8">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                              <next>
                                <block type="control" id="*4N:KDr6.bW,o*45e_A|">
                                  <mutation delay_input="false"></mutation>
                                  <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="odZd[MAx4CI:v203!Zq4">
                                      <field name="BOOL">TRUE</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="control" id="YS?!}nX#p1PXCl5kt1^#">
                                      <mutation delay_input="false"></mutation>
                                      <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="math_number" id="6[tQ[e%dRUv[j2FpO@d4">
                                          <field name="NUM">50</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id="Ycp]|)fUwJF7cHdiC5jJ">
                                          <mutation delay_input="false"></mutation>
                                          <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="math_number" id="`EzeaI`O`0lf-4v0{os9">
                                              <field name="NUM">50</field>
                                            </block>
                                          </value>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                      <value name="IF2">
                        <block type="logic_compare" id="pLmOMKPiWB|{VpCz8-1U">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="FVUcHy,!FMnH)#,#p[A(">
                              <field name="ATTR">val</field>
                              <field name="OID">kodi.0.state</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="text" id="ZTI-J3/|^I-5#QhSKG1t">
                              <field name="TEXT">stop</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO2">
                        <block type="timeouts_settimeout" id="OvnwUoS@a.ev/9WARJX7">
                          <field name="NAME">timeout</field>
                          <field name="DELAY">6</field>
                          <field name="UNIT">sec</field>
                          <statement name="STATEMENT">
                            <block type="control" id="WhsWLu2omtF*Y8xsF*`@">
                              <mutation delay_input="false"></mutation>
                              <field name="OID">onkyo-vis-dev.0.Zone1.Volume</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="math_number" id="Zu/+#DHiEA1[EYXnmE.^">
                                  <field name="NUM">20</field>
                                </block>
                              </value>
                              <next>
                                <block type="control" id="[Qp)M!a|p:G}55K|zwxC">
                                  <mutation delay_input="false"></mutation>
                                  <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="/|q9u4=xm.I`R/#%!L2I">
                                      <field name="BOOL">TRUE</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="control" id="E)MBR);MOzQEs#v!%;~N">
                                      <mutation delay_input="false"></mutation>
                                      <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="6}9T0m*Ct07J^)T..u)[">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id="jE0Fs#QKRcQbc~Hqz_mZ">
                                          <mutation delay_input="false"></mutation>
                                          <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="math_number" id="^E]pfz(LcF!CYR5Z!Fin">
                                              <field name="NUM">100</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="control" id="!/S?4L-B(a}.X1GE5UH3">
                                              <mutation delay_input="false"></mutation>
                                              <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="math_number" id="MemkoCGutF=-zRx/5=Iu">
                                                  <field name="NUM">100</field>
                                                </block>
                                              </value>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </statement>
                      <statement name="ELSE">
                        <block type="timeouts_cleartimeout" id="LRW1no=YM6C0`{MJY_8o">
                          <field name="NAME">timeout</field>
                        </block>
                      </statement>
                    </block>
                  </statement>
                </block>
              </xml>
              
              BBTownB Offline
              BBTownB Offline
              BBTown
              schrieb am zuletzt editiert von BBTown
              #7

              @ostseereiter Du hast die Elemente ja auch nach wie vor in dein sonstiges Script eingefügt.
              Der Bereich sollte mit einem eigenen Trigger separat stehen

              ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

              J 1 Antwort Letzte Antwort
              0
              • BBTownB BBTown

                @ostseereiter Du hast die Elemente ja auch nach wie vor in dein sonstiges Script eingefügt.
                Der Bereich sollte mit einem eigenen Trigger separat stehen

                J Offline
                J Offline
                Jan1
                schrieb am zuletzt editiert von Jan1
                #8

                @BBTown
                Weil man die elegantere Lösung eben auch verstehen muss.
                Ich hätte Deine Lösung genommen, weil einfach 08/15 und gut

                1 Antwort Letzte Antwort
                0
                • ostseereiterO ostseereiter

                  @paul53
                  das Script wird nach 6 Sekunden trotzdem ausgeführt
                  Screenshot (175).png
                  Ich lege mal das ganze Skript mit bei.

                  <xml xmlns="http://www.w3.org/1999/xhtml">
                    <variables>
                      <variable type="undefined" id="timeout">timeout</variable>
                    </variables>
                    <block type="on_ext" id=")^U#Op#[o;Y=[chkuig9" x="-337" y="-162">
                      <mutation items="1"></mutation>
                      <field name="CONDITION">ne</field>
                      <field name="ACK_CONDITION"></field>
                      <value name="OID0">
                        <shadow type="field_oid" id="=MV8NCQfEw?)uv+I7;JK">
                          <field name="oid">kodi.0.state</field>
                        </shadow>
                      </value>
                      <statement name="STATEMENT">
                        <block type="controls_if" id=",9_Nr-P-{%Fd+Tc0-=Nu">
                          <mutation elseif="2" else="1"></mutation>
                          <value name="IF0">
                            <block type="logic_compare" id=";_i]cfZdrmL/qXWB6PuO">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="05hB:}da}@CQX_^vBlC@">
                                  <field name="ATTR">val</field>
                                  <field name="OID">kodi.0.state</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="text" id=".XpJFW9d}.;,|@XF~5Q:">
                                  <field name="TEXT">play</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="control" id="-bW3=KVu3vdlqU2aX)=n">
                              <mutation delay_input="false"></mutation>
                              <field name="OID">sonoff.0.Sonoff-Schrankwand.POWER</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="HlyW/,NN*]S[gwa+`oUp">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                              <next>
                                <block type="control" id="{GEg)0Ml(3~/NdGsJnE=">
                                  <mutation delay_input="true"></mutation>
                                  <field name="OID">lightify.0.96B4DA0000261884.on</field>
                                  <field name="WITH_DELAY">TRUE</field>
                                  <field name="DELAY_MS">1000</field>
                                  <field name="UNIT">ms</field>
                                  <field name="CLEAR_RUNNING">FALSE</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="j7~ICoLk);iS7chyWp#T">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="control" id="n,Ew/dp@wd2ARXK6.SxY">
                                      <mutation delay_input="true"></mutation>
                                      <field name="OID">onkyo.0.Zone1.Volume</field>
                                      <field name="WITH_DELAY">TRUE</field>
                                      <field name="DELAY_MS">1</field>
                                      <field name="UNIT">sec</field>
                                      <field name="CLEAR_RUNNING">FALSE</field>
                                      <value name="VALUE">
                                        <block type="math_number" id="d0qb-5nwZ!ej0g9%@3PP">
                                          <field name="NUM">41</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id="Zzo:sY+@;EFzIR30pdn%">
                                          <mutation delay_input="true"></mutation>
                                          <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field>
                                          <field name="WITH_DELAY">TRUE</field>
                                          <field name="DELAY_MS">2</field>
                                          <field name="UNIT">sec</field>
                                          <field name="CLEAR_RUNNING">FALSE</field>
                                          <value name="VALUE">
                                            <block type="math_number" id="ZtO6^~.alKx*i6|N~gvZ">
                                              <field name="NUM">1</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="control" id="l.q.9bJPg,`VA-Ju@UHb">
                                              <mutation delay_input="true"></mutation>
                                              <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field>
                                              <field name="WITH_DELAY">TRUE</field>
                                              <field name="DELAY_MS">2</field>
                                              <field name="UNIT">sec</field>
                                              <field name="CLEAR_RUNNING">FALSE</field>
                                              <value name="VALUE">
                                                <block type="math_number" id="BQmVC,FCu#dw7}BheCX+">
                                                  <field name="NUM">1</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="control" id="lZkUHOXsA@iQsPkE.sF3">
                                                  <mutation delay_input="true"></mutation>
                                                  <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field>
                                                  <field name="WITH_DELAY">TRUE</field>
                                                  <field name="DELAY_MS">8</field>
                                                  <field name="UNIT">sec</field>
                                                  <field name="CLEAR_RUNNING">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="logic_boolean" id="Q+cV)e%X@d7EOE8cx9Wq">
                                                      <field name="BOOL">FALSE</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="control" id="hD]:P50.i?ywAAEUpw0y">
                                                      <mutation delay_input="true"></mutation>
                                                      <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field>
                                                      <field name="WITH_DELAY">TRUE</field>
                                                      <field name="DELAY_MS">8</field>
                                                      <field name="UNIT">sec</field>
                                                      <field name="CLEAR_RUNNING">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="logic_boolean" id="XIwr6t@JkH8BtO`!OlR8">
                                                          <field name="BOOL">FALSE</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                          <value name="IF1">
                            <block type="logic_compare" id="L4#aR-t265FcF~{V-=z}">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="k)S4{9LhWhh7i(zgpcAX">
                                  <field name="ATTR">val</field>
                                  <field name="OID">kodi.0.state</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="text" id="u%liIIv78{-{B/t[kHwD">
                                  <field name="TEXT">pause</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO1">
                            <block type="control" id="?qyo2f}a8H?/+o?c|g4=">
                              <mutation delay_input="false"></mutation>
                              <field name="OID">onkyo.0.Zone1.Volume</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="math_number" id="-Qnd[tHOYR76^0wOY~7p">
                                  <field name="NUM">20</field>
                                </block>
                              </value>
                              <next>
                                <block type="control" id="#E;yx;iHjG_E+FH;g0%z">
                                  <mutation delay_input="false"></mutation>
                                  <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="#9ss|SZefcOBRFZC2_X8">
                                      <field name="BOOL">TRUE</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="control" id="*4N:KDr6.bW,o*45e_A|">
                                      <mutation delay_input="false"></mutation>
                                      <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="odZd[MAx4CI:v203!Zq4">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id="YS?!}nX#p1PXCl5kt1^#">
                                          <mutation delay_input="false"></mutation>
                                          <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="math_number" id="6[tQ[e%dRUv[j2FpO@d4">
                                              <field name="NUM">50</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="control" id="Ycp]|)fUwJF7cHdiC5jJ">
                                              <mutation delay_input="false"></mutation>
                                              <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="math_number" id="`EzeaI`O`0lf-4v0{os9">
                                                  <field name="NUM">50</field>
                                                </block>
                                              </value>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                          <value name="IF2">
                            <block type="logic_compare" id="pLmOMKPiWB|{VpCz8-1U">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="FVUcHy,!FMnH)#,#p[A(">
                                  <field name="ATTR">val</field>
                                  <field name="OID">kodi.0.state</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="text" id="ZTI-J3/|^I-5#QhSKG1t">
                                  <field name="TEXT">stop</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO2">
                            <block type="timeouts_settimeout" id="OvnwUoS@a.ev/9WARJX7">
                              <field name="NAME">timeout</field>
                              <field name="DELAY">6</field>
                              <field name="UNIT">sec</field>
                              <statement name="STATEMENT">
                                <block type="control" id="WhsWLu2omtF*Y8xsF*`@">
                                  <mutation delay_input="false"></mutation>
                                  <field name="OID">onkyo-vis-dev.0.Zone1.Volume</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="Zu/+#DHiEA1[EYXnmE.^">
                                      <field name="NUM">20</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="control" id="[Qp)M!a|p:G}55K|zwxC">
                                      <mutation delay_input="false"></mutation>
                                      <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="/|q9u4=xm.I`R/#%!L2I">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id="E)MBR);MOzQEs#v!%;~N">
                                          <mutation delay_input="false"></mutation>
                                          <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id="6}9T0m*Ct07J^)T..u)[">
                                              <field name="BOOL">TRUE</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="control" id="jE0Fs#QKRcQbc~Hqz_mZ">
                                              <mutation delay_input="false"></mutation>
                                              <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="math_number" id="^E]pfz(LcF!CYR5Z!Fin">
                                                  <field name="NUM">100</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="control" id="!/S?4L-B(a}.X1GE5UH3">
                                                  <mutation delay_input="false"></mutation>
                                                  <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="math_number" id="MemkoCGutF=-zRx/5=Iu">
                                                      <field name="NUM">100</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                            </block>
                          </statement>
                          <statement name="ELSE">
                            <block type="timeouts_cleartimeout" id="LRW1no=YM6C0`{MJY_8o">
                              <field name="NAME">timeout</field>
                            </block>
                          </statement>
                        </block>
                      </statement>
                    </block>
                  </xml>
                  
                  BBTownB Offline
                  BBTownB Offline
                  BBTown
                  schrieb am zuletzt editiert von BBTown
                  #9

                  @ostseereiter das könnte klappen

                  <xml xmlns="http://www.w3.org/1999/xhtml">
                   <variables>
                     <variable type="undefined" id="timeout">timeout</variable>
                   </variables>
                   <block type="on_ext" id=")^U#Op#[o;Y=[chkuig9" x="-337" y="-287">
                     <mutation items="1"></mutation>
                     <field name="CONDITION">ne</field>
                     <field name="ACK_CONDITION"></field>
                     <value name="OID0">
                       <shadow type="field_oid" id="=MV8NCQfEw?)uv+I7;JK">
                         <field name="oid">kodi.0.state</field>
                       </shadow>
                     </value>
                     <statement name="STATEMENT">
                       <block type="controls_if" id=",9_Nr-P-{%Fd+Tc0-=Nu">
                         <mutation elseif="1"></mutation>
                         <value name="IF0">
                           <block type="logic_compare" id=";_i]cfZdrmL/qXWB6PuO">
                             <field name="OP">EQ</field>
                             <value name="A">
                               <block type="get_value" id="05hB:}da}@CQX_^vBlC@">
                                 <field name="ATTR">val</field>
                                 <field name="OID">kodi.0.state</field>
                               </block>
                             </value>
                             <value name="B">
                               <block type="text" id=".XpJFW9d}.;,|@XF~5Q:">
                                 <field name="TEXT">play</field>
                               </block>
                             </value>
                           </block>
                         </value>
                         <statement name="DO0">
                           <block type="control" id="-bW3=KVu3vdlqU2aX)=n">
                             <mutation delay_input="false"></mutation>
                             <field name="OID">sonoff.0.Sonoff-Schrankwand.POWER</field>
                             <field name="WITH_DELAY">FALSE</field>
                             <value name="VALUE">
                               <block type="logic_boolean" id="HlyW/,NN*]S[gwa+`oUp">
                                 <field name="BOOL">FALSE</field>
                               </block>
                             </value>
                             <next>
                               <block type="control" id="{GEg)0Ml(3~/NdGsJnE=">
                                 <mutation delay_input="true"></mutation>
                                 <field name="OID">lightify.0.96B4DA0000261884.on</field>
                                 <field name="WITH_DELAY">TRUE</field>
                                 <field name="DELAY_MS">1000</field>
                                 <field name="UNIT">ms</field>
                                 <field name="CLEAR_RUNNING">FALSE</field>
                                 <value name="VALUE">
                                   <block type="logic_boolean" id="j7~ICoLk);iS7chyWp#T">
                                     <field name="BOOL">FALSE</field>
                                   </block>
                                 </value>
                                 <next>
                                   <block type="control" id="n,Ew/dp@wd2ARXK6.SxY">
                                     <mutation delay_input="true"></mutation>
                                     <field name="OID">onkyo.0.Zone1.Volume</field>
                                     <field name="WITH_DELAY">TRUE</field>
                                     <field name="DELAY_MS">1</field>
                                     <field name="UNIT">sec</field>
                                     <field name="CLEAR_RUNNING">FALSE</field>
                                     <value name="VALUE">
                                       <block type="math_number" id="d0qb-5nwZ!ej0g9%@3PP">
                                         <field name="NUM">41</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="control" id="Zzo:sY+@;EFzIR30pdn%">
                                         <mutation delay_input="true"></mutation>
                                         <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field>
                                         <field name="WITH_DELAY">TRUE</field>
                                         <field name="DELAY_MS">2</field>
                                         <field name="UNIT">sec</field>
                                         <field name="CLEAR_RUNNING">FALSE</field>
                                         <value name="VALUE">
                                           <block type="math_number" id="ZtO6^~.alKx*i6|N~gvZ">
                                             <field name="NUM">1</field>
                                           </block>
                                         </value>
                                         <next>
                                           <block type="control" id="l.q.9bJPg,`VA-Ju@UHb">
                                             <mutation delay_input="true"></mutation>
                                             <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field>
                                             <field name="WITH_DELAY">TRUE</field>
                                             <field name="DELAY_MS">2</field>
                                             <field name="UNIT">sec</field>
                                             <field name="CLEAR_RUNNING">FALSE</field>
                                             <value name="VALUE">
                                               <block type="math_number" id="BQmVC,FCu#dw7}BheCX+">
                                                 <field name="NUM">1</field>
                                               </block>
                                             </value>
                                             <next>
                                               <block type="control" id="lZkUHOXsA@iQsPkE.sF3">
                                                 <mutation delay_input="true"></mutation>
                                                 <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field>
                                                 <field name="WITH_DELAY">TRUE</field>
                                                 <field name="DELAY_MS">8</field>
                                                 <field name="UNIT">sec</field>
                                                 <field name="CLEAR_RUNNING">FALSE</field>
                                                 <value name="VALUE">
                                                   <block type="logic_boolean" id="Q+cV)e%X@d7EOE8cx9Wq">
                                                     <field name="BOOL">FALSE</field>
                                                   </block>
                                                 </value>
                                                 <next>
                                                   <block type="control" id="hD]:P50.i?ywAAEUpw0y">
                                                     <mutation delay_input="true"></mutation>
                                                     <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field>
                                                     <field name="WITH_DELAY">TRUE</field>
                                                     <field name="DELAY_MS">8</field>
                                                     <field name="UNIT">sec</field>
                                                     <field name="CLEAR_RUNNING">FALSE</field>
                                                     <value name="VALUE">
                                                       <block type="logic_boolean" id="XIwr6t@JkH8BtO`!OlR8">
                                                         <field name="BOOL">FALSE</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </next>
                                               </block>
                                             </next>
                                           </block>
                                         </next>
                                       </block>
                                     </next>
                                   </block>
                                 </next>
                               </block>
                             </next>
                           </block>
                         </statement>
                         <value name="IF1">
                           <block type="logic_compare" id="L4#aR-t265FcF~{V-=z}">
                             <field name="OP">EQ</field>
                             <value name="A">
                               <block type="get_value" id="k)S4{9LhWhh7i(zgpcAX">
                                 <field name="ATTR">val</field>
                                 <field name="OID">kodi.0.state</field>
                               </block>
                             </value>
                             <value name="B">
                               <block type="text" id="u%liIIv78{-{B/t[kHwD">
                                 <field name="TEXT">pause</field>
                               </block>
                             </value>
                           </block>
                         </value>
                         <statement name="DO1">
                           <block type="control" id="?qyo2f}a8H?/+o?c|g4=">
                             <mutation delay_input="false"></mutation>
                             <field name="OID">onkyo.0.Zone1.Volume</field>
                             <field name="WITH_DELAY">FALSE</field>
                             <value name="VALUE">
                               <block type="math_number" id="-Qnd[tHOYR76^0wOY~7p">
                                 <field name="NUM">20</field>
                               </block>
                             </value>
                             <next>
                               <block type="control" id="#E;yx;iHjG_E+FH;g0%z">
                                 <mutation delay_input="false"></mutation>
                                 <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field>
                                 <field name="WITH_DELAY">FALSE</field>
                                 <value name="VALUE">
                                   <block type="logic_boolean" id="#9ss|SZefcOBRFZC2_X8">
                                     <field name="BOOL">TRUE</field>
                                   </block>
                                 </value>
                                 <next>
                                   <block type="control" id="*4N:KDr6.bW,o*45e_A|">
                                     <mutation delay_input="false"></mutation>
                                     <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="logic_boolean" id="odZd[MAx4CI:v203!Zq4">
                                         <field name="BOOL">TRUE</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="control" id="YS?!}nX#p1PXCl5kt1^#">
                                         <mutation delay_input="false"></mutation>
                                         <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field>
                                         <field name="WITH_DELAY">FALSE</field>
                                         <value name="VALUE">
                                           <block type="math_number" id="6[tQ[e%dRUv[j2FpO@d4">
                                             <field name="NUM">50</field>
                                           </block>
                                         </value>
                                         <next>
                                           <block type="control" id="Ycp]|)fUwJF7cHdiC5jJ">
                                             <mutation delay_input="false"></mutation>
                                             <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field>
                                             <field name="WITH_DELAY">FALSE</field>
                                             <value name="VALUE">
                                               <block type="math_number" id="`EzeaI`O`0lf-4v0{os9">
                                                 <field name="NUM">50</field>
                                               </block>
                                             </value>
                                           </block>
                                         </next>
                                       </block>
                                     </next>
                                   </block>
                                 </next>
                               </block>
                             </next>
                           </block>
                         </statement>
                       </block>
                     </statement>
                     <next>
                       <block type="on_ext" id="@LZ8s7[[|_R+1%lZwU]%">
                         <mutation items="1"></mutation>
                         <field name="CONDITION">ne</field>
                         <field name="ACK_CONDITION"></field>
                         <value name="OID0">
                           <shadow type="field_oid" id="um]7C|aX7W4!+AGc_l9%">
                             <field name="oid">kodi.0.state</field>
                           </shadow>
                         </value>
                         <statement name="STATEMENT">
                           <block type="controls_if" id="!As-747u^17B-)9g)Zvf">
                             <mutation else="1"></mutation>
                             <value name="IF0">
                               <block type="logic_compare" id="pLmOMKPiWB|{VpCz8-1U">
                                 <field name="OP">EQ</field>
                                 <value name="A">
                                   <block type="get_value" id="FVUcHy,!FMnH)#,#p[A(">
                                     <field name="ATTR">val</field>
                                     <field name="OID">kodi.0.state</field>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <block type="text" id="ZTI-J3/|^I-5#QhSKG1t">
                                     <field name="TEXT">stop</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <statement name="DO0">
                               <block type="timeouts_settimeout" id="OvnwUoS@a.ev/9WARJX7">
                                 <field name="NAME">timeout</field>
                                 <field name="DELAY">6</field>
                                 <field name="UNIT">sec</field>
                                 <statement name="STATEMENT">
                                   <block type="control" id="WhsWLu2omtF*Y8xsF*`@">
                                     <mutation delay_input="false"></mutation>
                                     <field name="OID">onkyo-vis-dev.0.Zone1.Volume</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="math_number" id="Zu/+#DHiEA1[EYXnmE.^">
                                         <field name="NUM">20</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="control" id="[Qp)M!a|p:G}55K|zwxC">
                                         <mutation delay_input="false"></mutation>
                                         <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field>
                                         <field name="WITH_DELAY">FALSE</field>
                                         <value name="VALUE">
                                           <block type="logic_boolean" id="/|q9u4=xm.I`R/#%!L2I">
                                             <field name="BOOL">TRUE</field>
                                           </block>
                                         </value>
                                         <next>
                                           <block type="control" id="E)MBR);MOzQEs#v!%;~N">
                                             <mutation delay_input="false"></mutation>
                                             <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field>
                                             <field name="WITH_DELAY">FALSE</field>
                                             <value name="VALUE">
                                               <block type="logic_boolean" id="6}9T0m*Ct07J^)T..u)[">
                                                 <field name="BOOL">TRUE</field>
                                               </block>
                                             </value>
                                             <next>
                                               <block type="control" id="jE0Fs#QKRcQbc~Hqz_mZ">
                                                 <mutation delay_input="false"></mutation>
                                                 <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field>
                                                 <field name="WITH_DELAY">FALSE</field>
                                                 <value name="VALUE">
                                                   <block type="math_number" id="^E]pfz(LcF!CYR5Z!Fin">
                                                     <field name="NUM">100</field>
                                                   </block>
                                                 </value>
                                                 <next>
                                                   <block type="control" id="!/S?4L-B(a}.X1GE5UH3">
                                                     <mutation delay_input="false"></mutation>
                                                     <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field>
                                                     <field name="WITH_DELAY">FALSE</field>
                                                     <value name="VALUE">
                                                       <block type="math_number" id="MemkoCGutF=-zRx/5=Iu">
                                                         <field name="NUM">100</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </next>
                                               </block>
                                             </next>
                                           </block>
                                         </next>
                                       </block>
                                     </next>
                                   </block>
                                 </statement>
                               </block>
                             </statement>
                             <statement name="ELSE">
                               <block type="timeouts_cleartimeout" id="LRW1no=YM6C0`{MJY_8o">
                                 <field name="NAME">timeout</field>
                               </block>
                             </statement>
                           </block>
                         </statement>
                       </block>
                     </next>
                   </block>
                  </xml>
                  


                  d39f195d-303b-4624-a696-348e94223cbc-grafik.png

                  ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

                  1 Antwort Letzte Antwort
                  0
                  • ostseereiterO ostseereiter

                    @paul53
                    das Script wird nach 6 Sekunden trotzdem ausgeführt
                    Screenshot (175).png
                    Ich lege mal das ganze Skript mit bei.

                    <xml xmlns="http://www.w3.org/1999/xhtml">
                      <variables>
                        <variable type="undefined" id="timeout">timeout</variable>
                      </variables>
                      <block type="on_ext" id=")^U#Op#[o;Y=[chkuig9" x="-337" y="-162">
                        <mutation items="1"></mutation>
                        <field name="CONDITION">ne</field>
                        <field name="ACK_CONDITION"></field>
                        <value name="OID0">
                          <shadow type="field_oid" id="=MV8NCQfEw?)uv+I7;JK">
                            <field name="oid">kodi.0.state</field>
                          </shadow>
                        </value>
                        <statement name="STATEMENT">
                          <block type="controls_if" id=",9_Nr-P-{%Fd+Tc0-=Nu">
                            <mutation elseif="2" else="1"></mutation>
                            <value name="IF0">
                              <block type="logic_compare" id=";_i]cfZdrmL/qXWB6PuO">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="05hB:}da}@CQX_^vBlC@">
                                    <field name="ATTR">val</field>
                                    <field name="OID">kodi.0.state</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="text" id=".XpJFW9d}.;,|@XF~5Q:">
                                    <field name="TEXT">play</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="control" id="-bW3=KVu3vdlqU2aX)=n">
                                <mutation delay_input="false"></mutation>
                                <field name="OID">sonoff.0.Sonoff-Schrankwand.POWER</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="HlyW/,NN*]S[gwa+`oUp">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="control" id="{GEg)0Ml(3~/NdGsJnE=">
                                    <mutation delay_input="true"></mutation>
                                    <field name="OID">lightify.0.96B4DA0000261884.on</field>
                                    <field name="WITH_DELAY">TRUE</field>
                                    <field name="DELAY_MS">1000</field>
                                    <field name="UNIT">ms</field>
                                    <field name="CLEAR_RUNNING">FALSE</field>
                                    <value name="VALUE">
                                      <block type="logic_boolean" id="j7~ICoLk);iS7chyWp#T">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="control" id="n,Ew/dp@wd2ARXK6.SxY">
                                        <mutation delay_input="true"></mutation>
                                        <field name="OID">onkyo.0.Zone1.Volume</field>
                                        <field name="WITH_DELAY">TRUE</field>
                                        <field name="DELAY_MS">1</field>
                                        <field name="UNIT">sec</field>
                                        <field name="CLEAR_RUNNING">FALSE</field>
                                        <value name="VALUE">
                                          <block type="math_number" id="d0qb-5nwZ!ej0g9%@3PP">
                                            <field name="NUM">41</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="control" id="Zzo:sY+@;EFzIR30pdn%">
                                            <mutation delay_input="true"></mutation>
                                            <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field>
                                            <field name="WITH_DELAY">TRUE</field>
                                            <field name="DELAY_MS">2</field>
                                            <field name="UNIT">sec</field>
                                            <field name="CLEAR_RUNNING">FALSE</field>
                                            <value name="VALUE">
                                              <block type="math_number" id="ZtO6^~.alKx*i6|N~gvZ">
                                                <field name="NUM">1</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="control" id="l.q.9bJPg,`VA-Ju@UHb">
                                                <mutation delay_input="true"></mutation>
                                                <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field>
                                                <field name="WITH_DELAY">TRUE</field>
                                                <field name="DELAY_MS">2</field>
                                                <field name="UNIT">sec</field>
                                                <field name="CLEAR_RUNNING">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="math_number" id="BQmVC,FCu#dw7}BheCX+">
                                                    <field name="NUM">1</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="control" id="lZkUHOXsA@iQsPkE.sF3">
                                                    <mutation delay_input="true"></mutation>
                                                    <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field>
                                                    <field name="WITH_DELAY">TRUE</field>
                                                    <field name="DELAY_MS">8</field>
                                                    <field name="UNIT">sec</field>
                                                    <field name="CLEAR_RUNNING">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="logic_boolean" id="Q+cV)e%X@d7EOE8cx9Wq">
                                                        <field name="BOOL">FALSE</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="control" id="hD]:P50.i?ywAAEUpw0y">
                                                        <mutation delay_input="true"></mutation>
                                                        <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field>
                                                        <field name="WITH_DELAY">TRUE</field>
                                                        <field name="DELAY_MS">8</field>
                                                        <field name="UNIT">sec</field>
                                                        <field name="CLEAR_RUNNING">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="logic_boolean" id="XIwr6t@JkH8BtO`!OlR8">
                                                            <field name="BOOL">FALSE</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </statement>
                            <value name="IF1">
                              <block type="logic_compare" id="L4#aR-t265FcF~{V-=z}">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="k)S4{9LhWhh7i(zgpcAX">
                                    <field name="ATTR">val</field>
                                    <field name="OID">kodi.0.state</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="text" id="u%liIIv78{-{B/t[kHwD">
                                    <field name="TEXT">pause</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO1">
                              <block type="control" id="?qyo2f}a8H?/+o?c|g4=">
                                <mutation delay_input="false"></mutation>
                                <field name="OID">onkyo.0.Zone1.Volume</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="math_number" id="-Qnd[tHOYR76^0wOY~7p">
                                    <field name="NUM">20</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="control" id="#E;yx;iHjG_E+FH;g0%z">
                                    <mutation delay_input="false"></mutation>
                                    <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="logic_boolean" id="#9ss|SZefcOBRFZC2_X8">
                                        <field name="BOOL">TRUE</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="control" id="*4N:KDr6.bW,o*45e_A|">
                                        <mutation delay_input="false"></mutation>
                                        <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="odZd[MAx4CI:v203!Zq4">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="control" id="YS?!}nX#p1PXCl5kt1^#">
                                            <mutation delay_input="false"></mutation>
                                            <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="math_number" id="6[tQ[e%dRUv[j2FpO@d4">
                                                <field name="NUM">50</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="control" id="Ycp]|)fUwJF7cHdiC5jJ">
                                                <mutation delay_input="false"></mutation>
                                                <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="math_number" id="`EzeaI`O`0lf-4v0{os9">
                                                    <field name="NUM">50</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </statement>
                            <value name="IF2">
                              <block type="logic_compare" id="pLmOMKPiWB|{VpCz8-1U">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="FVUcHy,!FMnH)#,#p[A(">
                                    <field name="ATTR">val</field>
                                    <field name="OID">kodi.0.state</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="text" id="ZTI-J3/|^I-5#QhSKG1t">
                                    <field name="TEXT">stop</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO2">
                              <block type="timeouts_settimeout" id="OvnwUoS@a.ev/9WARJX7">
                                <field name="NAME">timeout</field>
                                <field name="DELAY">6</field>
                                <field name="UNIT">sec</field>
                                <statement name="STATEMENT">
                                  <block type="control" id="WhsWLu2omtF*Y8xsF*`@">
                                    <mutation delay_input="false"></mutation>
                                    <field name="OID">onkyo-vis-dev.0.Zone1.Volume</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="Zu/+#DHiEA1[EYXnmE.^">
                                        <field name="NUM">20</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="control" id="[Qp)M!a|p:G}55K|zwxC">
                                        <mutation delay_input="false"></mutation>
                                        <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="/|q9u4=xm.I`R/#%!L2I">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="control" id="E)MBR);MOzQEs#v!%;~N">
                                            <mutation delay_input="false"></mutation>
                                            <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="logic_boolean" id="6}9T0m*Ct07J^)T..u)[">
                                                <field name="BOOL">TRUE</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="control" id="jE0Fs#QKRcQbc~Hqz_mZ">
                                                <mutation delay_input="false"></mutation>
                                                <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="math_number" id="^E]pfz(LcF!CYR5Z!Fin">
                                                    <field name="NUM">100</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="control" id="!/S?4L-B(a}.X1GE5UH3">
                                                    <mutation delay_input="false"></mutation>
                                                    <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="math_number" id="MemkoCGutF=-zRx/5=Iu">
                                                        <field name="NUM">100</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                              </block>
                            </statement>
                            <statement name="ELSE">
                              <block type="timeouts_cleartimeout" id="LRW1no=YM6C0`{MJY_8o">
                                <field name="NAME">timeout</field>
                              </block>
                            </statement>
                          </block>
                        </statement>
                      </block>
                    </xml>
                    
                    BBTownB Offline
                    BBTownB Offline
                    BBTown
                    schrieb am zuletzt editiert von BBTown
                    #10

                    @ostseereiter noch eine Variante, die auch klappen könnte
                    @Jan1 - so herum meintest Du womöglich?

                    <xml xmlns="http://www.w3.org/1999/xhtml">
                     <variables>
                       <variable type="undefined" id="timeout">timeout</variable>
                     </variables>
                     <block type="on_ext" id=")^U#Op#[o;Y=[chkuig9" x="-362" y="213">
                       <mutation items="1"></mutation>
                       <field name="CONDITION">ne</field>
                       <field name="ACK_CONDITION"></field>
                       <value name="OID0">
                         <shadow type="field_oid" id="=MV8NCQfEw?)uv+I7;JK">
                           <field name="oid">kodi.0.state</field>
                         </shadow>
                       </value>
                       <statement name="STATEMENT">
                         <block type="timeouts_cleartimeout" id="LRW1no=YM6C0`{MJY_8o">
                           <field name="NAME">timeout</field>
                           <next>
                             <block type="controls_if" id=",9_Nr-P-{%Fd+Tc0-=Nu">
                               <mutation elseif="2"></mutation>
                               <value name="IF0">
                                 <block type="logic_compare" id="pLmOMKPiWB|{VpCz8-1U">
                                   <field name="OP">EQ</field>
                                   <value name="A">
                                     <block type="get_value" id="FVUcHy,!FMnH)#,#p[A(">
                                       <field name="ATTR">val</field>
                                       <field name="OID">kodi.0.state</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="text" id="ZTI-J3/|^I-5#QhSKG1t">
                                       <field name="TEXT">stop</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <statement name="DO0">
                                 <block type="timeouts_settimeout" id="OvnwUoS@a.ev/9WARJX7">
                                   <field name="NAME">timeout</field>
                                   <field name="DELAY">6</field>
                                   <field name="UNIT">sec</field>
                                   <statement name="STATEMENT">
                                     <block type="control" id="WhsWLu2omtF*Y8xsF*`@">
                                       <mutation delay_input="false"></mutation>
                                       <field name="OID">onkyo-vis-dev.0.Zone1.Volume</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="math_number" id="Zu/+#DHiEA1[EYXnmE.^">
                                           <field name="NUM">20</field>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="control" id="[Qp)M!a|p:G}55K|zwxC">
                                           <mutation delay_input="false"></mutation>
                                           <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field>
                                           <field name="WITH_DELAY">FALSE</field>
                                           <value name="VALUE">
                                             <block type="logic_boolean" id="/|q9u4=xm.I`R/#%!L2I">
                                               <field name="BOOL">TRUE</field>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="control" id="E)MBR);MOzQEs#v!%;~N">
                                               <mutation delay_input="false"></mutation>
                                               <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field>
                                               <field name="WITH_DELAY">FALSE</field>
                                               <value name="VALUE">
                                                 <block type="logic_boolean" id="6}9T0m*Ct07J^)T..u)[">
                                                   <field name="BOOL">TRUE</field>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="control" id="jE0Fs#QKRcQbc~Hqz_mZ">
                                                   <mutation delay_input="false"></mutation>
                                                   <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field>
                                                   <field name="WITH_DELAY">FALSE</field>
                                                   <value name="VALUE">
                                                     <block type="math_number" id="^E]pfz(LcF!CYR5Z!Fin">
                                                       <field name="NUM">100</field>
                                                     </block>
                                                   </value>
                                                   <next>
                                                     <block type="control" id="!/S?4L-B(a}.X1GE5UH3">
                                                       <mutation delay_input="false"></mutation>
                                                       <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field>
                                                       <field name="WITH_DELAY">FALSE</field>
                                                       <value name="VALUE">
                                                         <block type="math_number" id="MemkoCGutF=-zRx/5=Iu">
                                                           <field name="NUM">100</field>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </statement>
                                 </block>
                               </statement>
                               <value name="IF1">
                                 <block type="logic_compare" id=";_i]cfZdrmL/qXWB6PuO">
                                   <field name="OP">EQ</field>
                                   <value name="A">
                                     <block type="get_value" id="05hB:}da}@CQX_^vBlC@">
                                       <field name="ATTR">val</field>
                                       <field name="OID">kodi.0.state</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="text" id=".XpJFW9d}.;,|@XF~5Q:">
                                       <field name="TEXT">play</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <statement name="DO1">
                                 <block type="control" id="-bW3=KVu3vdlqU2aX)=n">
                                   <mutation delay_input="false"></mutation>
                                   <field name="OID">sonoff.0.Sonoff-Schrankwand.POWER</field>
                                   <field name="WITH_DELAY">FALSE</field>
                                   <value name="VALUE">
                                     <block type="logic_boolean" id="HlyW/,NN*]S[gwa+`oUp">
                                       <field name="BOOL">FALSE</field>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="control" id="{GEg)0Ml(3~/NdGsJnE=">
                                       <mutation delay_input="true"></mutation>
                                       <field name="OID">lightify.0.96B4DA0000261884.on</field>
                                       <field name="WITH_DELAY">TRUE</field>
                                       <field name="DELAY_MS">1000</field>
                                       <field name="UNIT">ms</field>
                                       <field name="CLEAR_RUNNING">FALSE</field>
                                       <value name="VALUE">
                                         <block type="logic_boolean" id="j7~ICoLk);iS7chyWp#T">
                                           <field name="BOOL">FALSE</field>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="control" id="n,Ew/dp@wd2ARXK6.SxY">
                                           <mutation delay_input="true"></mutation>
                                           <field name="OID">onkyo.0.Zone1.Volume</field>
                                           <field name="WITH_DELAY">TRUE</field>
                                           <field name="DELAY_MS">1</field>
                                           <field name="UNIT">sec</field>
                                           <field name="CLEAR_RUNNING">FALSE</field>
                                           <value name="VALUE">
                                             <block type="math_number" id="d0qb-5nwZ!ej0g9%@3PP">
                                               <field name="NUM">41</field>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="control" id="Zzo:sY+@;EFzIR30pdn%">
                                               <mutation delay_input="true"></mutation>
                                               <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field>
                                               <field name="WITH_DELAY">TRUE</field>
                                               <field name="DELAY_MS">2</field>
                                               <field name="UNIT">sec</field>
                                               <field name="CLEAR_RUNNING">FALSE</field>
                                               <value name="VALUE">
                                                 <block type="math_number" id="ZtO6^~.alKx*i6|N~gvZ">
                                                   <field name="NUM">1</field>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="control" id="l.q.9bJPg,`VA-Ju@UHb">
                                                   <mutation delay_input="true"></mutation>
                                                   <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field>
                                                   <field name="WITH_DELAY">TRUE</field>
                                                   <field name="DELAY_MS">2</field>
                                                   <field name="UNIT">sec</field>
                                                   <field name="CLEAR_RUNNING">FALSE</field>
                                                   <value name="VALUE">
                                                     <block type="math_number" id="BQmVC,FCu#dw7}BheCX+">
                                                       <field name="NUM">1</field>
                                                     </block>
                                                   </value>
                                                   <next>
                                                     <block type="control" id="lZkUHOXsA@iQsPkE.sF3">
                                                       <mutation delay_input="true"></mutation>
                                                       <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field>
                                                       <field name="WITH_DELAY">TRUE</field>
                                                       <field name="DELAY_MS">8</field>
                                                       <field name="UNIT">sec</field>
                                                       <field name="CLEAR_RUNNING">FALSE</field>
                                                       <value name="VALUE">
                                                         <block type="logic_boolean" id="Q+cV)e%X@d7EOE8cx9Wq">
                                                           <field name="BOOL">FALSE</field>
                                                         </block>
                                                       </value>
                                                       <next>
                                                         <block type="control" id="hD]:P50.i?ywAAEUpw0y">
                                                           <mutation delay_input="true"></mutation>
                                                           <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field>
                                                           <field name="WITH_DELAY">TRUE</field>
                                                           <field name="DELAY_MS">8</field>
                                                           <field name="UNIT">sec</field>
                                                           <field name="CLEAR_RUNNING">FALSE</field>
                                                           <value name="VALUE">
                                                             <block type="logic_boolean" id="XIwr6t@JkH8BtO`!OlR8">
                                                               <field name="BOOL">FALSE</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                               <value name="IF2">
                                 <block type="logic_compare" id="L4#aR-t265FcF~{V-=z}">
                                   <field name="OP">EQ</field>
                                   <value name="A">
                                     <block type="get_value" id="k)S4{9LhWhh7i(zgpcAX">
                                       <field name="ATTR">val</field>
                                       <field name="OID">kodi.0.state</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="text" id="u%liIIv78{-{B/t[kHwD">
                                       <field name="TEXT">pause</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <statement name="DO2">
                                 <block type="control" id="?qyo2f}a8H?/+o?c|g4=">
                                   <mutation delay_input="false"></mutation>
                                   <field name="OID">onkyo.0.Zone1.Volume</field>
                                   <field name="WITH_DELAY">FALSE</field>
                                   <value name="VALUE">
                                     <block type="math_number" id="-Qnd[tHOYR76^0wOY~7p">
                                       <field name="NUM">20</field>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="control" id="#E;yx;iHjG_E+FH;g0%z">
                                       <mutation delay_input="false"></mutation>
                                       <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="logic_boolean" id="#9ss|SZefcOBRFZC2_X8">
                                           <field name="BOOL">TRUE</field>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="control" id="*4N:KDr6.bW,o*45e_A|">
                                           <mutation delay_input="false"></mutation>
                                           <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field>
                                           <field name="WITH_DELAY">FALSE</field>
                                           <value name="VALUE">
                                             <block type="logic_boolean" id="odZd[MAx4CI:v203!Zq4">
                                               <field name="BOOL">TRUE</field>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="control" id="YS?!}nX#p1PXCl5kt1^#">
                                               <mutation delay_input="false"></mutation>
                                               <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field>
                                               <field name="WITH_DELAY">FALSE</field>
                                               <value name="VALUE">
                                                 <block type="math_number" id="6[tQ[e%dRUv[j2FpO@d4">
                                                   <field name="NUM">50</field>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="control" id="Ycp]|)fUwJF7cHdiC5jJ">
                                                   <mutation delay_input="false"></mutation>
                                                   <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field>
                                                   <field name="WITH_DELAY">FALSE</field>
                                                   <value name="VALUE">
                                                     <block type="math_number" id="`EzeaI`O`0lf-4v0{os9">
                                                       <field name="NUM">50</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                             </block>
                           </next>
                         </block>
                       </statement>
                     </block>
                    </xml>
                    


                    d6951ef3-8eeb-47c3-86ae-2388174c166c-grafik.png

                    ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

                    1 Antwort Letzte Antwort
                    0
                    • ostseereiterO Offline
                      ostseereiterO Offline
                      ostseereiter
                      schrieb am zuletzt editiert von
                      #11

                      @BBTown
                      das erste von dir hat schon funktioniert danke an alle.

                      Gruß OSR

                      Plattform
                      Linux x64 CPUs2 AMD G-T56N Processor 1646 MHz 8GB RAM

                      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

                      783

                      Online

                      32.7k

                      Benutzer

                      82.4k

                      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