Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. (gelöst) eine Aktion nach einer Zeit ausführen

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

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

    This topic has been deleted. Only users with topic management privileges can see it.
    • ostseereiter
      ostseereiter last edited by 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

      paul53 1 Reply Last reply Reply Quote 0
      • BBTown
        BBTown last edited by

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

        1 Reply Last reply Reply Quote 1
        • paul53
          paul53 @ostseereiter last edited by

          @ostseereiter sagte:

          Wie kann man das realisieren?

          Z.B. so

          Blockly_temp.JPG

          ostseereiter BBTown 2 Replies Last reply Reply Quote 1
          • ostseereiter
            ostseereiter @paul53 last edited by

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

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

              @paul53 jepp, das ist eleganter 😉

              1 Reply Last reply Reply Quote 0
              • ostseereiter
                ostseereiter last edited by

                @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>
                
                BBTown 3 Replies Last reply Reply Quote 0
                • BBTown
                  BBTown @ostseereiter last edited by 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 1 Reply Last reply Reply Quote 0
                  • J
                    Jan1 @BBTown last edited by Jan1

                    @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 Reply Last reply Reply Quote 0
                    • BBTown
                      BBTown @ostseereiter last edited by BBTown

                      @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

                      1 Reply Last reply Reply Quote 0
                      • BBTown
                        BBTown @ostseereiter last edited by BBTown

                        @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

                        1 Reply Last reply Reply Quote 0
                        • ostseereiter
                          ostseereiter last edited by

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

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          373
                          Online

                          31.9k
                          Users

                          80.3k
                          Topics

                          1.3m
                          Posts

                          blockly
                          4
                          11
                          368
                          Loading More Posts
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes
                          Reply
                          • Reply as topic
                          Log in to reply
                          Community
                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                          The ioBroker Community 2014-2023
                          logo