Navigation

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

    NEWS

    • Wartung am 15.11. – Forum ab 22:00 Uhr nicht erreichbar

    • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?

    • Monatsrückblick – September 2025

    Fehler bei der Wled steuerung mit Blockly

    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MR.SCHIEFER last edited by

      Re: Blockly für Garagen LED Beleuchtung

      Hallo in die Runde,

      ich hab mich nach langer Zeit auch mal an das Projekt Wled beleuchtung Garage gewagt. OHNE Vorkenntnisse !!!
      Ich habe die Steuerung mit Blockly verwirklicht. Soweit läuft alles, außer die Abschaltung, die macht mir zu schaffen.

      Das Tor hat ja nur drei Zustände, in dem die LED´s tolle sachen machen und nach Zeit x ausgehen. Doch irgendwie beeinflussen sich die ZEITEN GEGENSEITIG , wenn man den gesamten Prozess nicht komplett durchläuft.

      Kann mir bitt jemand einen TIP geben?! Danke

      M 1 Reply Last reply Reply Quote 0
      • M
        MR.SCHIEFER @MR.SCHIEFER last edited by

        @mr-schiefer ```
        code_text

          <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
          <field name="CONDITION">any</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
            <shadow type="field_oid" id="W]nC*gFRWl79QFn)AdM1">
              <field name="oid">zigbee.0.c4d8c8fffe18e9d6.opened</field>
            </shadow>
          </value>
          <value name="OID1">
            <shadow type="field_oid" id="JfsdTR$20w|T7zyBMm2@">
              <field name="oid">zigbee.0.c4d8c8fffe19089a.opened</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="comment" id="w._[3u,,#m1t$?zC?]e1">
              <field name="COMMENT">hoch oder runter</field>
              <next>
                <block type="controls_if" id="XzIrP_N:SZ/Wgiu*pcir">
                  <value name="IF0">
                    <block type="logic_multi_and" id="hWi{YmJW5?Tp9$)C=Wta">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                      <value name="AND0">
                        <block type="get_value" id="l6L]%c#R,v3C,MCM$7eL">
                          <field name="ATTR">val</field>
                          <field name="OID">zigbee.0.c4d8c8fffe18e9d6.opened</field>
                        </block>
                      </value>
                      <value name="AND1">
                        <block type="get_value" id="0EaQ;.J-7O?+zC@QJ599">
                          <field name="ATTR">val</field>
                          <field name="OID">zigbee.0.c4d8c8fffe19089a.opened</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="control" id="jS6#YD`FVl,fAB@cs0tH">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                      <field name="OID">wled.0.08f9e0df55e0.ps</field>
                      <field name="WITH_DELAY">TRUE</field>
                      <field name="DELAY_MS">20</field>
                      <field name="UNIT">sec</field>
                      <field name="CLEAR_RUNNING">FALSE</field>
                      <value name="VALUE">
                        <block type="math_number" id="OHN=LhxfcGTsqFED8Zzc">
                          <field name="NUM">1</field>
                        </block>
                      </value>
                      <next>
                        <block type="control" id="Z-nE(|thu%fj-G`kR$#i">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                          <field name="OID">wled.0.08f9e0df55e0.ps</field>
                          <field name="WITH_DELAY">TRUE</field>
                          <field name="DELAY_MS">30</field>
                          <field name="UNIT">sec</field>
                          <field name="CLEAR_RUNNING">FALSE</field>
                          <value name="VALUE">
                            <block type="math_number" id="72n(:$qm.vI,|w;OB=F!">
                              <field name="NUM">10</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="S}4oH4Z+F9lXk6,ZogZe">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                              <field name="OID">wled.0.08f9e0df55e0.ps</field>
                              <field name="WITH_DELAY">TRUE</field>
                              <field name="DELAY_MS">60</field>
                              <field name="UNIT">sec</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="VALUE">
                                <block type="math_number" id=":_CE[@a~I|T!}No/!@CL">
                                  <field name="NUM">9</field>
                                </block>
                              </value>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </statement>
          <next>
            <block type="on_ext" id="@`N,|Fm#yDXu$U}RvTv)">
              <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
              <field name="CONDITION">any</field>
              <field name="ACK_CONDITION"></field>
              <value name="OID0">
                <shadow type="field_oid" id="#G%7[h}a/jp[V`Wf5.5k">
                  <field name="oid">zigbee.0.c4d8c8fffe19089a.opened</field>
                </shadow>
              </value>
              <value name="OID1">
                <shadow type="field_oid" id="GCo`sCJ[gc+Zt$k.Nnbb">
                  <field name="oid">zigbee.0.c4d8c8fffe18e9d6.opened</field>
                </shadow>
              </value>
              <statement name="STATEMENT">
                <block type="comment" id="IyX;dm,RC-#pLTu+:*_b">
                  <field name="COMMENT">Tor offen</field>
                  <next>
                    <block type="controls_if" id="l6+@fifd]iCk:vWW4`QQ">
                      <value name="IF0">
                        <block type="logic_multi_and" id="wW0QoTR)~AgXbO$Z`NpR">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                          <value name="AND0">
                            <block type="logic_compare" id="a`0zQ~V,@M5b31lGE:tv">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="[^NYM?|nN4(B]Ek{6tJ4">
                                  <field name="ATTR">val</field>
                                  <field name="OID">zigbee.0.c4d8c8fffe18e9d6.opened</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="v/#[!a}WApZ^hmECSIW:">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <value name="AND1">
                            <block type="logic_compare" id="`W/8zD|ygNU:(W9e(JYm">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="yENvKg8*;(uEBS7_7.7d">
                                  <field name="ATTR">val</field>
                                  <field name="OID">zigbee.0.c4d8c8fffe19089a.opened</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="gs[Co.!-ALYL8Am0BQHg">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="control" id="WJ0#OCyH*|73.d_I,N(1">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                          <field name="OID">wled.0.08f9e0df55e0.ps</field>
                          <field name="WITH_DELAY">TRUE</field>
                          <field name="DELAY_MS">0</field>
                          <field name="UNIT">sec</field>
                          <field name="CLEAR_RUNNING">FALSE</field>
                          <value name="VALUE">
                            <block type="math_number" id="rrpv(,Yvc4,]Aj2UYs1*">
                              <field name="NUM">3</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="l3}z(#eJ~YJ[a-P`Z3dg">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                              <field name="OID">wled.0.08f9e0df55e0.ps</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="K*uwHy3h!u=l?!y!D7VB">
                                  <field name="NUM">8</field>
                                </block>
                              </value>
                              <next>
                                <block type="control" id="_r}N{rnzlFC,p`?QZ@Oe">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                  <field name="OID">wled.0.08f9e0df55e0.ps</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="math_number" id="z;5(|78fo.9fAg3pDF)c">
                                      <field name="NUM">6</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="control" id="vKR-lT}#XWX@.]WUpVK=">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                      <field name="OID">wled.0.08f9e0df55e0.ps</field>
                                      <field name="WITH_DELAY">TRUE</field>
                                      <field name="DELAY_MS">40</field>
                                      <field name="UNIT">sec</field>
                                      <field name="CLEAR_RUNNING">FALSE</field>
                                      <value name="VALUE">
                                        <block type="math_number" id="|whngA{B7`}v$6_6xfJb">
                                          <field name="NUM">5</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id="%!JMf8Ej+!/D_(MmR%;-">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                          <field name="OID">wled.0.08f9e0df55e0.ps</field>
                                          <field name="WITH_DELAY">TRUE</field>
                                          <field name="DELAY_MS">5</field>
                                          <field name="UNIT">min</field>
                                          <field name="CLEAR_RUNNING">FALSE</field>
                                          <value name="VALUE">
                                            <block type="math_number" id="$G,$ke2MW45Y,*o@d:qs">
                                              <field name="NUM">9</field>
                                            </block>
                                          </value>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </next>
                </block>
              </statement>
              <next>
                <block type="on_ext" id="oZRI:Q#lllCSL}s4:~tZ">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                  <field name="CONDITION">any</field>
                  <field name="ACK_CONDITION"></field>
                  <value name="OID0">
                    <shadow type="field_oid" id="?W|,Z=IuYN2sGA@(typ%">
                      <field name="oid">zigbee.0.c4d8c8fffe18e9d6.opened</field>
                    </shadow>
                  </value>
                  <value name="OID1">
                    <shadow type="field_oid" id="(6O%a!o%:Oqw{Z~r?om=">
                      <field name="oid">zigbee.0.c4d8c8fffe19089a.opened</field>
                    </shadow>
                  </value>
                  <statement name="STATEMENT">
                    <block type="comment" id="N:TTZ;I(a+XY2C^mty!P">
                      <field name="COMMENT">Tor geschlossen</field>
                      <next>
                        <block type="controls_if" id="A%HyMbr=m3C%--).F@2Q">
                          <value name="IF0">
                            <block type="logic_multi_and" id="~xD%VwWo3W:/cK[=5T:D">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                              <value name="AND0">
                                <block type="logic_compare" id="B@bn:4`]p5`d*,d|w.v3">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="`C;2aeERzHj_gD3_+oIS">
                                      <field name="ATTR">val</field>
                                      <field name="OID">zigbee.0.c4d8c8fffe18e9d6.opened</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_boolean" id="4^#^-V}{iB)rM.l([0b(">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <value name="AND1">
                                <block type="logic_compare" id="wJ0l/{lXoc*gcwSD64vU">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="QJ_n?0PtkEDTfWuKHwQ+">
                                      <field name="ATTR">val</field>
                                      <field name="OID">zigbee.0.c4d8c8fffe19089a.opened</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_boolean" id="ts8yW:#lSg}/*KUIIm~A">
                                      <field name="BOOL">TRUE</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="control" id="#ptdyKU4?Se1jziFwF+L">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                              <field name="OID">wled.0.08f9e0df55e0.ps</field>
                              <field name="WITH_DELAY">TRUE</field>
                              <field name="DELAY_MS">0</field>
                              <field name="UNIT">sec</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="VALUE">
                                <block type="math_number" id="ar{u1dX]BU5^rMpcDhn7">
                                  <field name="NUM">8</field>
                                </block>
                              </value>
                              <next>
                                <block type="control" id="OfjJ+wY$}ZaU]i=Z|MQI">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                  <field name="OID">wled.0.08f9e0df55e0.ps</field>
                                  <field name="WITH_DELAY">TRUE</field>
                                  <field name="DELAY_MS">5</field>
                                  <field name="UNIT">sec</field>
                                  <field name="CLEAR_RUNNING">FALSE</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="qV[?,vrjL[_sJDBi`K.)">
                                      <field name="NUM">6</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="control" id="g[^Y6p$UGM/BXF.WIR^v">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                      <field name="OID">wled.0.08f9e0df55e0.ps</field>
                                      <field name="WITH_DELAY">TRUE</field>
                                      <field name="DELAY_MS">10</field>
                                      <field name="UNIT">sec</field>
                                      <field name="CLEAR_RUNNING">FALSE</field>
                                      <value name="VALUE">
                                        <block type="math_number" id="iT8(oWPncAaMJA:vc|(Y">
                                          <field name="NUM">5</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id="|BfwLn6O~$MQrL;C{G9Q">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                          <field name="OID">wled.0.08f9e0df55e0.ps</field>
                                          <field name="WITH_DELAY">TRUE</field>
                                          <field name="DELAY_MS">5</field>
                                          <field name="UNIT">min</field>
                                          <field name="CLEAR_RUNNING">FALSE</field>
                                          <value name="VALUE">
                                            <block type="math_number" id="hB1w9.nvyKXNq{@rOzLt">
                                              <field name="NUM">9</field>
                                            </block>
                                          </value>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </next>
        </block>
        haselchen 1 Reply Last reply Reply Quote 0
        • haselchen
          haselchen Most Active @MR.SCHIEFER last edited by

          @mr-schiefer

          Magst Du das Blockly mal posten.
          Niemand möchte sich das bei sich importieren .
          Außerdem kann man dann so alles mitverfolgen

          M 1 Reply Last reply Reply Quote 0
          • M
            MR.SCHIEFER @haselchen last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • M
              MR.SCHIEFER last edited by

              blockly.jpg

              Sorry auch hier bin ich Anfänger

              J 1 Reply Last reply Reply Quote 0
              • J
                jwerlsdf @MR.SCHIEFER last edited by jwerlsdf

                @mr-schiefer
                Schau mal bei mir. Ich habe zwei fensterkontaktschalter die den Zustand messen.
                Anbei das blockly

                <xml xmlns="https://developers.google.com/blockly/xml">
                 <block type="on_ext" id="iLrack)8HPWM2$$6N1FH" x="-737" y="-1462">
                   <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                   <field name="CONDITION">ne</field>
                   <field name="ACK_CONDITION"></field>
                   <value name="OID0">
                     <shadow type="field_oid" id="Th+yyEn^)|IzKleM:XUJ">
                       <field name="oid">hm-rpc.1.0016E0C992570B.6.STATE</field>
                     </shadow>
                   </value>
                   <value name="OID1">
                     <shadow type="field_oid" id="a!KNZMg%Yg^OBzJSsrfX">
                       <field name="oid">hm-rpc.1.0016E0C992570B.5.STATE</field>
                     </shadow>
                   </value>
                   <statement name="STATEMENT">
                     <block type="controls_if" id="x)s5mH036o4~erDEhlAG">
                       <mutation elseif="2"></mutation>
                       <value name="IF0">
                         <block type="logic_operation" id="{xU2c7hSi%%RplQtpl9I" inline="false">
                           <field name="OP">AND</field>
                           <value name="A">
                             <block type="logic_compare" id="pYw0mk{Dc51LnrKzs9/N">
                               <field name="OP">EQ</field>
                               <value name="A">
                                 <block type="get_value" id="Q(w*Rr{h]^mQ8~TB|cub">
                                   <field name="ATTR">val</field>
                                   <field name="OID">hm-rpc.1.0016E0C992570B.5.STATE</field>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="logic_boolean" id="H8)SVj#JC5Het_F1m0b@">
                                   <field name="BOOL">FALSE</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <value name="B">
                             <block type="logic_compare" id="3A]Dke5PKzjCwXd-U@D#">
                               <field name="OP">EQ</field>
                               <value name="A">
                                 <block type="get_value" id="dxJFTi:R:1+;Xo~BQG[k">
                                   <field name="ATTR">val</field>
                                   <field name="OID">hm-rpc.1.0016E0C992570B.6.STATE</field>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="logic_boolean" id="P{0,(?^[b6$]qAncl0qI">
                                   <field name="BOOL">TRUE</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                         </block>
                       </value>
                       <statement name="DO0">
                         <block type="update" id="AIf-Ql/lGR(Y_zdd/g^;">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                           <field name="OID">0_userdata.0.Garagentorzustand</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="text" id="zWaPv0Gy/Pv[K=]%j+=`">
                               <field name="TEXT">offen</field>
                             </block>
                           </value>
                         </block>
                       </statement>
                       <value name="IF1">
                         <block type="logic_operation" id="IC#f5sVy:vqYf_.BW6*M" inline="false">
                           <field name="OP">AND</field>
                           <value name="A">
                             <block type="logic_compare" id="UFQilt-flYxV4HNF,E$h">
                               <field name="OP">EQ</field>
                               <value name="A">
                                 <block type="get_value" id="{?9q)+=oz^Um%fSm2Cy5">
                                   <field name="ATTR">val</field>
                                   <field name="OID">hm-rpc.1.0016E0C992570B.5.STATE</field>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="logic_boolean" id="Ha@m0BZiRzHV;Eo*e+4H">
                                   <field name="BOOL">TRUE</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <value name="B">
                             <block type="logic_compare" id="4=iBD]c|$ugY}1QY2Jbm">
                               <field name="OP">EQ</field>
                               <value name="A">
                                 <block type="get_value" id="%0=De%;!conv8X!#!B{@">
                                   <field name="ATTR">val</field>
                                   <field name="OID">hm-rpc.1.0016E0C992570B.6.STATE</field>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="logic_boolean" id="Vh-,VK7T{c6Y254|JCL1">
                                   <field name="BOOL">TRUE</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                         </block>
                       </value>
                       <statement name="DO1">
                         <block type="update" id="rB~$h:Y8kn^Z:$u`_yP^">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                           <field name="OID">0_userdata.0.Garagentorzustand</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="text" id="aI77AEnqrriuFOJNJb37">
                               <field name="TEXT">fahren</field>
                             </block>
                           </value>
                         </block>
                       </statement>
                       <value name="IF2">
                         <block type="logic_operation" id="p(j(Q_KWb7[iZ,_ps_Xe" inline="false">
                           <field name="OP">AND</field>
                           <value name="A">
                             <block type="logic_compare" id="3S]jEE;[O`V5~M9}V?pC">
                               <field name="OP">EQ</field>
                               <value name="A">
                                 <block type="get_value" id="dL,/^!;UHGka[G5YNr]=">
                                   <field name="ATTR">val</field>
                                   <field name="OID">hm-rpc.1.0016E0C992570B.5.STATE</field>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="logic_boolean" id="g23^jcT2[Z6@lbJT1(mV">
                                   <field name="BOOL">TRUE</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <value name="B">
                             <block type="logic_compare" id="2YY#@qI_c=6g]fH|},q|">
                               <field name="OP">EQ</field>
                               <value name="A">
                                 <block type="get_value" id="3iX`E1NW,{Dvo*7:ckXK">
                                   <field name="ATTR">val</field>
                                   <field name="OID">hm-rpc.1.0016E0C992570B.6.STATE</field>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="logic_boolean" id="%_u2Qef!N^7#9tVF+1WH">
                                   <field name="BOOL">FALSE</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                         </block>
                       </value>
                       <statement name="DO2">
                         <block type="update" id="dOz8_7-Y#C9:`PfL,~b0">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                           <field name="OID">0_userdata.0.Garagentorzustand</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="text" id=";W*X^NQ;g^Z?yrIq?!w(">
                               <field name="TEXT">geschlossen</field>
                             </block>
                           </value>
                         </block>
                       </statement>
                     </block>
                   </statement>
                   <next>
                     <block type="on_ext" id="?V(Z4EQ^.,{hJD*1U6`$">
                       <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                       <field name="CONDITION">ne</field>
                       <field name="ACK_CONDITION"></field>
                       <value name="OID0">
                         <shadow type="field_oid" id="YsT+nA]{v]#J29U.hZUS">
                           <field name="oid">0_userdata.0.Garagentorzustand</field>
                         </shadow>
                       </value>
                       <statement name="STATEMENT">
                         <block type="controls_if" id="!Qou#^}GVJ)nO1JDtv6f">
                           <value name="IF0">
                             <block type="logic_operation" id="jk+qP_@[!lWH#EsHyQ0=" inline="false">
                               <field name="OP">AND</field>
                               <value name="A">
                                 <block type="logic_compare" id="Lh/8bw/`.HRs:4h;h({y">
                                   <field name="OP">EQ</field>
                                   <value name="A">
                                     <block type="get_value" id="$x:WE/CX-,05-N$`QWVe">
                                       <field name="ATTR">val</field>
                                       <field name="OID">0_userdata.0.Garagentorzustand</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="text" id="lFeSLIiYCZTNl|OZ9m-.">
                                       <field name="TEXT">fahren</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="logic_compare" id="fa8omyX$:g)/^^?`+_xY">
                                   <field name="OP">LT</field>
                                   <value name="A">
                                     <block type="get_value" id="^Xkf-4(778:~F%5P]gu{">
                                       <field name="ATTR">val</field>
                                       <field name="OID">hm-rpc.1.00181BE9946BC5.1.ILLUMINATION</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="math_number" id="}-#:hYM=ut7liK_{*1Z,">
                                       <field name="NUM">100</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <statement name="DO0">
                             <block type="control" id="m47jZWGEnoa;iwmq(]Tl">
                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                               <field name="OID">wled.0.fcb467c88924.on</field>
                               <field name="WITH_DELAY">FALSE</field>
                               <value name="VALUE">
                                 <block type="logic_boolean" id="0U==DEe;{Zh!{4[*}wY(">
                                   <field name="BOOL">TRUE</field>
                                 </block>
                               </value>
                               <next>
                                 <block type="comment" id="WK`i6Yez7laz%]}EG8D8">
                                   <field name="COMMENT">Rot</field>
                                   <next>
                                     <block type="control" id="xRxX[3--A5EtO@h^4vv5">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">wled.0.fcb467c88924.ps</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <comment pinned="false" h="80" w="160">Farbe: weiß</comment>
                                       <value name="VALUE">
                                         <block type="math_number" id="f#u%4:p:^Kk6*ci%T9y}">
                                           <field name="NUM">1</field>
                                         </block>
                                       </value>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                           </statement>
                           <next>
                             <block type="controls_if" id="9?=0JOo},/O+vIO!2?_j">
                               <value name="IF0">
                                 <block type="logic_operation" id="1!DKi%0RMLxNX5s-SgZz" inline="false">
                                   <field name="OP">AND</field>
                                   <value name="A">
                                     <block type="logic_compare" id="R2s;UBhl0]fW58/,zn%J">
                                       <field name="OP">EQ</field>
                                       <value name="A">
                                         <block type="get_value" id="OSTzsVh/B?L;0WBC:y;R">
                                           <field name="ATTR">val</field>
                                           <field name="OID">0_userdata.0.Garagentorzustand</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="text" id="@s-9+WizCBT`+ixN|6J%">
                                           <field name="TEXT">offen</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="logic_compare" id=":8DS=oC`=uGY@EJkv6ux">
                                       <field name="OP">LT</field>
                                       <value name="A">
                                         <block type="get_value" id="hKQ-,tr:4mfO4_1lp+}S">
                                           <field name="ATTR">val</field>
                                           <field name="OID">hm-rpc.1.00181BE9946BC5.1.ILLUMINATION</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="math_number" id="afQe@r!R$ak_$*zr+(W.">
                                           <field name="NUM">100</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <statement name="DO0">
                                 <block type="comment" id=".cNRNoO*|OAnQMkBGB)*">
                                   <field name="COMMENT">Grün</field>
                                   <next>
                                     <block type="control" id="bcW2`8yAA@uE[wYIihyt">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">wled.0.fcb467c88924.ps</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <comment pinned="false" h="80" w="160">Farbe: weiß</comment>
                                       <value name="VALUE">
                                         <block type="math_number" id="|^kd%Zyls%y#^?~._U!z">
                                           <field name="NUM">2</field>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="comment" id="Zr7tX[c+9?vOZ.yqgOzf">
                                           <field name="COMMENT">Weiß</field>
                                           <next>
                                             <block type="control" id="DS)Y:u/P}zi//p)=^`?[">
                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                               <field name="OID">wled.0.fcb467c88924.ps</field>
                                               <field name="WITH_DELAY">TRUE</field>
                                               <field name="DELAY_MS">3</field>
                                               <field name="UNIT">sec</field>
                                               <field name="CLEAR_RUNNING">FALSE</field>
                                               <comment pinned="false" h="80" w="160">Farbe: weiß</comment>
                                               <value name="VALUE">
                                                 <block type="math_number" id="XsBfW++=a1$[FR{~UTwh">
                                                   <field name="NUM">3</field>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="comment" id="a+q-%~D-LAg_XfBg5#s)">
                                                   <field name="COMMENT">Weiß Spots</field>
                                                   <next>
                                                     <block type="control" id="G^)k]8evkm/M^o0z6B^H">
                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                       <field name="OID">wled.0.fcb467c88924.ps</field>
                                                       <field name="WITH_DELAY">TRUE</field>
                                                       <field name="DELAY_MS">6</field>
                                                       <field name="UNIT">sec</field>
                                                       <field name="CLEAR_RUNNING">FALSE</field>
                                                       <comment pinned="false" h="80" w="160">Farbe: weiß</comment>
                                                       <value name="VALUE">
                                                         <block type="math_number" id="jj.FcW?sX2}+d_S17-JG">
                                                           <field name="NUM">4</field>
                                                         </block>
                                                       </value>
                                                       <next>
                                                         <block type="control" id="Ckt.}edlOXN%[pfX{K+L">
                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                           <field name="OID">wled.0.fcb467c88924.on</field>
                                                           <field name="WITH_DELAY">TRUE</field>
                                                           <field name="DELAY_MS">20</field>
                                                           <field name="UNIT">sec</field>
                                                           <field name="CLEAR_RUNNING">FALSE</field>
                                                           <value name="VALUE">
                                                             <block type="logic_boolean" id="EXbez{j1{xo*,^kZ0C=^">
                                                               <field name="BOOL">FALSE</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                               <next>
                                 <block type="controls_if" id="#w2XtU=+[fF%/U@k-,.d">
                                   <value name="IF0">
                                     <block type="logic_operation" id="AE+--vX4@#t`Wl#^ZBTg" inline="false">
                                       <field name="OP">AND</field>
                                       <value name="A">
                                         <block type="logic_compare" id="VG9r|GSnYRi[:o_jB~+V">
                                           <field name="OP">EQ</field>
                                           <value name="A">
                                             <block type="get_value" id="P{*}t3;=nG-kn9|QD-3J">
                                               <field name="ATTR">val</field>
                                               <field name="OID">0_userdata.0.Garagentorzustand</field>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <block type="text" id="HYTk]1O#ZbNj8d);Ud9Q">
                                               <field name="TEXT">geschlossen</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="logic_compare" id="3uBn3(eB780?dbW=J1sa">
                                           <field name="OP">LT</field>
                                           <value name="A">
                                             <block type="get_value" id="wV(HKNBK`;p=}O]Id7yt">
                                               <field name="ATTR">val</field>
                                               <field name="OID">hm-rpc.1.00181BE9946BC5.1.ILLUMINATION</field>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <block type="math_number" id="}DoDyM?f0vG3|sh^l*.e">
                                               <field name="NUM">100</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <statement name="DO0">
                                     <block type="comment" id="2DXlRQA!LH5v?v4fZdO(">
                                       <field name="COMMENT">Grün</field>
                                       <next>
                                         <block type="control" id="-/oBs[h-0g2}g0liXgGJ">
                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                           <field name="OID">wled.0.fcb467c88924.ps</field>
                                           <field name="WITH_DELAY">FALSE</field>
                                           <comment pinned="false" h="80" w="160">Farbe: weiß</comment>
                                           <value name="VALUE">
                                             <block type="math_number" id="2DgM3?]}%T^ILwz6r9`+">
                                               <field name="NUM">2</field>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="comment" id="QjEKj%j#6)]ynZPJ[Mp~">
                                               <field name="COMMENT">Weiß</field>
                                               <next>
                                                 <block type="control" id="ns9A[v|DyU]vESyX3Lmg">
                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                   <field name="OID">wled.0.fcb467c88924.ps</field>
                                                   <field name="WITH_DELAY">TRUE</field>
                                                   <field name="DELAY_MS">3</field>
                                                   <field name="UNIT">sec</field>
                                                   <field name="CLEAR_RUNNING">FALSE</field>
                                                   <comment pinned="false" h="80" w="160">Farbe: weiß</comment>
                                                   <value name="VALUE">
                                                     <block type="math_number" id=",U,;e+[Vazg5rzd:CjSg">
                                                       <field name="NUM">3</field>
                                                     </block>
                                                   </value>
                                                   <next>
                                                     <block type="comment" id="4`1,nd!?rDaG}M]Rm1^j">
                                                       <field name="COMMENT">Weiß Spots</field>
                                                       <next>
                                                         <block type="control" id="}AW):LqtQ#$[w-SJA2^0">
                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                           <field name="OID">wled.0.fcb467c88924.ps</field>
                                                           <field name="WITH_DELAY">TRUE</field>
                                                           <field name="DELAY_MS">6</field>
                                                           <field name="UNIT">sec</field>
                                                           <field name="CLEAR_RUNNING">FALSE</field>
                                                           <comment pinned="false" h="80" w="160">Farbe: weiß</comment>
                                                           <value name="VALUE">
                                                             <block type="math_number" id="BXe^4^;_M6@2[*4+)_$N">
                                                               <field name="NUM">4</field>
                                                             </block>
                                                           </value>
                                                           <next>
                                                             <block type="control" id="L!~i[I{N[*?PlY.-M:p]">
                                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                               <field name="OID">wled.0.fcb467c88924.on</field>
                                                               <field name="WITH_DELAY">TRUE</field>
                                                               <field name="DELAY_MS">20</field>
                                                               <field name="UNIT">sec</field>
                                                               <field name="CLEAR_RUNNING">FALSE</field>
                                                               <value name="VALUE">
                                                                 <block type="logic_boolean" id="AO)0r`5z9)G~:k3WYwxv">
                                                                   <field name="BOOL">FALSE</field>
                                                                 </block>
                                                               </value>
                                                             </block>
                                                           </next>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </statement>
                                 </block>
                               </next>
                             </block>
                           </next>
                         </block>
                       </statement>
                     </block>
                   </next>
                 </block>
                </xml>
                

                Bei deinem blockly:

                1. Drei mal der selbe triggern macht man nicht.
                2. Wie wird das wled ausgeschaltet? Wenn du wled benutzt gibt es doch einen true/ false datenpunkt (z.b. mit cod-m)
                3. Isopen sind das kontaktschalter? Wo sitzen diese?
                M 1 Reply Last reply Reply Quote 0
                • M
                  MR.SCHIEFER @jwerlsdf last edited by

                  @jwerlsdf wie gesagt ich bin ganz neu in der Materie !
                  Inzwischen habe ich alles geändert. Die Wled schaltet sich jetzt nach vorgegebener Zeit über Presets ab. ich wollte aber gern den Zustand, "Tor weder Offen noch geschlossen" (falls man es mal halb offen lässt) Nach zeit XX abschalten lassen. Das hab ich jedoch noch nicht hinbekommen.
                  Die Kontakte (Zigbee) sind jeweils einmal bei geöffnet und einmal bei geschlossen.

                  J paul53 2 Replies Last reply Reply Quote 0
                  • J
                    jwerlsdf @MR.SCHIEFER last edited by jwerlsdf

                    @mr-schiefer
                    Wenn das Garagentor halb offen ist sind beide kontaktschalter auf true ODER false (je nachdem welche kontaktschalter du wie verbaut hast.)
                    Prüfe also auf diese Bedingung.
                    Wenn beide auf false bzw true sind, lass einen Timer laufen. Wenn dein Garagentor z.b 10 Sekunden braucht zum fahren, dann würde ich den timer auf 20 Sekunden zum Beispiel stellen. Wenn dann einer der Datenpunkt der kontaktschalter sich nicht geändert hat, dann wurde das garagentor angehalten.

                    1 Reply Last reply Reply Quote 0
                    • paul53
                      paul53 @MR.SCHIEFER last edited by paul53

                      @mr-schiefer sagte: Zustand, "Tor weder Offen noch geschlossen" (falls man es mal halb offen lässt)

                      Prinzip:

                      Blockly_temp.JPG

                      Der Timeout sollte etwas länger sein, als die Laufzeit des Tores. Verzögerungen innerhalb der Aktionen sollten immer kürzer sein, als die Laufzeit.

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

                      Support us

                      ioBroker
                      Community Adapters
                      Donate

                      876
                      Online

                      32.4k
                      Users

                      81.3k
                      Topics

                      1.3m
                      Posts

                      4
                      9
                      183
                      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