Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

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

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Tester
  4. [WLED] LED streifen (WS2812B,WS2811,SK6812,APA102) bedienen

NEWS

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

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    2.0k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    15
    1
    2.6k

[WLED] LED streifen (WS2812B,WS2811,SK6812,APA102) bedienen

Geplant Angeheftet Gesperrt Verschoben Tester
adapateradapterneu hiertesttestentesterwled
655 Beiträge 73 Kommentatoren 175.7k Aufrufe 78 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • V Vocaris

    Hallo zusammen,
    ich verzweifele, weil ich bei meiner Garagenfahrt den Fehler nicht finde.
    Ich nutze als Schaltpunkte 2 Xiaomi Fensterkontakte.
    Ist das Tor unten ist der untere Kontakt zu/(False) und der obere Kontakt offen/(True)
    Die Steuerung des WLED habe ich diesmal nicht mit Presets gemacht sondern ich steuere die Effekte direkt im Script an.
    Beim Rauffahren passt alles. Nur beim Runterfahren beginnt er mit dem roten Laufband. Aber nach kurzer Zeit springt er in das weiße Laufband gefolgt von den Spots. Wenn das Tor dann unten ist, geht das WLED aus.
    Ich verstehe null, warum er unterwegs springt. Die Kontakte geben unterwegs auch keine Zwischenstand ab (true/false). Zudem verstehe ich nicht warum er in der Routine direkt zum weiß springt. Wenn doch was wäre, müsste er doch auch das grün noch anzeigen...
    Ich packe Euch mal das Blockly rein. Ggf. findet einer von Euch das Problem.


    49e44df1-2fcb-43c2-adc8-fe7b0bb6aeb3-image.png

    
    Ausgewählte Blöcke exportieren
    <xml xmlns="https://developers.google.com/blockly/xml">
      <block type="on_ext" id="c9_Lh@FHI;poTY]d1N5m" x="-162" y="-212">
        <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="WjOXLVJGy[6y?6hjV-Mz">
            <field name="oid">deconz.0.sensors.00158d0003969b2a.open</field>
          </shadow>
        </value>
        <value name="OID1">
          <shadow type="field_oid" id="b9@2=+{!5/#107[ssnL{">
            <field name="oid">deconz.0.sensors.00158d00040ad900.open</field>
          </shadow>
        </value>
        <statement name="STATEMENT">
          <block type="control" id=",5Th~j85zjEul[hjL6f]">
            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
            <field name="OID">wled.0.e09806861c93.seg.0.bri</field>
            <field name="WITH_DELAY">FALSE</field>
            <value name="VALUE">
              <block type="math_number" id="GaLez8j=$O]s[C2aM3UO">
                <field name="NUM">255</field>
              </block>
            </value>
            <next>
              <block type="comment" id="[tb7whrZ%L^DL|QK]*qs">
                <field name="COMMENT">Wenn sich das Tor bewegt, dann Lauflicht</field>
                <next>
                  <block type="controls_if" id="m^?.SDbC2hIAR|TSjBzD">
                    <value name="IF0">
                      <block type="logic_operation" id="%t?qGdKFJ,ok/p*!,WwA">
                        <field name="OP">AND</field>
                        <value name="A">
                          <block type="logic_compare" id="Tbg:GyG|U6WplQ!Vgt+K">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="get_value" id="UX%w2t;J{j+0Jg-Ndirh">
                                <field name="ATTR">val</field>
                                <field name="OID">deconz.0.sensors.00158d0003969b2a.open</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_boolean" id="9a2JO(|gnd#[gBd-u6qy">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_compare" id="cp}mtqpA*_:,/8k6Q(Mu">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="get_value" id="BT8Q_UV5=B2RR%#(aVei">
                                <field name="ATTR">val</field>
                                <field name="OID">deconz.0.sensors.00158d00040ad900.open</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_boolean" id="[^qB;PA6r`dYn0LRx2nk">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="control" id="0FN@=:9[V:VMV(3q@]V8">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">wled.0.e09806861c93.seg.0.col.0_HEX</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="colour_picker" id="~QqI`tU=2(JzdsOwJ?e]">
                            <field name="COLOUR">#ff0000</field>
                          </block>
                        </value>
                        <next>
                          <block type="control" id="aNsgLKWr8d3d2pp:U$LX">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">wled.0.e09806861c93.seg.0.sx</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="math_number" id="-|6`nbA6_~]_e:=S)HCX">
                                <field name="NUM">130</field>
                              </block>
                            </value>
                            <next>
                              <block type="control" id="TonY@DG~?)S+7x30]Dyr">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">wled.0.e09806861c93.seg.0.fx</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="math_number" id="87RX20#eqAcjTAE_HP^$">
                                    <field name="NUM">60</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="control" id="tACF}f9#YI%kb)_^~#tK">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">wled.0.e09806861c93.seg.0.ix</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="3)?eMSV_T6rr8vPxLDM`">
                                        <field name="NUM">240</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="comment" id="aDkbK}LE=t[LT/fD)jg1">
                                        <field name="COMMENT">Sollte das WLED aus sein, dann mach es an</field>
                                        <next>
                                          <block type="controls_if" id="N1N[)/BO`pF[czQ93kCV">
                                            <value name="IF0">
                                              <block type="logic_compare" id="[bkQ6s.C~/t:(654{#zS">
                                                <field name="OP">EQ</field>
                                                <value name="A">
                                                  <block type="get_value" id="v#2OQsxo+_^wXxh90J#W">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">wled.0.e09806861c93.on</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_boolean" id="M%LNwyQa[pbyTaJ$)-}M">
                                                    <field name="BOOL">FALSE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="DO0">
                                              <block type="control" id="dq7,xCgtU:6,mwQ159$Z">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">wled.0.e09806861c93.on</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="logic_boolean" id=",f0aP;aZkZU=OfR-YPNv">
                                                    <field name="BOOL">TRUE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </statement>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <next>
                      <block type="controls_if" id="-KCO)lpJDbWg@FqxvldF">
                        <value name="IF0">
                          <block type="logic_operation" id="Ks1oQ~u3LtKuk@d_._V-">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="logic_compare" id="OkHl^O+G]YUc]1!TiL1:">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="`o2b[:4=mOqBqEW`tr8K">
                                    <field name="ATTR">val</field>
                                    <field name="OID">deconz.0.sensors.00158d00040ad900.open</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="5FS}cXZ#Z_tEMiV]2MrL">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_compare" id="`j}wR;eN-L9JoJf`@c=G">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="~DI|e!um-.q{Yvl[x5{m">
                                    <field name="ATTR">val</field>
                                    <field name="OID">deconz.0.sensors.00158d0003969b2a.open</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="V[Ju#.K=KRJ:n2!0;UbU">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="comment" id="SYcsb!wFDuFU!%|q,UE[">
                            <field name="COMMENT">Wenn Garage zu, dann mach das WLED aus</field>
                            <next>
                              <block type="controls_if" id="hEuj~tM++bk7tuxOE4`J">
                                <value name="IF0">
                                  <block type="logic_compare" id="|*4Gi=j)vOeg%.eT4g*{">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id="i!7zoUbBe#R`D8wx{ADh">
                                        <field name="ATTR">val</field>
                                        <field name="OID">wled.0.e09806861c93.on</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="e8-jE)XaO,t]HR@$7A2?">
                                        <field name="BOOL">TRUE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="control" id="[a2x/8K;xOkD.afIs/p7">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">wled.0.e09806861c93.on</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="logic_boolean" id="LBtJv6l#u=;`Gk-W3[Z.">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                              </block>
                            </next>
                          </block>
                        </statement>
                        <next>
                          <block type="controls_if" id="+mA^40o}yz6AO:6KZjiD">
                            <value name="IF0">
                              <block type="logic_operation" id="TohssJa+VdIz{!m^{]kU">
                                <field name="OP">AND</field>
                                <value name="A">
                                  <block type="logic_compare" id="k|ZhxV9B7c/-C{DAAVS@">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id="kT|*c=akL2eL||OIUG*w">
                                        <field name="ATTR">val</field>
                                        <field name="OID">deconz.0.sensors.00158d00040ad900.open</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="!6V-Ur2|XYJ)lDH,iqEN">
                                        <field name="BOOL">TRUE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_compare" id="p!zr(eZdSfk4`72It|y-">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id="f~{S:rR*qrh2Q1)4._Dp">
                                        <field name="ATTR">val</field>
                                        <field name="OID">deconz.0.sensors.00158d0003969b2a.open</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="~+Ie.K%@;TZ9.*Jqz0uk">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="comment" id="}P@0+qGZd#8!c=9opW38">
                                <field name="COMMENT">Wenn Garage auf, dann schalte auf grün</field>
                                <next>
                                  <block type="control" id="f_I;.`nF_*Y,keUX-sX2">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">wled.0.e09806861c93.seg.0.col.0_HEX</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="colour_picker" id="7!?#)Qh||Ds,HgKqFs7.">
                                        <field name="COLOUR">#33ff33</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="control" id="M:I/},FhH-}xYMoza$sw">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">wled.0.e09806861c93.seg.0.fx</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="math_number" id="%tl!Tr|Y}JyWb_2B5Lu%">
                                            <field name="NUM">0</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="controls_if" id="cXTc:dK~jiqnXPOW{mXe">
                                            <value name="IF0">
                                              <block type="logic_compare" id="$8FWvHL`ALzdAf])Sp5R">
                                                <field name="OP">EQ</field>
                                                <value name="A">
                                                  <block type="get_value" id="gKAu^oX|@A^ZLjkb=wf.">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">wled.0.e09806861c93.on</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_boolean" id="oBTm=X1%@]k-wcC(bsQj">
                                                    <field name="BOOL">FALSE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="DO0">
                                              <block type="control" id="$P~8xhYnUtR{;bD8_w5$">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">wled.0.e09806861c93.on</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="logic_boolean" id="NE[;nD[Uf^TBp.@s6:sS">
                                                    <field name="BOOL">TRUE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </statement>
                                            <next>
                                              <block type="timeouts_wait" id="GCb`Y8H!?N^rLk~@KVuo">
                                                <field name="DELAY">3</field>
                                                <field name="UNIT">sec</field>
                                                <next>
                                                  <block type="comment" id="xvpqfqlXEL8js:W~%`Zf">
                                                    <field name="COMMENT">Nach drei Sek. grün schalten auf weißes Lauflicht</field>
                                                    <next>
                                                      <block type="control" id="viL)Yw+_JR78%{Ei(L6u">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                        <field name="OID">wled.0.e09806861c93.seg.0.col.0_HEX</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="colour_picker" id="QZM|eLB0U9tqK7`|{nfX">
                                                            <field name="COLOUR">#ffffff</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="control" id="r=Y#M}%^7:Qd$Uq?(I`=">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                            <field name="OID">wled.0.e09806861c93.seg.0.ix</field>
                                                            <field name="WITH_DELAY">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="math_number" id="@lH3HROapgMKw/C]d3nQ">
                                                                <field name="NUM">215</field>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="control" id="E7G*)C[COUSr?l4YMU14">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                <field name="OID">wled.0.e09806861c93.seg.0.fx</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="math_number" id="UWfddRq)6DVMs7a,k.)N">
                                                                    <field name="NUM">60</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="controls_if" id="j+go^vPn.];!D?,0t.nN">
                                                                    <value name="IF0">
                                                                      <block type="logic_compare" id="eNp0nwk8dLEJgjVSqY0;">
                                                                        <field name="OP">EQ</field>
                                                                        <value name="A">
                                                                          <block type="get_value" id="mGs9h@4yCa],U|K/t7o}">
                                                                            <field name="ATTR">val</field>
                                                                            <field name="OID">wled.0.e09806861c93.on</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <block type="logic_boolean" id="Zcf_I}vE~?)O;;E8|/am">
                                                                            <field name="BOOL">FALSE</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <statement name="DO0">
                                                                      <block type="control" id="/%bg?bqlRPQf0bsYuvMW">
                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                        <field name="OID">wled.0.e09806861c93.on</field>
                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                        <value name="VALUE">
                                                                          <block type="logic_boolean" id="LVDUgEhXX.[Q^/D1FA9G">
                                                                            <field name="BOOL">TRUE</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </statement>
                                                                    <next>
                                                                      <block type="timeouts_wait" id="V_w:J!6QHz~s.Mov.wrw">
                                                                        <field name="DELAY">3000</field>
                                                                        <field name="UNIT">ms</field>
                                                                        <next>
                                                                          <block type="comment" id="@)k^BTvK9OBJR-CAqJ^w">
                                                                            <field name="COMMENT">Schalte dann auf die Spots</field>
                                                                            <next>
                                                                              <block type="control" id="i[/$u*#{wd/C%bNO,xt6">
                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                <field name="OID">wled.0.e09806861c93.on</field>
                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                <value name="VALUE">
                                                                                  <block type="logic_boolean" id="}g!.2eE4p5q@|6B9{~f_">
                                                                                    <field name="BOOL">TRUE</field>
                                                                                  </block>
                                                                                </value>
                                                                                <next>
                                                                                  <block type="control" id="C{f1HunIEv3FS^)|U5Vp">
                                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                    <field name="OID">wled.0.e09806861c93.seg.0.fx</field>
                                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                                    <value name="VALUE">
                                                                                      <block type="math_number" id="(@P--X?MknBg=lGfIxDO">
                                                                                        <field name="NUM">85</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <next>
                                                                                      <block type="control" id="c%,?0B:5N=`7R=2AiTRo">
                                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                        <field name="OID">wled.0.e09806861c93.seg.0.ix</field>
                                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                                        <value name="VALUE">
                                                                                          <block type="math_number" id="^%dqsT:Z@-$K#Y^va5{2">
                                                                                            <field name="NUM">45</field>
                                                                                          </block>
                                                                                        </value>
                                                                                        <next>
                                                                                          <block type="controls_if" id="%0FB5~Ed`A.=M{5q~u-|">
                                                                                            <value name="IF0">
                                                                                              <block type="logic_compare" id="a9YV9!:f;_$Ba`i/()4P">
                                                                                                <field name="OP">EQ</field>
                                                                                                <value name="A">
                                                                                                  <block type="get_value" id="g60u=H1WwrXni9~A+c8F">
                                                                                                    <field name="ATTR">val</field>
                                                                                                    <field name="OID">wled.0.e09806861c93.on</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                                <value name="B">
                                                                                                  <block type="logic_boolean" id="BB4OdZOGc_-J:fP@g!A^">
                                                                                                    <field name="BOOL">FALSE</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                              </block>
                                                                                            </value>
                                                                                            <statement name="DO0">
                                                                                              <block type="control" id="#G?:^DAAcmcO,-FtUC-B">
                                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                <field name="OID">wled.0.e09806861c93.on</field>
                                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                                <value name="VALUE">
                                                                                                  <block type="logic_boolean" id=")IL(AVk)[[^_l@?FO|]X">
                                                                                                    <field name="BOOL">TRUE</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                              </block>
                                                                                            </statement>
                                                                                          </block>
                                                                                        </next>
                                                                                      </block>
                                                                                    </next>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
      </block>
      <block type="timeouts_wait" id="R43lb1vG!PcSenMjz)O+" x="362" y="1363">
        <field name="DELAY">1100</field>
        <field name="UNIT">ms</field>
      </block>
      <block type="control" id="DYLdpWUdRQ[J%U-4dxx#" x="237" y="1438">
        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
        <field name="OID">wled.0.e09806861c93.on</field>
        <field name="WITH_DELAY">FALSE</field>
        <value name="VALUE">
          <block type="logic_boolean" id="lM6Q)sdGdY|DeFXzV_6]">
            <field name="BOOL">FALSE</field>
          </block>
        </value>
      </block>
    </xml>
    <xml xmlns="https://developers.google.com/blockly/xml">
      <block type="on_ext" id="c9_Lh@FHI;poTY]d1N5m" x="-162" y="-212">
        <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="WjOXLVJGy[6y?6hjV-Mz">
            <field name="oid">deconz.0.sensors.00158d0003969b2a.open</field>
          </shadow>
        </value>
        <value name="OID1">
          <shadow type="field_oid" id="b9@2=+{!5/#107[ssnL{">
            <field name="oid">deconz.0.sensors.00158d00040ad900.open</field>
          </shadow>
        </value>
        <statement name="STATEMENT">
          <block type="control" id=",5Th~j85zjEul[hjL6f]">
            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
            <field name="OID">wled.0.e09806861c93.seg.0.bri</field>
            <field name="WITH_DELAY">FALSE</field>
            <value name="VALUE">
              <block type="math_number" id="GaLez8j=$O]s[C2aM3UO">
                <field name="NUM">255</field>
              </block>
            </value>
            <next>
              <block type="comment" id="[tb7whrZ%L^DL|QK]*qs">
                <field name="COMMENT">Wenn sich das Tor bewegt, dann Lauflicht</field>
                <next>
                  <block type="controls_if" id="m^?.SDbC2hIAR|TSjBzD">
                    <value name="IF0">
                      <block type="logic_operation" id="%t?qGdKFJ,ok/p*!,WwA">
                        <field name="OP">AND</field>
                        <value name="A">
                          <block type="logic_compare" id="Tbg:GyG|U6WplQ!Vgt+K">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="get_value" id="UX%w2t;J{j+0Jg-Ndirh">
                                <field name="ATTR">val</field>
                                <field name="OID">deconz.0.sensors.00158d0003969b2a.open</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_boolean" id="9a2JO(|gnd#[gBd-u6qy">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_compare" id="cp}mtqpA*_:,/8k6Q(Mu">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="get_value" id="BT8Q_UV5=B2RR%#(aVei">
                                <field name="ATTR">val</field>
                                <field name="OID">deconz.0.sensors.00158d00040ad900.open</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_boolean" id="[^qB;PA6r`dYn0LRx2nk">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="control" id="0FN@=:9[V:VMV(3q@]V8">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">wled.0.e09806861c93.seg.0.col.0_HEX</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="colour_picker" id="~QqI`tU=2(JzdsOwJ?e]">
                            <field name="COLOUR">#ff0000</field>
                          </block>
                        </value>
                        <next>
                          <block type="control" id="aNsgLKWr8d3d2pp:U$LX">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">wled.0.e09806861c93.seg.0.sx</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="math_number" id="-|6`nbA6_~]_e:=S)HCX">
                                <field name="NUM">130</field>
                              </block>
                            </value>
                            <next>
                              <block type="control" id="TonY@DG~?)S+7x30]Dyr">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">wled.0.e09806861c93.seg.0.fx</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="math_number" id="87RX20#eqAcjTAE_HP^$">
                                    <field name="NUM">60</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="control" id="tACF}f9#YI%kb)_^~#tK">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">wled.0.e09806861c93.seg.0.ix</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="3)?eMSV_T6rr8vPxLDM`">
                                        <field name="NUM">240</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="comment" id="aDkbK}LE=t[LT/fD)jg1">
                                        <field name="COMMENT">Sollte das WLED aus sein, dann mach es an</field>
                                        <next>
                                          <block type="controls_if" id="N1N[)/BO`pF[czQ93kCV">
                                            <value name="IF0">
                                              <block type="logic_compare" id="[bkQ6s.C~/t:(654{#zS">
                                                <field name="OP">EQ</field>
                                                <value name="A">
                                                  <block type="get_value" id="v#2OQsxo+_^wXxh90J#W">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">wled.0.e09806861c93.on</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_boolean" id="M%LNwyQa[pbyTaJ$)-}M">
                                                    <field name="BOOL">FALSE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="DO0">
                                              <block type="control" id="dq7,xCgtU:6,mwQ159$Z">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">wled.0.e09806861c93.on</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="logic_boolean" id=",f0aP;aZkZU=OfR-YPNv">
                                                    <field name="BOOL">TRUE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </statement>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <next>
                      <block type="controls_if" id="-KCO)lpJDbWg@FqxvldF">
                        <value name="IF0">
                          <block type="logic_operation" id="Ks1oQ~u3LtKuk@d_._V-">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="logic_compare" id="OkHl^O+G]YUc]1!TiL1:">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="`o2b[:4=mOqBqEW`tr8K">
                                    <field name="ATTR">val</field>
                                    <field name="OID">deconz.0.sensors.00158d00040ad900.open</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="5FS}cXZ#Z_tEMiV]2MrL">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_compare" id="`j}wR;eN-L9JoJf`@c=G">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="~DI|e!um-.q{Yvl[x5{m">
                                    <field name="ATTR">val</field>
                                    <field name="OID">deconz.0.sensors.00158d0003969b2a.open</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="V[Ju#.K=KRJ:n2!0;UbU">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="comment" id="SYcsb!wFDuFU!%|q,UE[">
                            <field name="COMMENT">Wenn Garage zu, dann mach das WLED aus</field>
                            <next>
                              <block type="controls_if" id="hEuj~tM++bk7tuxOE4`J">
                                <value name="IF0">
                                  <block type="logic_compare" id="|*4Gi=j)vOeg%.eT4g*{">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id="i!7zoUbBe#R`D8wx{ADh">
                                        <field name="ATTR">val</field>
                                        <field name="OID">wled.0.e09806861c93.on</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="e8-jE)XaO,t]HR@$7A2?">
                                        <field name="BOOL">TRUE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="control" id="[a2x/8K;xOkD.afIs/p7">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">wled.0.e09806861c93.on</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="logic_boolean" id="LBtJv6l#u=;`Gk-W3[Z.">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                              </block>
                            </next>
                          </block>
                        </statement>
                        <next>
                          <block type="controls_if" id="+mA^40o}yz6AO:6KZjiD">
                            <value name="IF0">
                              <block type="logic_operation" id="TohssJa+VdIz{!m^{]kU">
                                <field name="OP">AND</field>
                                <value name="A">
                                  <block type="logic_compare" id="k|ZhxV9B7c/-C{DAAVS@">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id="kT|*c=akL2eL||OIUG*w">
                                        <field name="ATTR">val</field>
                                        <field name="OID">deconz.0.sensors.00158d00040ad900.open</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="!6V-Ur2|XYJ)lDH,iqEN">
                                        <field name="BOOL">TRUE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_compare" id="p!zr(eZdSfk4`72It|y-">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id="f~{S:rR*qrh2Q1)4._Dp">
                                        <field name="ATTR">val</field>
                                        <field name="OID">deconz.0.sensors.00158d0003969b2a.open</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="~+Ie.K%@;TZ9.*Jqz0uk">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="comment" id="}P@0+qGZd#8!c=9opW38">
                                <field name="COMMENT">Wenn Garage auf, dann schalte auf grün</field>
                                <next>
                                  <block type="control" id="f_I;.`nF_*Y,keUX-sX2">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">wled.0.e09806861c93.seg.0.col.0_HEX</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="colour_picker" id="7!?#)Qh||Ds,HgKqFs7.">
                                        <field name="COLOUR">#33ff33</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="control" id="M:I/},FhH-}xYMoza$sw">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">wled.0.e09806861c93.seg.0.fx</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="math_number" id="%tl!Tr|Y}JyWb_2B5Lu%">
                                            <field name="NUM">0</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="controls_if" id="cXTc:dK~jiqnXPOW{mXe">
                                            <value name="IF0">
                                              <block type="logic_compare" id="$8FWvHL`ALzdAf])Sp5R">
                                                <field name="OP">EQ</field>
                                                <value name="A">
                                                  <block type="get_value" id="gKAu^oX|@A^ZLjkb=wf.">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">wled.0.e09806861c93.on</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_boolean" id="oBTm=X1%@]k-wcC(bsQj">
                                                    <field name="BOOL">FALSE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="DO0">
                                              <block type="control" id="$P~8xhYnUtR{;bD8_w5$">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">wled.0.e09806861c93.on</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="logic_boolean" id="NE[;nD[Uf^TBp.@s6:sS">
                                                    <field name="BOOL">TRUE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </statement>
                                            <next>
                                              <block type="timeouts_wait" id="GCb`Y8H!?N^rLk~@KVuo">
                                                <field name="DELAY">3</field>
                                                <field name="UNIT">sec</field>
                                                <next>
                                                  <block type="comment" id="xvpqfqlXEL8js:W~%`Zf">
                                                    <field name="COMMENT">Nach drei Sek. grün schalten auf weißes Lauflicht</field>
                                                    <next>
                                                      <block type="control" id="viL)Yw+_JR78%{Ei(L6u">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                        <field name="OID">wled.0.e09806861c93.seg.0.col.0_HEX</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="colour_picker" id="QZM|eLB0U9tqK7`|{nfX">
                                                            <field name="COLOUR">#ffffff</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="control" id="r=Y#M}%^7:Qd$Uq?(I`=">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                            <field name="OID">wled.0.e09806861c93.seg.0.ix</field>
                                                            <field name="WITH_DELAY">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="math_number" id="@lH3HROapgMKw/C]d3nQ">
                                                                <field name="NUM">215</field>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="control" id="E7G*)C[COUSr?l4YMU14">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                <field name="OID">wled.0.e09806861c93.seg.0.fx</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="math_number" id="UWfddRq)6DVMs7a,k.)N">
                                                                    <field name="NUM">60</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="controls_if" id="j+go^vPn.];!D?,0t.nN">
                                                                    <value name="IF0">
                                                                      <block type="logic_compare" id="eNp0nwk8dLEJgjVSqY0;">
                                                                        <field name="OP">EQ</field>
                                                                        <value name="A">
                                                                          <block type="get_value" id="mGs9h@4yCa],U|K/t7o}">
                                                                            <field name="ATTR">val</field>
                                                                            <field name="OID">wled.0.e09806861c93.on</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <block type="logic_boolean" id="Zcf_I}vE~?)O;;E8|/am">
                                                                            <field name="BOOL">FALSE</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <statement name="DO0">
                                                                      <block type="control" id="/%bg?bqlRPQf0bsYuvMW">
                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                        <field name="OID">wled.0.e09806861c93.on</field>
                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                        <value name="VALUE">
                                                                          <block type="logic_boolean" id="LVDUgEhXX.[Q^/D1FA9G">
                                                                            <field name="BOOL">TRUE</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </statement>
                                                                    <next>
                                                                      <block type="timeouts_wait" id="V_w:J!6QHz~s.Mov.wrw">
                                                                        <field name="DELAY">3000</field>
                                                                        <field name="UNIT">ms</field>
                                                                        <next>
                                                                          <block type="comment" id="@)k^BTvK9OBJR-CAqJ^w">
                                                                            <field name="COMMENT">Schalte dann auf die Spots</field>
                                                                            <next>
                                                                              <block type="control" id="i[/$u*#{wd/C%bNO,xt6">
                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                <field name="OID">wled.0.e09806861c93.on</field>
                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                <value name="VALUE">
                                                                                  <block type="logic_boolean" id="}g!.2eE4p5q@|6B9{~f_">
                                                                                    <field name="BOOL">TRUE</field>
                                                                                  </block>
                                                                                </value>
                                                                                <next>
                                                                                  <block type="control" id="C{f1HunIEv3FS^)|U5Vp">
                                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                    <field name="OID">wled.0.e09806861c93.seg.0.fx</field>
                                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                                    <value name="VALUE">
                                                                                      <block type="math_number" id="(@P--X?MknBg=lGfIxDO">
                                                                                        <field name="NUM">85</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <next>
                                                                                      <block type="control" id="c%,?0B:5N=`7R=2AiTRo">
                                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                        <field name="OID">wled.0.e09806861c93.seg.0.ix</field>
                                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                                        <value name="VALUE">
                                                                                          <block type="math_number" id="^%dqsT:Z@-$K#Y^va5{2">
                                                                                            <field name="NUM">45</field>
                                                                                          </block>
                                                                                        </value>
                                                                                        <next>
                                                                                          <block type="controls_if" id="%0FB5~Ed`A.=M{5q~u-|">
                                                                                            <value name="IF0">
                                                                                              <block type="logic_compare" id="a9YV9!:f;_$Ba`i/()4P">
                                                                                                <field name="OP">EQ</field>
                                                                                                <value name="A">
                                                                                                  <block type="get_value" id="g60u=H1WwrXni9~A+c8F">
                                                                                                    <field name="ATTR">val</field>
                                                                                                    <field name="OID">wled.0.e09806861c93.on</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                                <value name="B">
                                                                                                  <block type="logic_boolean" id="BB4OdZOGc_-J:fP@g!A^">
                                                                                                    <field name="BOOL">FALSE</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                              </block>
                                                                                            </value>
                                                                                            <statement name="DO0">
                                                                                              <block type="control" id="#G?:^DAAcmcO,-FtUC-B">
                                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                <field name="OID">wled.0.e09806861c93.on</field>
                                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                                <value name="VALUE">
                                                                                                  <block type="logic_boolean" id=")IL(AVk)[[^_l@?FO|]X">
                                                                                                    <field name="BOOL">TRUE</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                              </block>
                                                                                            </statement>
                                                                                          </block>
                                                                                        </next>
                                                                                      </block>
                                                                                    </next>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
      </block>
      <block type="timeouts_wait" id="R43lb1vG!PcSenMjz)O+" x="362" y="1363">
        <field name="DELAY">1100</field>
        <field name="UNIT">ms</field>
      </block>
      <block type="control" id="DYLdpWUdRQ[J%U-4dxx#" x="237" y="1438">
        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
        <field name="OID">wled.0.e09806861c93.on</field>
        <field name="WITH_DELAY">FALSE</field>
        <value name="VALUE">
          <block type="logic_boolean" id="lM6Q)sdGdY|DeFXzV_6]">
            <field name="BOOL">FALSE</field>
          </block>
        </value>
      </block>
    </xml>
    
    

    opossumO Offline
    opossumO Offline
    opossum
    schrieb am zuletzt editiert von
    #559

    Hallo, @vocaris,

    Du könntest in Dein Script nach jedem Schritt ein Debug output reintun.

    811f2cb3-4135-4f6c-a446-d1eab1316875-image.png .

    Dann kannst Du zumindest im Log sehen, was in Deinem Script wann passiert. Ich würde insbesondere die beiden Fensterkontakte mit Ihren Änderungen überwachen.

    Wenn Du die beiden Kontakte benutzt, um einen eigenen Datenpunkt zu füllen mit z.B. Tor_auf, Tor_zu und Tor_fährt, und Du dann diese Zustandsänderungen mitprotokollierst, kannst Du zumindest erst mal die Kontakte ausschließen.

    Das Steuerungsscript triggerst Du dann auf Deinen Datenpunkt.

    Ich mache das so:

    9bf2e76c-763b-4415-bad8-4ea2e367d303-image.png

    Vielleicht findest Du da etwas. Viel Erfolg.

    https://schlepper-petersdorf.jimdofree.com/

    V 1 Antwort Letzte Antwort
    0
    • opossumO opossum

      Hallo, @vocaris,

      Du könntest in Dein Script nach jedem Schritt ein Debug output reintun.

      811f2cb3-4135-4f6c-a446-d1eab1316875-image.png .

      Dann kannst Du zumindest im Log sehen, was in Deinem Script wann passiert. Ich würde insbesondere die beiden Fensterkontakte mit Ihren Änderungen überwachen.

      Wenn Du die beiden Kontakte benutzt, um einen eigenen Datenpunkt zu füllen mit z.B. Tor_auf, Tor_zu und Tor_fährt, und Du dann diese Zustandsänderungen mitprotokollierst, kannst Du zumindest erst mal die Kontakte ausschließen.

      Das Steuerungsscript triggerst Du dann auf Deinen Datenpunkt.

      Ich mache das so:

      9bf2e76c-763b-4415-bad8-4ea2e367d303-image.png

      Vielleicht findest Du da etwas. Viel Erfolg.

      V Offline
      V Offline
      Vocaris
      schrieb am zuletzt editiert von
      #560

      @opossum Danke. Mit dem Debug einsetzen kenne ich mich leider nicht aus. Als was man da tun muss, welchen Wert man nimmt etc.

      Klar mit einem Datenpunkt kann man es auch machen. Wäre halt noch ein Schritt und ein Scripte mehr.
      Abe selbst wenn sich beim Runterfahren die Kontakte (warum auch immer) ändern würden. Warum springt er dann nicht wenn zuerst zu dem grün. Wieso direkt zu dem weiß..

      Berges01B 1 Antwort Letzte Antwort
      0
      • V Vocaris

        @opossum Danke. Mit dem Debug einsetzen kenne ich mich leider nicht aus. Als was man da tun muss, welchen Wert man nimmt etc.

        Klar mit einem Datenpunkt kann man es auch machen. Wäre halt noch ein Schritt und ein Scripte mehr.
        Abe selbst wenn sich beim Runterfahren die Kontakte (warum auch immer) ändern würden. Warum springt er dann nicht wenn zuerst zu dem grün. Wieso direkt zu dem weiß..

        Berges01B Offline
        Berges01B Offline
        Berges01
        schrieb am zuletzt editiert von Berges01
        #561

        @vocaris

        Hallo vocaris

        Ich habe am Toor 2 Initiatoren also vergleichbar mit dir.
        Hier mein Blockly da ist Tag und Nacht wie auch Uhrzeiten berücksichtigt und auch eine Weihnachtsbeleuchtung.
        Ich mache es mit Preset.

        <xml xmlns="https://developers.google.com/blockly/xml">
          <variables>
            <variable type="cron" id="schedule1">schedule1</variable>
            <variable id="g;sVV^-s@hbkRnou(]]U">Weckzaehler</variable>
            <variable type="timeout" id="timeout">timeout</variable>
          </variables>
          <block type="on_ext" id="j@JF6W3$sYu)i6.~fU{P" x="87" y="-587">
            <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="|4t9:t3.OH1szD[hPRqr">
                <field name="oid">alias.0.EG-Garage.Tor.any_001</field>
              </shadow>
            </value>
            <value name="OID1">
              <shadow type="field_oid" id="@`X8.6(c=E7uR^Cq?er:">
                <field name="oid">alias.0.EG-Garage.Tor.any_002</field>
              </shadow>
            </value>
            <statement name="STATEMENT">
              <block type="controls_if" id="(FViH]c1OVm~2sa*e:VC">
                <value name="IF0">
                  <block type="logic_compare" id="W3$!+Sv?tMMFHBOf)fit">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="get_value" id="5_f0UuLehNnL1L(a8I?e">
                        <field name="ATTR">val</field>
                        <field name="OID">0_userdata.0.Datapoint.Zeiten_Daten.Nacht</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_boolean" id="M]j4h{ejpI9fy4Jjvh7-">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="debug" id="~B)XT}Wgp[nE2j/xbyZ^">
                    <field name="Severity">log</field>
                    <value name="TEXT">
                      <shadow type="text" id="hSJlSSNz|2yw}#tJu9da">
                        <field name="TEXT">Trigger</field>
                      </shadow>
                    </value>
                    <next>
                      <block type="comment" id="YH,moq}v`B;kLCo%pxu(">
                        <field name="COMMENT">Tor fährt</field>
                        <next>
                          <block type="controls_if" id="MYvPjNGt5F%n9H8h?jH)">
                            <value name="IF0">
                              <block type="logic_operation" id="J00aSf509fM0!5EeE^I)">
                                <field name="OP">AND</field>
                                <value name="A">
                                  <block type="logic_compare" id="L)G,oa=u+-j~1oB45c^Q">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id="Tb3b{4t;qA47Ic;y(e.]">
                                        <field name="ATTR">val</field>
                                        <field name="OID">alias.0.EG-Garage.Tor.any_001</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="_q-;wNKvrWW)PnSVbHNM">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_compare" id=",~:lcf-j+35~y0V@nTj#">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id="BPGhN_y%f(/Q7`aI[#Rt">
                                        <field name="ATTR">val</field>
                                        <field name="OID">alias.0.EG-Garage.Tor.any_002</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="y6I|Tf`YNVR.g{FC;#3Q">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="debug" id="sIc4k~9~(v6^!(,]G*lw">
                                <field name="Severity">log</field>
                                <value name="TEXT">
                                  <shadow type="text" id="QKASmtXO3#COwA|}l92_">
                                    <field name="TEXT">Tor Fährt</field>
                                  </shadow>
                                </value>
                                <next>
                                  <block type="control" id=";:sfJi!Ux#:C7c?;-T%k">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">wled.0.308398b61ff4.ps</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="9IYs`!fY)sCXcI|(d2w[">
                                        <field name="NUM">3</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="control" id="+0Cokw=mCJBd$x*1O?Ge">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                        <field name="OID">wled.0.308398b61ff4.ps</field>
                                        <field name="WITH_DELAY">TRUE</field>
                                        <field name="DELAY_MS">1</field>
                                        <field name="UNIT">sec</field>
                                        <field name="CLEAR_RUNNING">TRUE</field>
                                        <value name="VALUE">
                                          <block type="math_number" id="pr[e.mE_2o|,=ZK}13O+">
                                            <field name="NUM">1</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="control" id="oV,[vYC:`Gk6jz7)DA7y">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                            <field name="OID">wled.0.308398b61ff4.ps</field>
                                            <field name="WITH_DELAY">TRUE</field>
                                            <field name="DELAY_MS">2</field>
                                            <field name="UNIT">sec</field>
                                            <field name="CLEAR_RUNNING">TRUE</field>
                                            <value name="VALUE">
                                              <block type="math_number" id="{!2bDer1LQ`K5c.Ee#QP">
                                                <field name="NUM">1</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="timeouts_cleartimeout" id="6C1kNwYo-+=-_]|AC%~J">
                                                <field name="NAME">timeout</field>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </statement>
                            <next>
                              <block type="comment" id="YH=nv/6p|Qgincsx6~,Y">
                                <field name="COMMENT">Tor zu</field>
                                <next>
                                  <block type="controls_if" id="^E!!jGc5LDX|QDQPQx%v">
                                    <value name="IF0">
                                      <block type="logic_operation" id="TyGHz0^P$]e#tw=kB@cK">
                                        <field name="OP">AND</field>
                                        <value name="A">
                                          <block type="logic_compare" id="hk~to@Q*fi`ZRb+FY@KD">
                                            <field name="OP">EQ</field>
                                            <value name="A">
                                              <block type="get_value" id="~*YPuGCs_(yK;t,CMg($">
                                                <field name="ATTR">val</field>
                                                <field name="OID">alias.0.EG-Garage.Tor.any_001</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="logic_boolean" id="tj_Gg{xq;CEz896x^`}p">
                                                <field name="BOOL">TRUE</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_compare" id="!OACNt9q_5^KsTn#.%W3">
                                            <field name="OP">EQ</field>
                                            <value name="A">
                                              <block type="get_value" id="p[kh(Kf{{wx$B4V5A)_`">
                                                <field name="ATTR">val</field>
                                                <field name="OID">alias.0.EG-Garage.Tor.any_002</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="logic_boolean" id="oT|xw9KB[pd2V`.*fss2">
                                                <field name="BOOL">FALSE</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="debug" id="RjXx!uy.%$[PsZ;n6:YJ">
                                        <field name="Severity">log</field>
                                        <value name="TEXT">
                                          <shadow type="text" id="`xIu=mCUK}Iu%DKGB2fp">
                                            <field name="TEXT">Tor zu</field>
                                          </shadow>
                                        </value>
                                        <next>
                                          <block type="control" id="5khT545Yt$~wG99C!V*_">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">wled.0.308398b61ff4.ps</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="math_number" id="W+T.h98rXuCZLY7-roCY">
                                                <field name="NUM">2</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="control" id="FZ~3|jI^O~arI%z=/x)e">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                <field name="OID">wled.0.308398b61ff4.ps</field>
                                                <field name="WITH_DELAY">TRUE</field>
                                                <field name="DELAY_MS">4</field>
                                                <field name="UNIT">sec</field>
                                                <field name="CLEAR_RUNNING">TRUE</field>
                                                <value name="VALUE">
                                                  <block type="math_number" id="jsb6AH^DI:_{;?#KM.p}">
                                                    <field name="NUM">4</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="control" id="vrAZ6SQeYc{Pd+(}G9_(">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                    <field name="OID">wled.0.308398b61ff4.ps</field>
                                                    <field name="WITH_DELAY">TRUE</field>
                                                    <field name="DELAY_MS">4</field>
                                                    <field name="UNIT">sec</field>
                                                    <field name="CLEAR_RUNNING">TRUE</field>
                                                    <value name="VALUE">
                                                      <block type="math_number" id="PyyIDwYWb/~(BQT}Jmsz">
                                                        <field name="NUM">5</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="comment" id="L/m*X=+%!SknD0oGum^_">
                                        <field name="COMMENT">Tor auf</field>
                                        <next>
                                          <block type="controls_if" id="*R.nmW{f{yF0[3m(vHzJ">
                                            <value name="IF0">
                                              <block type="logic_operation" id="^H#fbTv$_U%7f:^KrB:N">
                                                <field name="OP">AND</field>
                                                <value name="A">
                                                  <block type="logic_compare" id="nn7__06acxQ]P_0r(KSi">
                                                    <field name="OP">EQ</field>
                                                    <value name="A">
                                                      <block type="get_value" id="yy+2%jbY=*~bkB,t/Wnc">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">alias.0.EG-Garage.Tor.any_001</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="logic_boolean" id="`}2n^O;`dB]v{q0G5F}U">
                                                        <field name="BOOL">FALSE</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_compare" id="YVU_uG]hAR|coP4(py*6">
                                                    <field name="OP">EQ</field>
                                                    <value name="A">
                                                      <block type="get_value" id="e`#SIZY(Qjb!H+r#Ky_#">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">alias.0.EG-Garage.Tor.any_002</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="logic_boolean" id="m}Z4d(`5?ws{nkUp~=g=">
                                                        <field name="BOOL">TRUE</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="DO0">
                                              <block type="debug" id="{uFB4IHvC]94gk~6ed_x">
                                                <field name="Severity">log</field>
                                                <value name="TEXT">
                                                  <shadow type="text" id="(J9H;4ijs0L#X|dN?u7F">
                                                    <field name="TEXT">Tor auf</field>
                                                  </shadow>
                                                </value>
                                                <next>
                                                  <block type="control" id="cNny6[!,oQg@d6L5Dt_8">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                    <field name="OID">wled.0.308398b61ff4.ps</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="math_number" id=":[s`#z.!Tm0bZS7{nY~r">
                                                        <field name="NUM">2</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="control" id="4ot=j)v8?SFlWUI]kcH,">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                        <field name="OID">wled.0.308398b61ff4.ps</field>
                                                        <field name="WITH_DELAY">TRUE</field>
                                                        <field name="DELAY_MS">4</field>
                                                        <field name="UNIT">sec</field>
                                                        <field name="CLEAR_RUNNING">TRUE</field>
                                                        <value name="VALUE">
                                                          <block type="math_number" id="^[$^/w{.|@~,@!}7:hBP">
                                                            <field name="NUM">4</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="control" id="{*]-)^T6Uwnlu-.78O{2">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                            <field name="OID">wled.0.308398b61ff4.ps</field>
                                                            <field name="WITH_DELAY">TRUE</field>
                                                            <field name="DELAY_MS">4</field>
                                                            <field name="UNIT">sec</field>
                                                            <field name="CLEAR_RUNNING">TRUE</field>
                                                            <value name="VALUE">
                                                              <block type="math_number" id="nMFh8+9XM(^jADxS+Tp+">
                                                                <field name="NUM">5</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
                <next>
                  <block type="comment" id="m*Lk|FZWhz?0hvYz}yP;">
                    <field name="COMMENT">Aus Garagenefektlicht</field>
                    <next>
                      <block type="controls_if" id="s*~pl9^Ss_xyPRmG:0*B">
                        <value name="IF0">
                          <block type="logic_operation" id="DzF6?;1x6x$7RQpBuZ1.">
                            <field name="OP">OR</field>
                            <value name="A">
                              <block type="logic_compare" id="T/a=rkv0.T,{FqaU1nN@">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="?(Sf|5qS9ZQRM@ktmCh(">
                                    <field name="ATTR">val</field>
                                    <field name="OID">alias.0.EG-Garage.Tor.any_001</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="V]]Ibrc-pkfa!@bb:I{?">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_compare" id="j1Cd[`jL5@lICEyx9x$z">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="G(eVjk$0)=}(ZR(R~ji@">
                                    <field name="ATTR">val</field>
                                    <field name="OID">alias.0.EG-Garage.Tor.any_002</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="Cg*Oh4ETf5cyK/UxYx%k">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="timeouts_settimeout" id=":RfDnHVq/hjw?4hr7*cO">
                            <field name="NAME">timeout</field>
                            <field name="DELAY">30</field>
                            <field name="UNIT">sec</field>
                            <statement name="STATEMENT">
                              <block type="control" id="laC^cp@~YPwY`{7r[.tl">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">wled.0.308398b61ff4.ps</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="math_number" id="|U`iNDBL|W_,*hEmm]9p">
                                    <field name="NUM">0</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="control" id="L?4};[T.NNs`0sV#%SO#">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">wled.0.308398b61ff4.on</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="logic_boolean" id="NcG1:g@sljb#=p~Ks?A)">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </statement>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
          </block>
          <block type="comment" id="vW,)A+0!tKvlZ^R:chW-" x="87" y="837">
            <field name="COMMENT">Weihnachtsbeleuchtung</field>
            <next>
              <block type="schedule_create" id="(AU9]u:-EQwK3/8~4c=t">
                <field name="NAME">schedule1</field>
                <value name="SCHEDULE">
                  <shadow type="field_cron" id="l5Xsg|r+5f!0ytc]@D2^">
                    <field name="CRON">* * * * *</field>
                  </shadow>
                </value>
                <statement name="STATEMENT">
                  <block type="controls_if" id="wi~E3/A$h:=eZ%q6TwY@">
                    <value name="IF0">
                      <block type="logic_compare" id="C|MVfG$~44KL,RWNK}Si">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="(dr9)[T-p(aNq9D3Ow~R">
                            <field name="ATTR">val</field>
                            <field name="OID">0_userdata.0.Datapoint.Zeiten_Daten.Weihnachtszeit</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="-D{%I/d%6|;(Z[$|aygb">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="controls_if" id="u~C54!6M.m$M]{Dfzmcn">
                        <value name="IF0">
                          <block type="logic_compare" id="T[;-^LVozVgUJ/t=0v`q">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="get_value" id="YF$0,CQm%tGbrHnEeU/]">
                                <field name="ATTR">val</field>
                                <field name="OID">0_userdata.0.Datapoint.Zeiten_Daten.Nacht</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_boolean" id="wj?)-;xVy:Z|l=,J2~_u">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="controls_if" id="so6skg--a-VSbC@s4W!!">
                            <value name="IF0">
                              <block type="logic_operation" id="z=pQD4XK#s5U0N]b]{le">
                                <field name="OP">OR</field>
                                <value name="A">
                                  <block type="time_compare_ex" id="nC,X85;Uk0yh~fN6gO14">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                    <field name="USE_ACTUAL_TIME">TRUE</field>
                                    <field name="OPTION">between</field>
                                    <value name="START_TIME">
                                      <shadow type="text" id="neWYOnhJ:nP[@/^BD{LW">
                                        <field name="TEXT">16:00</field>
                                      </shadow>
                                    </value>
                                    <value name="END_TIME">
                                      <shadow type="text" id="lC4Y;Bq.pFkCT3}R3{FB">
                                        <field name="TEXT">23:00</field>
                                      </shadow>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="time_compare_ex" id="y|Lx=kN3!Q:qKi)~yT=K">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                    <field name="USE_ACTUAL_TIME">TRUE</field>
                                    <field name="OPTION">between</field>
                                    <value name="START_TIME">
                                      <shadow type="text" id="qcf{-c7)}g.)4dK|w)iK">
                                        <field name="TEXT">05:00</field>
                                      </shadow>
                                    </value>
                                    <value name="END_TIME">
                                      <shadow type="text" id="Bz#,K[-lY*.HG4q876/D">
                                        <field name="TEXT">09:00</field>
                                      </shadow>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="controls_if" id="|-kM9)Nvt+SO@^CTn/}v">
                                <value name="IF0">
                                  <block type="logic_compare" id="5L~(|$Hw?L8:v(zWfpAl">
                                    <field name="OP">LTE</field>
                                    <value name="A">
                                      <block type="get_value" id="~3=[fxlXUacGI=I/Vw]|">
                                        <field name="ATTR">val</field>
                                        <field name="OID">wled.0.308398b61ff4.ps</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="math_number" id="CmS_$7=Xaov#Xu^Bzy-6">
                                        <field name="NUM">0</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="control" id="~PvGez9yXvD_~afk,9Ph">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">wled.0.308398b61ff4.ps</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="aZ`N)rTm[~8nnY~*ke6m">
                                        <field name="NUM">6</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="control" id="p$r*d]+`W|dy_(JnK@Ji">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">wled.0.308398b61ff4.on</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="jCK.^d4y[5ED?$,anFEp">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                              </block>
                            </statement>
                          </block>
                        </statement>
                      </block>
                    </statement>
                    <next>
                      <block type="controls_if" id="+a;@10ENB1,VyB7H29d+">
                        <value name="IF0">
                          <block type="logic_compare" id="^#h,+6]cq5qw4*x/)fN2">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="get_value" id="?o(t~r`#4IZznQUuFNY~">
                                <field name="ATTR">val</field>
                                <field name="OID">0_userdata.0.Datapoint.Zeiten_Daten.Weihnachtszeit</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_boolean" id="vEq=hu:}z6yXyuuji%Fl">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="controls_if" id="XK^fGm%Nlt[5l6}trEfI">
                            <value name="IF0">
                              <block type="logic_compare" id="6,/=W7`3NKj.M.7H8x2J">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="X8[vsS9A1J%p5dzH%u7%">
                                    <field name="ATTR">val</field>
                                    <field name="OID">wled.0.308398b61ff4.ps</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="math_number" id="?8.RH_s?nV:w_nC9#g]T">
                                    <field name="NUM">6</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="control" id="?S/5?ncNUdN^5yM(Hc%P">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">wled.0.308398b61ff4.ps</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="math_number" id="XPe*sp.IuZqNN_{}=~W,">
                                    <field name="NUM">0</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="control" id="iU.|;:WDSS2Qa6%5D*73">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">wled.0.308398b61ff4.on</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="logic_boolean" id="v,+l}HDsG:gk3_pkSE}{">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </statement>
                            <next>
                              <block type="controls_if" id="FLnQ91-cY23x3)T-`}If">
                                <value name="IF0">
                                  <block type="logic_operation" id="w8[a~nmuy}x#qv`Kg%#^">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block type="time_compare_ex" id="dKH$V;Wi2K9^2:8[w$n|">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                        <field name="USE_ACTUAL_TIME">TRUE</field>
                                        <field name="OPTION">not between</field>
                                        <value name="START_TIME">
                                          <shadow type="text" id="b#Z3Hs2m64Z/HUK3^i-1">
                                            <field name="TEXT">16:00</field>
                                          </shadow>
                                        </value>
                                        <value name="END_TIME">
                                          <shadow type="text" id="3jybM8D/2ejE24d;Y%+h">
                                            <field name="TEXT">23:00</field>
                                          </shadow>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="time_compare_ex" id="RC:q#BEAk(p^Orv%]LgB">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                        <field name="USE_ACTUAL_TIME">TRUE</field>
                                        <field name="OPTION">not between</field>
                                        <value name="START_TIME">
                                          <shadow type="text" id="eUclCT,0)kfT0C3g!XM5">
                                            <field name="TEXT">05:00</field>
                                          </shadow>
                                        </value>
                                        <value name="END_TIME">
                                          <shadow type="text" id="SE8JamRZfS;-d,LLd;NA">
                                            <field name="TEXT">09:00</field>
                                          </shadow>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="control" id="0Arqyuy7!2)BGL@V.i[(">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">wled.0.308398b61ff4.ps</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="wmq!Hlx.q]-F)-0{HK*{">
                                        <field name="NUM">0</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="control" id="_JR4u?lt{I[1tX,*xgcD">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">wled.0.308398b61ff4.on</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="0C5p|%*#S*hhr!n6IR~?">
                                            <field name="BOOL">FALSE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                              </block>
                            </next>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </next>
          </block>
          <block type="schedule" id=")^~0aUCL~?%{8j=^[!a;" x="87" y="1612">
            <field name="SCHEDULE">0 23 * * *</field>
            <statement name="STATEMENT">
              <block type="controls_if" id="2/o$bPbOe:-[B*d]x{4Q">
                <value name="IF0">
                  <block type="logic_compare" id="s#GfY*+.yDKSO3e;S))k">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="get_value" id="Or9Ar%KWDBdn0,oJ6!C{">
                        <field name="ATTR">val</field>
                        <field name="OID">0_userdata.0.Datapoint.Zeiten_Daten.Weihnachtszeit</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_boolean" id="X]*gF5n9s!LaY_dzPvhZ">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="control" id="|K|9+K]e;{JQ)IxM*:O*">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">wled.0.308398b61ff4.ps</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="math_number" id="1;(!EpBNMB9Bqg:PUVg4">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                    <next>
                      <block type="control" id="y69(6q2$#OkOBDCB2qQU">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">wled.0.308398b61ff4.on</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="{c5Fbx7,aZ}_T?VS#:4C">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </statement>
          </block>
          <block type="comment" id="*cw_3j||]9mGbfD3])tT" x="87" y="1862">
            <field name="COMMENT">Damit der ESP8266 nicht einschläft</field>
            <next>
              <block type="schedule" id="|Ph7A#zOLZvBy):UY@}w">
                <field name="SCHEDULE">* * * * *</field>
                <statement name="STATEMENT">
                  <block type="controls_if" id="E]~}tb]~aQ`O~^^JDRe5">
                    <mutation else="1"></mutation>
                    <value name="IF0">
                      <block type="logic_compare" id="ql{m^REgb2=.OWM:Tww,">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="8J3^mLMx+/6d6~11-`/N">
                            <field name="ATTR">val</field>
                            <field name="OID">0_userdata.0.Datapoint.Zeiten_Daten.Nacht</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="zteB?n91!{U@$W,Ci_@A">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="controls_if" id="ONci|vC/jQ`(6F0Qh${6">
                        <mutation else="1"></mutation>
                        <value name="IF0">
                          <block type="logic_compare" id="*~Ck,z$aij44)L:CFbu!">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="^fbyp(]`E0-xdmvA,nC:">
                                <field name="VAR" id="g;sVV^-s@hbkRnou(]]U">Weckzaehler</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="cBwmu6xnI|J=?6:o`rC+">
                                <field name="NUM">30</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="controls_if" id="g5clz!n{.;,bP`{]BofC">
                            <value name="IF0">
                              <block type="logic_compare" id="`.[gG0wUlQ7il;p4~jtY">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="^4c%r4J~bxU:6Ri-$RL,">
                                    <field name="ATTR">val</field>
                                    <field name="OID">0_userdata.0.Datapoint.Zeiten_Daten.Weihnachtszeit</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="HA8_Z41yn#Mx/(6_Tmct">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="controls_if" id="qH?L96#AKmPaP[mzQhgp">
                                <value name="IF0">
                                  <block type="logic_compare" id="nc,=NCVYrOb3[mLWL#n~">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id=")#VTDXbMXP|Y8WD/)?oK">
                                        <field name="ATTR">val</field>
                                        <field name="OID">alias.0.EG-Garage.Tor.any_001</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="vz*-HO:y!FPyqOs*U^|T">
                                        <field name="BOOL">TRUE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="comment" id="8@ZG=U,xWEVO+Gr;]p[9">
                                    <field name="COMMENT">Instanz neu starten</field>
                                    <next>
                                      <block type="control" id="S/`IYH$VBvq5bQrBD*Ms">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">system.adapter.wled.0.alive</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="-G0NyL4itst|ei7aFPc_">
                                            <field name="BOOL">FALSE</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="control" id="GwpI;gVcNm*IS[%jdTBA">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                            <field name="OID">system.adapter.wled.0.alive</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="logic_boolean" id="I}vt5PWr2e2H`9j82/qg">
                                                <field name="BOOL">TRUE</field>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                              </block>
                            </statement>
                            <next>
                              <block type="variables_set" id="Bkxe;/*PyiQu,DY9ziSE">
                                <field name="VAR" id="g;sVV^-s@hbkRnou(]]U">Weckzaehler</field>
                                <value name="VALUE">
                                  <block type="math_number" id="Rndu2Xfr(iksj2#4W?4:">
                                    <field name="NUM">0</field>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </statement>
                        <statement name="ELSE">
                          <block type="math_change" id="KMdBac4/XUK!!hzeTRN`">
                            <field name="VAR" id="g;sVV^-s@hbkRnou(]]U">Weckzaehler</field>
                            <value name="DELTA">
                              <shadow type="math_number" id="FP#ZQ.T|3YIo;#JwUNx8">
                                <field name="NUM">1</field>
                              </shadow>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </statement>
                    <statement name="ELSE">
                      <block type="variables_set" id="tvo/R@5)_bVdLnw:aQGK">
                        <field name="VAR" id="g;sVV^-s@hbkRnou(]]U">Weckzaehler</field>
                        <value name="VALUE">
                          <block type="math_number" id=":c@ysD%oODVxHTYOo7tE">
                            <field name="NUM">30</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </xml>
        

        Am Ende ist noch das Aufwecken des ESP8266 drin da ich nicht rausgefunden habe warum der einschläft, mache ich einen Restart von WLED und das Problem ist umgangen.

        Grüße aus dem Sauerland

        F.B.

        opossumO V 2 Antworten Letzte Antwort
        0
        • Berges01B Berges01

          @vocaris

          Hallo vocaris

          Ich habe am Toor 2 Initiatoren also vergleichbar mit dir.
          Hier mein Blockly da ist Tag und Nacht wie auch Uhrzeiten berücksichtigt und auch eine Weihnachtsbeleuchtung.
          Ich mache es mit Preset.

          <xml xmlns="https://developers.google.com/blockly/xml">
            <variables>
              <variable type="cron" id="schedule1">schedule1</variable>
              <variable id="g;sVV^-s@hbkRnou(]]U">Weckzaehler</variable>
              <variable type="timeout" id="timeout">timeout</variable>
            </variables>
            <block type="on_ext" id="j@JF6W3$sYu)i6.~fU{P" x="87" y="-587">
              <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="|4t9:t3.OH1szD[hPRqr">
                  <field name="oid">alias.0.EG-Garage.Tor.any_001</field>
                </shadow>
              </value>
              <value name="OID1">
                <shadow type="field_oid" id="@`X8.6(c=E7uR^Cq?er:">
                  <field name="oid">alias.0.EG-Garage.Tor.any_002</field>
                </shadow>
              </value>
              <statement name="STATEMENT">
                <block type="controls_if" id="(FViH]c1OVm~2sa*e:VC">
                  <value name="IF0">
                    <block type="logic_compare" id="W3$!+Sv?tMMFHBOf)fit">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="get_value" id="5_f0UuLehNnL1L(a8I?e">
                          <field name="ATTR">val</field>
                          <field name="OID">0_userdata.0.Datapoint.Zeiten_Daten.Nacht</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_boolean" id="M]j4h{ejpI9fy4Jjvh7-">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="debug" id="~B)XT}Wgp[nE2j/xbyZ^">
                      <field name="Severity">log</field>
                      <value name="TEXT">
                        <shadow type="text" id="hSJlSSNz|2yw}#tJu9da">
                          <field name="TEXT">Trigger</field>
                        </shadow>
                      </value>
                      <next>
                        <block type="comment" id="YH,moq}v`B;kLCo%pxu(">
                          <field name="COMMENT">Tor fährt</field>
                          <next>
                            <block type="controls_if" id="MYvPjNGt5F%n9H8h?jH)">
                              <value name="IF0">
                                <block type="logic_operation" id="J00aSf509fM0!5EeE^I)">
                                  <field name="OP">AND</field>
                                  <value name="A">
                                    <block type="logic_compare" id="L)G,oa=u+-j~1oB45c^Q">
                                      <field name="OP">EQ</field>
                                      <value name="A">
                                        <block type="get_value" id="Tb3b{4t;qA47Ic;y(e.]">
                                          <field name="ATTR">val</field>
                                          <field name="OID">alias.0.EG-Garage.Tor.any_001</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_boolean" id="_q-;wNKvrWW)PnSVbHNM">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_compare" id=",~:lcf-j+35~y0V@nTj#">
                                      <field name="OP">EQ</field>
                                      <value name="A">
                                        <block type="get_value" id="BPGhN_y%f(/Q7`aI[#Rt">
                                          <field name="ATTR">val</field>
                                          <field name="OID">alias.0.EG-Garage.Tor.any_002</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_boolean" id="y6I|Tf`YNVR.g{FC;#3Q">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="debug" id="sIc4k~9~(v6^!(,]G*lw">
                                  <field name="Severity">log</field>
                                  <value name="TEXT">
                                    <shadow type="text" id="QKASmtXO3#COwA|}l92_">
                                      <field name="TEXT">Tor Fährt</field>
                                    </shadow>
                                  </value>
                                  <next>
                                    <block type="control" id=";:sfJi!Ux#:C7c?;-T%k">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">wled.0.308398b61ff4.ps</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="math_number" id="9IYs`!fY)sCXcI|(d2w[">
                                          <field name="NUM">3</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id="+0Cokw=mCJBd$x*1O?Ge">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                          <field name="OID">wled.0.308398b61ff4.ps</field>
                                          <field name="WITH_DELAY">TRUE</field>
                                          <field name="DELAY_MS">1</field>
                                          <field name="UNIT">sec</field>
                                          <field name="CLEAR_RUNNING">TRUE</field>
                                          <value name="VALUE">
                                            <block type="math_number" id="pr[e.mE_2o|,=ZK}13O+">
                                              <field name="NUM">1</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="control" id="oV,[vYC:`Gk6jz7)DA7y">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                              <field name="OID">wled.0.308398b61ff4.ps</field>
                                              <field name="WITH_DELAY">TRUE</field>
                                              <field name="DELAY_MS">2</field>
                                              <field name="UNIT">sec</field>
                                              <field name="CLEAR_RUNNING">TRUE</field>
                                              <value name="VALUE">
                                                <block type="math_number" id="{!2bDer1LQ`K5c.Ee#QP">
                                                  <field name="NUM">1</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="timeouts_cleartimeout" id="6C1kNwYo-+=-_]|AC%~J">
                                                  <field name="NAME">timeout</field>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                              <next>
                                <block type="comment" id="YH=nv/6p|Qgincsx6~,Y">
                                  <field name="COMMENT">Tor zu</field>
                                  <next>
                                    <block type="controls_if" id="^E!!jGc5LDX|QDQPQx%v">
                                      <value name="IF0">
                                        <block type="logic_operation" id="TyGHz0^P$]e#tw=kB@cK">
                                          <field name="OP">AND</field>
                                          <value name="A">
                                            <block type="logic_compare" id="hk~to@Q*fi`ZRb+FY@KD">
                                              <field name="OP">EQ</field>
                                              <value name="A">
                                                <block type="get_value" id="~*YPuGCs_(yK;t,CMg($">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">alias.0.EG-Garage.Tor.any_001</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_boolean" id="tj_Gg{xq;CEz896x^`}p">
                                                  <field name="BOOL">TRUE</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="logic_compare" id="!OACNt9q_5^KsTn#.%W3">
                                              <field name="OP">EQ</field>
                                              <value name="A">
                                                <block type="get_value" id="p[kh(Kf{{wx$B4V5A)_`">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">alias.0.EG-Garage.Tor.any_002</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_boolean" id="oT|xw9KB[pd2V`.*fss2">
                                                  <field name="BOOL">FALSE</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="debug" id="RjXx!uy.%$[PsZ;n6:YJ">
                                          <field name="Severity">log</field>
                                          <value name="TEXT">
                                            <shadow type="text" id="`xIu=mCUK}Iu%DKGB2fp">
                                              <field name="TEXT">Tor zu</field>
                                            </shadow>
                                          </value>
                                          <next>
                                            <block type="control" id="5khT545Yt$~wG99C!V*_">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">wled.0.308398b61ff4.ps</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="math_number" id="W+T.h98rXuCZLY7-roCY">
                                                  <field name="NUM">2</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="control" id="FZ~3|jI^O~arI%z=/x)e">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                  <field name="OID">wled.0.308398b61ff4.ps</field>
                                                  <field name="WITH_DELAY">TRUE</field>
                                                  <field name="DELAY_MS">4</field>
                                                  <field name="UNIT">sec</field>
                                                  <field name="CLEAR_RUNNING">TRUE</field>
                                                  <value name="VALUE">
                                                    <block type="math_number" id="jsb6AH^DI:_{;?#KM.p}">
                                                      <field name="NUM">4</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="control" id="vrAZ6SQeYc{Pd+(}G9_(">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                      <field name="OID">wled.0.308398b61ff4.ps</field>
                                                      <field name="WITH_DELAY">TRUE</field>
                                                      <field name="DELAY_MS">4</field>
                                                      <field name="UNIT">sec</field>
                                                      <field name="CLEAR_RUNNING">TRUE</field>
                                                      <value name="VALUE">
                                                        <block type="math_number" id="PyyIDwYWb/~(BQT}Jmsz">
                                                          <field name="NUM">5</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                      <next>
                                        <block type="comment" id="L/m*X=+%!SknD0oGum^_">
                                          <field name="COMMENT">Tor auf</field>
                                          <next>
                                            <block type="controls_if" id="*R.nmW{f{yF0[3m(vHzJ">
                                              <value name="IF0">
                                                <block type="logic_operation" id="^H#fbTv$_U%7f:^KrB:N">
                                                  <field name="OP">AND</field>
                                                  <value name="A">
                                                    <block type="logic_compare" id="nn7__06acxQ]P_0r(KSi">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="get_value" id="yy+2%jbY=*~bkB,t/Wnc">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">alias.0.EG-Garage.Tor.any_001</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="logic_boolean" id="`}2n^O;`dB]v{q0G5F}U">
                                                          <field name="BOOL">FALSE</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_compare" id="YVU_uG]hAR|coP4(py*6">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="get_value" id="e`#SIZY(Qjb!H+r#Ky_#">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">alias.0.EG-Garage.Tor.any_002</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="logic_boolean" id="m}Z4d(`5?ws{nkUp~=g=">
                                                          <field name="BOOL">TRUE</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <statement name="DO0">
                                                <block type="debug" id="{uFB4IHvC]94gk~6ed_x">
                                                  <field name="Severity">log</field>
                                                  <value name="TEXT">
                                                    <shadow type="text" id="(J9H;4ijs0L#X|dN?u7F">
                                                      <field name="TEXT">Tor auf</field>
                                                    </shadow>
                                                  </value>
                                                  <next>
                                                    <block type="control" id="cNny6[!,oQg@d6L5Dt_8">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                      <field name="OID">wled.0.308398b61ff4.ps</field>
                                                      <field name="WITH_DELAY">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="math_number" id=":[s`#z.!Tm0bZS7{nY~r">
                                                          <field name="NUM">2</field>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="control" id="4ot=j)v8?SFlWUI]kcH,">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                          <field name="OID">wled.0.308398b61ff4.ps</field>
                                                          <field name="WITH_DELAY">TRUE</field>
                                                          <field name="DELAY_MS">4</field>
                                                          <field name="UNIT">sec</field>
                                                          <field name="CLEAR_RUNNING">TRUE</field>
                                                          <value name="VALUE">
                                                            <block type="math_number" id="^[$^/w{.|@~,@!}7:hBP">
                                                              <field name="NUM">4</field>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="control" id="{*]-)^T6Uwnlu-.78O{2">
                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                              <field name="OID">wled.0.308398b61ff4.ps</field>
                                                              <field name="WITH_DELAY">TRUE</field>
                                                              <field name="DELAY_MS">4</field>
                                                              <field name="UNIT">sec</field>
                                                              <field name="CLEAR_RUNNING">TRUE</field>
                                                              <value name="VALUE">
                                                                <block type="math_number" id="nMFh8+9XM(^jADxS+Tp+">
                                                                  <field name="NUM">5</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </statement>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                  <next>
                    <block type="comment" id="m*Lk|FZWhz?0hvYz}yP;">
                      <field name="COMMENT">Aus Garagenefektlicht</field>
                      <next>
                        <block type="controls_if" id="s*~pl9^Ss_xyPRmG:0*B">
                          <value name="IF0">
                            <block type="logic_operation" id="DzF6?;1x6x$7RQpBuZ1.">
                              <field name="OP">OR</field>
                              <value name="A">
                                <block type="logic_compare" id="T/a=rkv0.T,{FqaU1nN@">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="?(Sf|5qS9ZQRM@ktmCh(">
                                      <field name="ATTR">val</field>
                                      <field name="OID">alias.0.EG-Garage.Tor.any_001</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_boolean" id="V]]Ibrc-pkfa!@bb:I{?">
                                      <field name="BOOL">TRUE</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_compare" id="j1Cd[`jL5@lICEyx9x$z">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="G(eVjk$0)=}(ZR(R~ji@">
                                      <field name="ATTR">val</field>
                                      <field name="OID">alias.0.EG-Garage.Tor.any_002</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_boolean" id="Cg*Oh4ETf5cyK/UxYx%k">
                                      <field name="BOOL">TRUE</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="timeouts_settimeout" id=":RfDnHVq/hjw?4hr7*cO">
                              <field name="NAME">timeout</field>
                              <field name="DELAY">30</field>
                              <field name="UNIT">sec</field>
                              <statement name="STATEMENT">
                                <block type="control" id="laC^cp@~YPwY`{7r[.tl">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">wled.0.308398b61ff4.ps</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="|U`iNDBL|W_,*hEmm]9p">
                                      <field name="NUM">0</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="control" id="L?4};[T.NNs`0sV#%SO#">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">wled.0.308398b61ff4.on</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="NcG1:g@sljb#=p~Ks?A)">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                            </block>
                          </statement>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
            </block>
            <block type="comment" id="vW,)A+0!tKvlZ^R:chW-" x="87" y="837">
              <field name="COMMENT">Weihnachtsbeleuchtung</field>
              <next>
                <block type="schedule_create" id="(AU9]u:-EQwK3/8~4c=t">
                  <field name="NAME">schedule1</field>
                  <value name="SCHEDULE">
                    <shadow type="field_cron" id="l5Xsg|r+5f!0ytc]@D2^">
                      <field name="CRON">* * * * *</field>
                    </shadow>
                  </value>
                  <statement name="STATEMENT">
                    <block type="controls_if" id="wi~E3/A$h:=eZ%q6TwY@">
                      <value name="IF0">
                        <block type="logic_compare" id="C|MVfG$~44KL,RWNK}Si">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="(dr9)[T-p(aNq9D3Ow~R">
                              <field name="ATTR">val</field>
                              <field name="OID">0_userdata.0.Datapoint.Zeiten_Daten.Weihnachtszeit</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id="-D{%I/d%6|;(Z[$|aygb">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="controls_if" id="u~C54!6M.m$M]{Dfzmcn">
                          <value name="IF0">
                            <block type="logic_compare" id="T[;-^LVozVgUJ/t=0v`q">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="YF$0,CQm%tGbrHnEeU/]">
                                  <field name="ATTR">val</field>
                                  <field name="OID">0_userdata.0.Datapoint.Zeiten_Daten.Nacht</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="wj?)-;xVy:Z|l=,J2~_u">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="controls_if" id="so6skg--a-VSbC@s4W!!">
                              <value name="IF0">
                                <block type="logic_operation" id="z=pQD4XK#s5U0N]b]{le">
                                  <field name="OP">OR</field>
                                  <value name="A">
                                    <block type="time_compare_ex" id="nC,X85;Uk0yh~fN6gO14">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                      <field name="USE_ACTUAL_TIME">TRUE</field>
                                      <field name="OPTION">between</field>
                                      <value name="START_TIME">
                                        <shadow type="text" id="neWYOnhJ:nP[@/^BD{LW">
                                          <field name="TEXT">16:00</field>
                                        </shadow>
                                      </value>
                                      <value name="END_TIME">
                                        <shadow type="text" id="lC4Y;Bq.pFkCT3}R3{FB">
                                          <field name="TEXT">23:00</field>
                                        </shadow>
                                      </value>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="time_compare_ex" id="y|Lx=kN3!Q:qKi)~yT=K">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                      <field name="USE_ACTUAL_TIME">TRUE</field>
                                      <field name="OPTION">between</field>
                                      <value name="START_TIME">
                                        <shadow type="text" id="qcf{-c7)}g.)4dK|w)iK">
                                          <field name="TEXT">05:00</field>
                                        </shadow>
                                      </value>
                                      <value name="END_TIME">
                                        <shadow type="text" id="Bz#,K[-lY*.HG4q876/D">
                                          <field name="TEXT">09:00</field>
                                        </shadow>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="controls_if" id="|-kM9)Nvt+SO@^CTn/}v">
                                  <value name="IF0">
                                    <block type="logic_compare" id="5L~(|$Hw?L8:v(zWfpAl">
                                      <field name="OP">LTE</field>
                                      <value name="A">
                                        <block type="get_value" id="~3=[fxlXUacGI=I/Vw]|">
                                          <field name="ATTR">val</field>
                                          <field name="OID">wled.0.308398b61ff4.ps</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="math_number" id="CmS_$7=Xaov#Xu^Bzy-6">
                                          <field name="NUM">0</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="control" id="~PvGez9yXvD_~afk,9Ph">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">wled.0.308398b61ff4.ps</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="math_number" id="aZ`N)rTm[~8nnY~*ke6m">
                                          <field name="NUM">6</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id="p$r*d]+`W|dy_(JnK@Ji">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">wled.0.308398b61ff4.on</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id="jCK.^d4y[5ED?$,anFEp">
                                              <field name="BOOL">TRUE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                </block>
                              </statement>
                            </block>
                          </statement>
                        </block>
                      </statement>
                      <next>
                        <block type="controls_if" id="+a;@10ENB1,VyB7H29d+">
                          <value name="IF0">
                            <block type="logic_compare" id="^#h,+6]cq5qw4*x/)fN2">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="?o(t~r`#4IZznQUuFNY~">
                                  <field name="ATTR">val</field>
                                  <field name="OID">0_userdata.0.Datapoint.Zeiten_Daten.Weihnachtszeit</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="vEq=hu:}z6yXyuuji%Fl">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="controls_if" id="XK^fGm%Nlt[5l6}trEfI">
                              <value name="IF0">
                                <block type="logic_compare" id="6,/=W7`3NKj.M.7H8x2J">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="X8[vsS9A1J%p5dzH%u7%">
                                      <field name="ATTR">val</field>
                                      <field name="OID">wled.0.308398b61ff4.ps</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="math_number" id="?8.RH_s?nV:w_nC9#g]T">
                                      <field name="NUM">6</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="control" id="?S/5?ncNUdN^5yM(Hc%P">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">wled.0.308398b61ff4.ps</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="XPe*sp.IuZqNN_{}=~W,">
                                      <field name="NUM">0</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="control" id="iU.|;:WDSS2Qa6%5D*73">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">wled.0.308398b61ff4.on</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="v,+l}HDsG:gk3_pkSE}{">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                              <next>
                                <block type="controls_if" id="FLnQ91-cY23x3)T-`}If">
                                  <value name="IF0">
                                    <block type="logic_operation" id="w8[a~nmuy}x#qv`Kg%#^">
                                      <field name="OP">AND</field>
                                      <value name="A">
                                        <block type="time_compare_ex" id="dKH$V;Wi2K9^2:8[w$n|">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                          <field name="USE_ACTUAL_TIME">TRUE</field>
                                          <field name="OPTION">not between</field>
                                          <value name="START_TIME">
                                            <shadow type="text" id="b#Z3Hs2m64Z/HUK3^i-1">
                                              <field name="TEXT">16:00</field>
                                            </shadow>
                                          </value>
                                          <value name="END_TIME">
                                            <shadow type="text" id="3jybM8D/2ejE24d;Y%+h">
                                              <field name="TEXT">23:00</field>
                                            </shadow>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="time_compare_ex" id="RC:q#BEAk(p^Orv%]LgB">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                          <field name="USE_ACTUAL_TIME">TRUE</field>
                                          <field name="OPTION">not between</field>
                                          <value name="START_TIME">
                                            <shadow type="text" id="eUclCT,0)kfT0C3g!XM5">
                                              <field name="TEXT">05:00</field>
                                            </shadow>
                                          </value>
                                          <value name="END_TIME">
                                            <shadow type="text" id="SE8JamRZfS;-d,LLd;NA">
                                              <field name="TEXT">09:00</field>
                                            </shadow>
                                          </value>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="control" id="0Arqyuy7!2)BGL@V.i[(">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">wled.0.308398b61ff4.ps</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="math_number" id="wmq!Hlx.q]-F)-0{HK*{">
                                          <field name="NUM">0</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id="_JR4u?lt{I[1tX,*xgcD">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">wled.0.308398b61ff4.on</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id="0C5p|%*#S*hhr!n6IR~?">
                                              <field name="BOOL">FALSE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
            <block type="schedule" id=")^~0aUCL~?%{8j=^[!a;" x="87" y="1612">
              <field name="SCHEDULE">0 23 * * *</field>
              <statement name="STATEMENT">
                <block type="controls_if" id="2/o$bPbOe:-[B*d]x{4Q">
                  <value name="IF0">
                    <block type="logic_compare" id="s#GfY*+.yDKSO3e;S))k">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="get_value" id="Or9Ar%KWDBdn0,oJ6!C{">
                          <field name="ATTR">val</field>
                          <field name="OID">0_userdata.0.Datapoint.Zeiten_Daten.Weihnachtszeit</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_boolean" id="X]*gF5n9s!LaY_dzPvhZ">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="control" id="|K|9+K]e;{JQ)IxM*:O*">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">wled.0.308398b61ff4.ps</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="math_number" id="1;(!EpBNMB9Bqg:PUVg4">
                          <field name="NUM">0</field>
                        </block>
                      </value>
                      <next>
                        <block type="control" id="y69(6q2$#OkOBDCB2qQU">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">wled.0.308398b61ff4.on</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="{c5Fbx7,aZ}_T?VS#:4C">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </statement>
            </block>
            <block type="comment" id="*cw_3j||]9mGbfD3])tT" x="87" y="1862">
              <field name="COMMENT">Damit der ESP8266 nicht einschläft</field>
              <next>
                <block type="schedule" id="|Ph7A#zOLZvBy):UY@}w">
                  <field name="SCHEDULE">* * * * *</field>
                  <statement name="STATEMENT">
                    <block type="controls_if" id="E]~}tb]~aQ`O~^^JDRe5">
                      <mutation else="1"></mutation>
                      <value name="IF0">
                        <block type="logic_compare" id="ql{m^REgb2=.OWM:Tww,">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="8J3^mLMx+/6d6~11-`/N">
                              <field name="ATTR">val</field>
                              <field name="OID">0_userdata.0.Datapoint.Zeiten_Daten.Nacht</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id="zteB?n91!{U@$W,Ci_@A">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="controls_if" id="ONci|vC/jQ`(6F0Qh${6">
                          <mutation else="1"></mutation>
                          <value name="IF0">
                            <block type="logic_compare" id="*~Ck,z$aij44)L:CFbu!">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="variables_get" id="^fbyp(]`E0-xdmvA,nC:">
                                  <field name="VAR" id="g;sVV^-s@hbkRnou(]]U">Weckzaehler</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="math_number" id="cBwmu6xnI|J=?6:o`rC+">
                                  <field name="NUM">30</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="controls_if" id="g5clz!n{.;,bP`{]BofC">
                              <value name="IF0">
                                <block type="logic_compare" id="`.[gG0wUlQ7il;p4~jtY">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="^4c%r4J~bxU:6Ri-$RL,">
                                      <field name="ATTR">val</field>
                                      <field name="OID">0_userdata.0.Datapoint.Zeiten_Daten.Weihnachtszeit</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_boolean" id="HA8_Z41yn#Mx/(6_Tmct">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="controls_if" id="qH?L96#AKmPaP[mzQhgp">
                                  <value name="IF0">
                                    <block type="logic_compare" id="nc,=NCVYrOb3[mLWL#n~">
                                      <field name="OP">EQ</field>
                                      <value name="A">
                                        <block type="get_value" id=")#VTDXbMXP|Y8WD/)?oK">
                                          <field name="ATTR">val</field>
                                          <field name="OID">alias.0.EG-Garage.Tor.any_001</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_boolean" id="vz*-HO:y!FPyqOs*U^|T">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="comment" id="8@ZG=U,xWEVO+Gr;]p[9">
                                      <field name="COMMENT">Instanz neu starten</field>
                                      <next>
                                        <block type="control" id="S/`IYH$VBvq5bQrBD*Ms">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">system.adapter.wled.0.alive</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id="-G0NyL4itst|ei7aFPc_">
                                              <field name="BOOL">FALSE</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="control" id="GwpI;gVcNm*IS[%jdTBA">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                              <field name="OID">system.adapter.wled.0.alive</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="logic_boolean" id="I}vt5PWr2e2H`9j82/qg">
                                                  <field name="BOOL">TRUE</field>
                                                </block>
                                              </value>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                </block>
                              </statement>
                              <next>
                                <block type="variables_set" id="Bkxe;/*PyiQu,DY9ziSE">
                                  <field name="VAR" id="g;sVV^-s@hbkRnou(]]U">Weckzaehler</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="Rndu2Xfr(iksj2#4W?4:">
                                      <field name="NUM">0</field>
                                    </block>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </statement>
                          <statement name="ELSE">
                            <block type="math_change" id="KMdBac4/XUK!!hzeTRN`">
                              <field name="VAR" id="g;sVV^-s@hbkRnou(]]U">Weckzaehler</field>
                              <value name="DELTA">
                                <shadow type="math_number" id="FP#ZQ.T|3YIo;#JwUNx8">
                                  <field name="NUM">1</field>
                                </shadow>
                              </value>
                            </block>
                          </statement>
                        </block>
                      </statement>
                      <statement name="ELSE">
                        <block type="variables_set" id="tvo/R@5)_bVdLnw:aQGK">
                          <field name="VAR" id="g;sVV^-s@hbkRnou(]]U">Weckzaehler</field>
                          <value name="VALUE">
                            <block type="math_number" id=":c@ysD%oODVxHTYOo7tE">
                              <field name="NUM">30</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </xml>
          

          Am Ende ist noch das Aufwecken des ESP8266 drin da ich nicht rausgefunden habe warum der einschläft, mache ich einen Restart von WLED und das Problem ist umgangen.

          Grüße aus dem Sauerland

          opossumO Offline
          opossumO Offline
          opossum
          schrieb am zuletzt editiert von
          #562

          Hallo, @vocaris,

          nimm mal den "Pause"-Befehl aus Deinem Script raus. Hatte ich vorher auch so, lief nicht.
          Zitat von @Asgothian aus diesem Post:

          Zitat Anfang:

          Timeout: Es wird Ein Block an Aktionen im Timeout angegeben der in x ms ausgeführt wird, aber die "normale" Bearbeitung des Skriptes geht weiter.
          Pause: Es wird x ms gewartet bis es weiter geht.
          Der Haupt unterschied besteht in der Art der Abarbeitung.
          Der Einsatz von "Pause" führt zu einer synchronen Abarbeitung der im Skript stehenden Befehle in genau der angegebenen Reihenfolge. Pause kann beim Thema "Skript erneut auslösen" zu Problemen führen.
          Der Einsatz von Timeout führt zu einer asynchronen Abarbeitung so das das eigentliche Skript beendet wird und nur die im Timeout angegebenen Befehle werden in einem eigenen Ablauf im Hintergrund ausgelöst.
          Insgesamt sollte wann immer möglich mit einem Timeout gearbeitet werden da die "Pause" die zu dem Skript gehörenden Ressourcen weiter belegt bleiben. Je länger die Zeit ist die gewartet wird desto wichtiger ist der Einsatz von Timeout an Stelle von Pause.
          Ich persönlich würde Pause nur einsetzen wenn sichergestellt ist das das Skript während der Pause nicht ein zweites mal aktiviert werden kann. Das wäre zu Beginn von Skripten oder innerhalb eines Zeitplans. Immer dann wenn ein Skript über einen "event" (Trigger, nicht Zeitplan) ausgelöst wird würde ich mit einem Timeout arbeiten.

          Zitat Ende
          Vielleicht hilft es Dir ja.

          https://schlepper-petersdorf.jimdofree.com/

          V 1 Antwort Letzte Antwort
          0
          • Berges01B Berges01

            @vocaris

            Hallo vocaris

            Ich habe am Toor 2 Initiatoren also vergleichbar mit dir.
            Hier mein Blockly da ist Tag und Nacht wie auch Uhrzeiten berücksichtigt und auch eine Weihnachtsbeleuchtung.
            Ich mache es mit Preset.

            <xml xmlns="https://developers.google.com/blockly/xml">
              <variables>
                <variable type="cron" id="schedule1">schedule1</variable>
                <variable id="g;sVV^-s@hbkRnou(]]U">Weckzaehler</variable>
                <variable type="timeout" id="timeout">timeout</variable>
              </variables>
              <block type="on_ext" id="j@JF6W3$sYu)i6.~fU{P" x="87" y="-587">
                <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="|4t9:t3.OH1szD[hPRqr">
                    <field name="oid">alias.0.EG-Garage.Tor.any_001</field>
                  </shadow>
                </value>
                <value name="OID1">
                  <shadow type="field_oid" id="@`X8.6(c=E7uR^Cq?er:">
                    <field name="oid">alias.0.EG-Garage.Tor.any_002</field>
                  </shadow>
                </value>
                <statement name="STATEMENT">
                  <block type="controls_if" id="(FViH]c1OVm~2sa*e:VC">
                    <value name="IF0">
                      <block type="logic_compare" id="W3$!+Sv?tMMFHBOf)fit">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="5_f0UuLehNnL1L(a8I?e">
                            <field name="ATTR">val</field>
                            <field name="OID">0_userdata.0.Datapoint.Zeiten_Daten.Nacht</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="M]j4h{ejpI9fy4Jjvh7-">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="debug" id="~B)XT}Wgp[nE2j/xbyZ^">
                        <field name="Severity">log</field>
                        <value name="TEXT">
                          <shadow type="text" id="hSJlSSNz|2yw}#tJu9da">
                            <field name="TEXT">Trigger</field>
                          </shadow>
                        </value>
                        <next>
                          <block type="comment" id="YH,moq}v`B;kLCo%pxu(">
                            <field name="COMMENT">Tor fährt</field>
                            <next>
                              <block type="controls_if" id="MYvPjNGt5F%n9H8h?jH)">
                                <value name="IF0">
                                  <block type="logic_operation" id="J00aSf509fM0!5EeE^I)">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block type="logic_compare" id="L)G,oa=u+-j~1oB45c^Q">
                                        <field name="OP">EQ</field>
                                        <value name="A">
                                          <block type="get_value" id="Tb3b{4t;qA47Ic;y(e.]">
                                            <field name="ATTR">val</field>
                                            <field name="OID">alias.0.EG-Garage.Tor.any_001</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_boolean" id="_q-;wNKvrWW)PnSVbHNM">
                                            <field name="BOOL">FALSE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_compare" id=",~:lcf-j+35~y0V@nTj#">
                                        <field name="OP">EQ</field>
                                        <value name="A">
                                          <block type="get_value" id="BPGhN_y%f(/Q7`aI[#Rt">
                                            <field name="ATTR">val</field>
                                            <field name="OID">alias.0.EG-Garage.Tor.any_002</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_boolean" id="y6I|Tf`YNVR.g{FC;#3Q">
                                            <field name="BOOL">FALSE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="debug" id="sIc4k~9~(v6^!(,]G*lw">
                                    <field name="Severity">log</field>
                                    <value name="TEXT">
                                      <shadow type="text" id="QKASmtXO3#COwA|}l92_">
                                        <field name="TEXT">Tor Fährt</field>
                                      </shadow>
                                    </value>
                                    <next>
                                      <block type="control" id=";:sfJi!Ux#:C7c?;-T%k">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">wled.0.308398b61ff4.ps</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="math_number" id="9IYs`!fY)sCXcI|(d2w[">
                                            <field name="NUM">3</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="control" id="+0Cokw=mCJBd$x*1O?Ge">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                            <field name="OID">wled.0.308398b61ff4.ps</field>
                                            <field name="WITH_DELAY">TRUE</field>
                                            <field name="DELAY_MS">1</field>
                                            <field name="UNIT">sec</field>
                                            <field name="CLEAR_RUNNING">TRUE</field>
                                            <value name="VALUE">
                                              <block type="math_number" id="pr[e.mE_2o|,=ZK}13O+">
                                                <field name="NUM">1</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="control" id="oV,[vYC:`Gk6jz7)DA7y">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                <field name="OID">wled.0.308398b61ff4.ps</field>
                                                <field name="WITH_DELAY">TRUE</field>
                                                <field name="DELAY_MS">2</field>
                                                <field name="UNIT">sec</field>
                                                <field name="CLEAR_RUNNING">TRUE</field>
                                                <value name="VALUE">
                                                  <block type="math_number" id="{!2bDer1LQ`K5c.Ee#QP">
                                                    <field name="NUM">1</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="timeouts_cleartimeout" id="6C1kNwYo-+=-_]|AC%~J">
                                                    <field name="NAME">timeout</field>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                                <next>
                                  <block type="comment" id="YH=nv/6p|Qgincsx6~,Y">
                                    <field name="COMMENT">Tor zu</field>
                                    <next>
                                      <block type="controls_if" id="^E!!jGc5LDX|QDQPQx%v">
                                        <value name="IF0">
                                          <block type="logic_operation" id="TyGHz0^P$]e#tw=kB@cK">
                                            <field name="OP">AND</field>
                                            <value name="A">
                                              <block type="logic_compare" id="hk~to@Q*fi`ZRb+FY@KD">
                                                <field name="OP">EQ</field>
                                                <value name="A">
                                                  <block type="get_value" id="~*YPuGCs_(yK;t,CMg($">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">alias.0.EG-Garage.Tor.any_001</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_boolean" id="tj_Gg{xq;CEz896x^`}p">
                                                    <field name="BOOL">TRUE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="logic_compare" id="!OACNt9q_5^KsTn#.%W3">
                                                <field name="OP">EQ</field>
                                                <value name="A">
                                                  <block type="get_value" id="p[kh(Kf{{wx$B4V5A)_`">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">alias.0.EG-Garage.Tor.any_002</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_boolean" id="oT|xw9KB[pd2V`.*fss2">
                                                    <field name="BOOL">FALSE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="debug" id="RjXx!uy.%$[PsZ;n6:YJ">
                                            <field name="Severity">log</field>
                                            <value name="TEXT">
                                              <shadow type="text" id="`xIu=mCUK}Iu%DKGB2fp">
                                                <field name="TEXT">Tor zu</field>
                                              </shadow>
                                            </value>
                                            <next>
                                              <block type="control" id="5khT545Yt$~wG99C!V*_">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">wled.0.308398b61ff4.ps</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="math_number" id="W+T.h98rXuCZLY7-roCY">
                                                    <field name="NUM">2</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="control" id="FZ~3|jI^O~arI%z=/x)e">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                    <field name="OID">wled.0.308398b61ff4.ps</field>
                                                    <field name="WITH_DELAY">TRUE</field>
                                                    <field name="DELAY_MS">4</field>
                                                    <field name="UNIT">sec</field>
                                                    <field name="CLEAR_RUNNING">TRUE</field>
                                                    <value name="VALUE">
                                                      <block type="math_number" id="jsb6AH^DI:_{;?#KM.p}">
                                                        <field name="NUM">4</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="control" id="vrAZ6SQeYc{Pd+(}G9_(">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                        <field name="OID">wled.0.308398b61ff4.ps</field>
                                                        <field name="WITH_DELAY">TRUE</field>
                                                        <field name="DELAY_MS">4</field>
                                                        <field name="UNIT">sec</field>
                                                        <field name="CLEAR_RUNNING">TRUE</field>
                                                        <value name="VALUE">
                                                          <block type="math_number" id="PyyIDwYWb/~(BQT}Jmsz">
                                                            <field name="NUM">5</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                        <next>
                                          <block type="comment" id="L/m*X=+%!SknD0oGum^_">
                                            <field name="COMMENT">Tor auf</field>
                                            <next>
                                              <block type="controls_if" id="*R.nmW{f{yF0[3m(vHzJ">
                                                <value name="IF0">
                                                  <block type="logic_operation" id="^H#fbTv$_U%7f:^KrB:N">
                                                    <field name="OP">AND</field>
                                                    <value name="A">
                                                      <block type="logic_compare" id="nn7__06acxQ]P_0r(KSi">
                                                        <field name="OP">EQ</field>
                                                        <value name="A">
                                                          <block type="get_value" id="yy+2%jbY=*~bkB,t/Wnc">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">alias.0.EG-Garage.Tor.any_001</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="logic_boolean" id="`}2n^O;`dB]v{q0G5F}U">
                                                            <field name="BOOL">FALSE</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="logic_compare" id="YVU_uG]hAR|coP4(py*6">
                                                        <field name="OP">EQ</field>
                                                        <value name="A">
                                                          <block type="get_value" id="e`#SIZY(Qjb!H+r#Ky_#">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">alias.0.EG-Garage.Tor.any_002</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="logic_boolean" id="m}Z4d(`5?ws{nkUp~=g=">
                                                            <field name="BOOL">TRUE</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO0">
                                                  <block type="debug" id="{uFB4IHvC]94gk~6ed_x">
                                                    <field name="Severity">log</field>
                                                    <value name="TEXT">
                                                      <shadow type="text" id="(J9H;4ijs0L#X|dN?u7F">
                                                        <field name="TEXT">Tor auf</field>
                                                      </shadow>
                                                    </value>
                                                    <next>
                                                      <block type="control" id="cNny6[!,oQg@d6L5Dt_8">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                        <field name="OID">wled.0.308398b61ff4.ps</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="math_number" id=":[s`#z.!Tm0bZS7{nY~r">
                                                            <field name="NUM">2</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="control" id="4ot=j)v8?SFlWUI]kcH,">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                            <field name="OID">wled.0.308398b61ff4.ps</field>
                                                            <field name="WITH_DELAY">TRUE</field>
                                                            <field name="DELAY_MS">4</field>
                                                            <field name="UNIT">sec</field>
                                                            <field name="CLEAR_RUNNING">TRUE</field>
                                                            <value name="VALUE">
                                                              <block type="math_number" id="^[$^/w{.|@~,@!}7:hBP">
                                                                <field name="NUM">4</field>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="control" id="{*]-)^T6Uwnlu-.78O{2">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                                <field name="OID">wled.0.308398b61ff4.ps</field>
                                                                <field name="WITH_DELAY">TRUE</field>
                                                                <field name="DELAY_MS">4</field>
                                                                <field name="UNIT">sec</field>
                                                                <field name="CLEAR_RUNNING">TRUE</field>
                                                                <value name="VALUE">
                                                                  <block type="math_number" id="nMFh8+9XM(^jADxS+Tp+">
                                                                    <field name="NUM">5</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </statement>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <next>
                      <block type="comment" id="m*Lk|FZWhz?0hvYz}yP;">
                        <field name="COMMENT">Aus Garagenefektlicht</field>
                        <next>
                          <block type="controls_if" id="s*~pl9^Ss_xyPRmG:0*B">
                            <value name="IF0">
                              <block type="logic_operation" id="DzF6?;1x6x$7RQpBuZ1.">
                                <field name="OP">OR</field>
                                <value name="A">
                                  <block type="logic_compare" id="T/a=rkv0.T,{FqaU1nN@">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id="?(Sf|5qS9ZQRM@ktmCh(">
                                        <field name="ATTR">val</field>
                                        <field name="OID">alias.0.EG-Garage.Tor.any_001</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="V]]Ibrc-pkfa!@bb:I{?">
                                        <field name="BOOL">TRUE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_compare" id="j1Cd[`jL5@lICEyx9x$z">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id="G(eVjk$0)=}(ZR(R~ji@">
                                        <field name="ATTR">val</field>
                                        <field name="OID">alias.0.EG-Garage.Tor.any_002</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="Cg*Oh4ETf5cyK/UxYx%k">
                                        <field name="BOOL">TRUE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="timeouts_settimeout" id=":RfDnHVq/hjw?4hr7*cO">
                                <field name="NAME">timeout</field>
                                <field name="DELAY">30</field>
                                <field name="UNIT">sec</field>
                                <statement name="STATEMENT">
                                  <block type="control" id="laC^cp@~YPwY`{7r[.tl">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">wled.0.308398b61ff4.ps</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="|U`iNDBL|W_,*hEmm]9p">
                                        <field name="NUM">0</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="control" id="L?4};[T.NNs`0sV#%SO#">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">wled.0.308398b61ff4.on</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="NcG1:g@sljb#=p~Ks?A)">
                                            <field name="BOOL">FALSE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
              <block type="comment" id="vW,)A+0!tKvlZ^R:chW-" x="87" y="837">
                <field name="COMMENT">Weihnachtsbeleuchtung</field>
                <next>
                  <block type="schedule_create" id="(AU9]u:-EQwK3/8~4c=t">
                    <field name="NAME">schedule1</field>
                    <value name="SCHEDULE">
                      <shadow type="field_cron" id="l5Xsg|r+5f!0ytc]@D2^">
                        <field name="CRON">* * * * *</field>
                      </shadow>
                    </value>
                    <statement name="STATEMENT">
                      <block type="controls_if" id="wi~E3/A$h:=eZ%q6TwY@">
                        <value name="IF0">
                          <block type="logic_compare" id="C|MVfG$~44KL,RWNK}Si">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="get_value" id="(dr9)[T-p(aNq9D3Ow~R">
                                <field name="ATTR">val</field>
                                <field name="OID">0_userdata.0.Datapoint.Zeiten_Daten.Weihnachtszeit</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_boolean" id="-D{%I/d%6|;(Z[$|aygb">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="controls_if" id="u~C54!6M.m$M]{Dfzmcn">
                            <value name="IF0">
                              <block type="logic_compare" id="T[;-^LVozVgUJ/t=0v`q">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="YF$0,CQm%tGbrHnEeU/]">
                                    <field name="ATTR">val</field>
                                    <field name="OID">0_userdata.0.Datapoint.Zeiten_Daten.Nacht</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="wj?)-;xVy:Z|l=,J2~_u">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="controls_if" id="so6skg--a-VSbC@s4W!!">
                                <value name="IF0">
                                  <block type="logic_operation" id="z=pQD4XK#s5U0N]b]{le">
                                    <field name="OP">OR</field>
                                    <value name="A">
                                      <block type="time_compare_ex" id="nC,X85;Uk0yh~fN6gO14">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                        <field name="USE_ACTUAL_TIME">TRUE</field>
                                        <field name="OPTION">between</field>
                                        <value name="START_TIME">
                                          <shadow type="text" id="neWYOnhJ:nP[@/^BD{LW">
                                            <field name="TEXT">16:00</field>
                                          </shadow>
                                        </value>
                                        <value name="END_TIME">
                                          <shadow type="text" id="lC4Y;Bq.pFkCT3}R3{FB">
                                            <field name="TEXT">23:00</field>
                                          </shadow>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="time_compare_ex" id="y|Lx=kN3!Q:qKi)~yT=K">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                        <field name="USE_ACTUAL_TIME">TRUE</field>
                                        <field name="OPTION">between</field>
                                        <value name="START_TIME">
                                          <shadow type="text" id="qcf{-c7)}g.)4dK|w)iK">
                                            <field name="TEXT">05:00</field>
                                          </shadow>
                                        </value>
                                        <value name="END_TIME">
                                          <shadow type="text" id="Bz#,K[-lY*.HG4q876/D">
                                            <field name="TEXT">09:00</field>
                                          </shadow>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="controls_if" id="|-kM9)Nvt+SO@^CTn/}v">
                                    <value name="IF0">
                                      <block type="logic_compare" id="5L~(|$Hw?L8:v(zWfpAl">
                                        <field name="OP">LTE</field>
                                        <value name="A">
                                          <block type="get_value" id="~3=[fxlXUacGI=I/Vw]|">
                                            <field name="ATTR">val</field>
                                            <field name="OID">wled.0.308398b61ff4.ps</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="CmS_$7=Xaov#Xu^Bzy-6">
                                            <field name="NUM">0</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="control" id="~PvGez9yXvD_~afk,9Ph">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">wled.0.308398b61ff4.ps</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="math_number" id="aZ`N)rTm[~8nnY~*ke6m">
                                            <field name="NUM">6</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="control" id="p$r*d]+`W|dy_(JnK@Ji">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">wled.0.308398b61ff4.on</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="logic_boolean" id="jCK.^d4y[5ED?$,anFEp">
                                                <field name="BOOL">TRUE</field>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                              </block>
                            </statement>
                          </block>
                        </statement>
                        <next>
                          <block type="controls_if" id="+a;@10ENB1,VyB7H29d+">
                            <value name="IF0">
                              <block type="logic_compare" id="^#h,+6]cq5qw4*x/)fN2">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="?o(t~r`#4IZznQUuFNY~">
                                    <field name="ATTR">val</field>
                                    <field name="OID">0_userdata.0.Datapoint.Zeiten_Daten.Weihnachtszeit</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="vEq=hu:}z6yXyuuji%Fl">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="controls_if" id="XK^fGm%Nlt[5l6}trEfI">
                                <value name="IF0">
                                  <block type="logic_compare" id="6,/=W7`3NKj.M.7H8x2J">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id="X8[vsS9A1J%p5dzH%u7%">
                                        <field name="ATTR">val</field>
                                        <field name="OID">wled.0.308398b61ff4.ps</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="math_number" id="?8.RH_s?nV:w_nC9#g]T">
                                        <field name="NUM">6</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="control" id="?S/5?ncNUdN^5yM(Hc%P">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">wled.0.308398b61ff4.ps</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="XPe*sp.IuZqNN_{}=~W,">
                                        <field name="NUM">0</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="control" id="iU.|;:WDSS2Qa6%5D*73">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">wled.0.308398b61ff4.on</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="v,+l}HDsG:gk3_pkSE}{">
                                            <field name="BOOL">FALSE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                                <next>
                                  <block type="controls_if" id="FLnQ91-cY23x3)T-`}If">
                                    <value name="IF0">
                                      <block type="logic_operation" id="w8[a~nmuy}x#qv`Kg%#^">
                                        <field name="OP">AND</field>
                                        <value name="A">
                                          <block type="time_compare_ex" id="dKH$V;Wi2K9^2:8[w$n|">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                            <field name="USE_ACTUAL_TIME">TRUE</field>
                                            <field name="OPTION">not between</field>
                                            <value name="START_TIME">
                                              <shadow type="text" id="b#Z3Hs2m64Z/HUK3^i-1">
                                                <field name="TEXT">16:00</field>
                                              </shadow>
                                            </value>
                                            <value name="END_TIME">
                                              <shadow type="text" id="3jybM8D/2ejE24d;Y%+h">
                                                <field name="TEXT">23:00</field>
                                              </shadow>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="time_compare_ex" id="RC:q#BEAk(p^Orv%]LgB">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                            <field name="USE_ACTUAL_TIME">TRUE</field>
                                            <field name="OPTION">not between</field>
                                            <value name="START_TIME">
                                              <shadow type="text" id="eUclCT,0)kfT0C3g!XM5">
                                                <field name="TEXT">05:00</field>
                                              </shadow>
                                            </value>
                                            <value name="END_TIME">
                                              <shadow type="text" id="SE8JamRZfS;-d,LLd;NA">
                                                <field name="TEXT">09:00</field>
                                              </shadow>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="control" id="0Arqyuy7!2)BGL@V.i[(">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">wled.0.308398b61ff4.ps</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="math_number" id="wmq!Hlx.q]-F)-0{HK*{">
                                            <field name="NUM">0</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="control" id="_JR4u?lt{I[1tX,*xgcD">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">wled.0.308398b61ff4.on</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="logic_boolean" id="0C5p|%*#S*hhr!n6IR~?">
                                                <field name="BOOL">FALSE</field>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </next>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
              <block type="schedule" id=")^~0aUCL~?%{8j=^[!a;" x="87" y="1612">
                <field name="SCHEDULE">0 23 * * *</field>
                <statement name="STATEMENT">
                  <block type="controls_if" id="2/o$bPbOe:-[B*d]x{4Q">
                    <value name="IF0">
                      <block type="logic_compare" id="s#GfY*+.yDKSO3e;S))k">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="Or9Ar%KWDBdn0,oJ6!C{">
                            <field name="ATTR">val</field>
                            <field name="OID">0_userdata.0.Datapoint.Zeiten_Daten.Weihnachtszeit</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="X]*gF5n9s!LaY_dzPvhZ">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="control" id="|K|9+K]e;{JQ)IxM*:O*">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">wled.0.308398b61ff4.ps</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="math_number" id="1;(!EpBNMB9Bqg:PUVg4">
                            <field name="NUM">0</field>
                          </block>
                        </value>
                        <next>
                          <block type="control" id="y69(6q2$#OkOBDCB2qQU">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">wled.0.308398b61ff4.on</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="{c5Fbx7,aZ}_T?VS#:4C">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </statement>
              </block>
              <block type="comment" id="*cw_3j||]9mGbfD3])tT" x="87" y="1862">
                <field name="COMMENT">Damit der ESP8266 nicht einschläft</field>
                <next>
                  <block type="schedule" id="|Ph7A#zOLZvBy):UY@}w">
                    <field name="SCHEDULE">* * * * *</field>
                    <statement name="STATEMENT">
                      <block type="controls_if" id="E]~}tb]~aQ`O~^^JDRe5">
                        <mutation else="1"></mutation>
                        <value name="IF0">
                          <block type="logic_compare" id="ql{m^REgb2=.OWM:Tww,">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="get_value" id="8J3^mLMx+/6d6~11-`/N">
                                <field name="ATTR">val</field>
                                <field name="OID">0_userdata.0.Datapoint.Zeiten_Daten.Nacht</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_boolean" id="zteB?n91!{U@$W,Ci_@A">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="controls_if" id="ONci|vC/jQ`(6F0Qh${6">
                            <mutation else="1"></mutation>
                            <value name="IF0">
                              <block type="logic_compare" id="*~Ck,z$aij44)L:CFbu!">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="variables_get" id="^fbyp(]`E0-xdmvA,nC:">
                                    <field name="VAR" id="g;sVV^-s@hbkRnou(]]U">Weckzaehler</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="math_number" id="cBwmu6xnI|J=?6:o`rC+">
                                    <field name="NUM">30</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="controls_if" id="g5clz!n{.;,bP`{]BofC">
                                <value name="IF0">
                                  <block type="logic_compare" id="`.[gG0wUlQ7il;p4~jtY">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id="^4c%r4J~bxU:6Ri-$RL,">
                                        <field name="ATTR">val</field>
                                        <field name="OID">0_userdata.0.Datapoint.Zeiten_Daten.Weihnachtszeit</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="HA8_Z41yn#Mx/(6_Tmct">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="controls_if" id="qH?L96#AKmPaP[mzQhgp">
                                    <value name="IF0">
                                      <block type="logic_compare" id="nc,=NCVYrOb3[mLWL#n~">
                                        <field name="OP">EQ</field>
                                        <value name="A">
                                          <block type="get_value" id=")#VTDXbMXP|Y8WD/)?oK">
                                            <field name="ATTR">val</field>
                                            <field name="OID">alias.0.EG-Garage.Tor.any_001</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_boolean" id="vz*-HO:y!FPyqOs*U^|T">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="comment" id="8@ZG=U,xWEVO+Gr;]p[9">
                                        <field name="COMMENT">Instanz neu starten</field>
                                        <next>
                                          <block type="control" id="S/`IYH$VBvq5bQrBD*Ms">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">system.adapter.wled.0.alive</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="logic_boolean" id="-G0NyL4itst|ei7aFPc_">
                                                <field name="BOOL">FALSE</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="control" id="GwpI;gVcNm*IS[%jdTBA">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                <field name="OID">system.adapter.wled.0.alive</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="logic_boolean" id="I}vt5PWr2e2H`9j82/qg">
                                                    <field name="BOOL">TRUE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <next>
                                  <block type="variables_set" id="Bkxe;/*PyiQu,DY9ziSE">
                                    <field name="VAR" id="g;sVV^-s@hbkRnou(]]U">Weckzaehler</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="Rndu2Xfr(iksj2#4W?4:">
                                        <field name="NUM">0</field>
                                      </block>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </statement>
                            <statement name="ELSE">
                              <block type="math_change" id="KMdBac4/XUK!!hzeTRN`">
                                <field name="VAR" id="g;sVV^-s@hbkRnou(]]U">Weckzaehler</field>
                                <value name="DELTA">
                                  <shadow type="math_number" id="FP#ZQ.T|3YIo;#JwUNx8">
                                    <field name="NUM">1</field>
                                  </shadow>
                                </value>
                              </block>
                            </statement>
                          </block>
                        </statement>
                        <statement name="ELSE">
                          <block type="variables_set" id="tvo/R@5)_bVdLnw:aQGK">
                            <field name="VAR" id="g;sVV^-s@hbkRnou(]]U">Weckzaehler</field>
                            <value name="VALUE">
                              <block type="math_number" id=":c@ysD%oODVxHTYOo7tE">
                                <field name="NUM">30</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </xml>
            

            Am Ende ist noch das Aufwecken des ESP8266 drin da ich nicht rausgefunden habe warum der einschläft, mache ich einen Restart von WLED und das Problem ist umgangen.

            Grüße aus dem Sauerland

            V Offline
            V Offline
            Vocaris
            schrieb am zuletzt editiert von
            #563

            @berges01. Moin
            Danke. Ich schau mir das mal an.

            1 Antwort Letzte Antwort
            0
            • opossumO opossum

              Hallo, @vocaris,

              nimm mal den "Pause"-Befehl aus Deinem Script raus. Hatte ich vorher auch so, lief nicht.
              Zitat von @Asgothian aus diesem Post:

              Zitat Anfang:

              Timeout: Es wird Ein Block an Aktionen im Timeout angegeben der in x ms ausgeführt wird, aber die "normale" Bearbeitung des Skriptes geht weiter.
              Pause: Es wird x ms gewartet bis es weiter geht.
              Der Haupt unterschied besteht in der Art der Abarbeitung.
              Der Einsatz von "Pause" führt zu einer synchronen Abarbeitung der im Skript stehenden Befehle in genau der angegebenen Reihenfolge. Pause kann beim Thema "Skript erneut auslösen" zu Problemen führen.
              Der Einsatz von Timeout führt zu einer asynchronen Abarbeitung so das das eigentliche Skript beendet wird und nur die im Timeout angegebenen Befehle werden in einem eigenen Ablauf im Hintergrund ausgelöst.
              Insgesamt sollte wann immer möglich mit einem Timeout gearbeitet werden da die "Pause" die zu dem Skript gehörenden Ressourcen weiter belegt bleiben. Je länger die Zeit ist die gewartet wird desto wichtiger ist der Einsatz von Timeout an Stelle von Pause.
              Ich persönlich würde Pause nur einsetzen wenn sichergestellt ist das das Skript während der Pause nicht ein zweites mal aktiviert werden kann. Das wäre zu Beginn von Skripten oder innerhalb eines Zeitplans. Immer dann wenn ein Skript über einen "event" (Trigger, nicht Zeitplan) ausgelöst wird würde ich mit einem Timeout arbeiten.

              Zitat Ende
              Vielleicht hilft es Dir ja.

              V Offline
              V Offline
              Vocaris
              schrieb am zuletzt editiert von
              #564

              @opossum Hei.
              Also in der Tat läuft es dann. Aber dadurch, dass ich keine Pause drin habe, macht er natürlich im Bereich "Garage offen" nicht die Schritte Grünes Licht, dann weißes Lauflicht und am Ende die Spots. Da fliegt er ja in Millisekunden drüber und endet bei den Sport. Wie bekomme ich denn nun diese sequantiellen "ToDos" rein?

              opossumO 1 Antwort Letzte Antwort
              0
              • V Vocaris

                @opossum Hei.
                Also in der Tat läuft es dann. Aber dadurch, dass ich keine Pause drin habe, macht er natürlich im Bereich "Garage offen" nicht die Schritte Grünes Licht, dann weißes Lauflicht und am Ende die Spots. Da fliegt er ja in Millisekunden drüber und endet bei den Sport. Wie bekomme ich denn nun diese sequantiellen "ToDos" rein?

                opossumO Offline
                opossumO Offline
                opossum
                schrieb am zuletzt editiert von
                #565

                Hallo, @vocaris,

                Du könntest die einzelnen Schritte mit Verzögerungen starten, so geht es zumindest bei mir.
                740c2d9e-9c3e-4529-bfa5-a73af5f60dbc-image.png

                Allerdings lasse ich während der Torbewegung nur zwei Lauflichter in Rot anzeigen. Hier mal das ganze Script. Ich benutze, wie schon geschrieben, ein weiteres Script, dass die Sensoren auswertet und einen Datenpunkt setzt.

                206eb836-199a-4a7f-9cbc-f2e91aa05b25-image.png

                https://schlepper-petersdorf.jimdofree.com/

                1 Antwort Letzte Antwort
                0
                • V Offline
                  V Offline
                  Vocaris
                  schrieb am zuletzt editiert von
                  #566

                  @opossum
                  Hei,

                  habe ich auch schon versucht. Aber Er scheitert wieder beim runterfahren.
                  Dort startet das rote Lauflicht und auf halber Fahrt geht er dann einfach über in den Bereich als wäre die Garage schon zu... Ich raffe das einfach nicht.
                  Ggf. kann mir ein mal ein Script geben, dass die Stellungen der Fensterkontakte logt. Damit ich in einer Liste sehen kann, ob ggf. beim runterfahren ein Wert geändert wird. Das Log kann bestimmt eine Liste der Timestamps ausgeben. Ich bin einfach zu blöd für Blockly...

                  2205d64d-81ab-4e85-b33d-42789a37a04d-image.png

                  Berges01B 1 Antwort Letzte Antwort
                  0
                  • V Vocaris

                    @opossum
                    Hei,

                    habe ich auch schon versucht. Aber Er scheitert wieder beim runterfahren.
                    Dort startet das rote Lauflicht und auf halber Fahrt geht er dann einfach über in den Bereich als wäre die Garage schon zu... Ich raffe das einfach nicht.
                    Ggf. kann mir ein mal ein Script geben, dass die Stellungen der Fensterkontakte logt. Damit ich in einer Liste sehen kann, ob ggf. beim runterfahren ein Wert geändert wird. Das Log kann bestimmt eine Liste der Timestamps ausgeben. Ich bin einfach zu blöd für Blockly...

                    2205d64d-81ab-4e85-b33d-42789a37a04d-image.png

                    Berges01B Offline
                    Berges01B Offline
                    Berges01
                    schrieb am zuletzt editiert von
                    #567

                    @vocaris

                    Also mein Blockly sieht fast so aus wie das von @opossum .
                    Kann es sein, das dein Fensterkontakt beim runter fahren an dem Magneten vorbei fährt der für offen oder geschlossen angebracht ist ?
                    Magnetkontakte sind da ab und an sehr empfindlich. Weiterhin sind die mit Reedkontakten erschütterungsempfindlich. Lock mal die Schalter mit.
                    Unsere Blocklies laufen zumindest bei mir ohne Probleme.
                    Gruss

                    F.B.

                    opossumO 1 Antwort Letzte Antwort
                    0
                    • Berges01B Berges01

                      @vocaris

                      Also mein Blockly sieht fast so aus wie das von @opossum .
                      Kann es sein, das dein Fensterkontakt beim runter fahren an dem Magneten vorbei fährt der für offen oder geschlossen angebracht ist ?
                      Magnetkontakte sind da ab und an sehr empfindlich. Weiterhin sind die mit Reedkontakten erschütterungsempfindlich. Lock mal die Schalter mit.
                      Unsere Blocklies laufen zumindest bei mir ohne Probleme.
                      Gruss

                      opossumO Offline
                      opossumO Offline
                      opossum
                      schrieb am zuletzt editiert von opossum
                      #568

                      Hallo, @berges01,

                      das Problem mit den Magnetkontakten hatte ich auch. Habe dann auf optische Fensterkontakte von Homematic umgestellt, dann lief es. Bei den Magneten hatte ich die Effekte von @vocaris.
                      @Vocaris
                      Du kannst Dein Script erweitern, in dem Du Debug output-Blöcke einbaust. Immer dann, wenn Du den Zustand der Kontakte abfragst, würde ich solch einen Block einbauen. Dann siehst Du im Protokoll, wann welcher Zustand vorhanden ist. Einfach den Debug output an die Stellen setzen, wo Du eine Protokollausgabe möchtest. Dann noch einen Text reinschreiben und mal schauen, was beim Tor dann passiert mit den Kontakten. Nur so wirst Du herausfinden, wo der Fehler liegt.
                      Ich würde auch mal die on/off-Befehle aus dem Script nehmen. Ich habe das nur am Anfang drin, wenn das Tor von geschlossen auf fahren geht.

                      https://schlepper-petersdorf.jimdofree.com/

                      V 1 Antwort Letzte Antwort
                      0
                      • opossumO opossum

                        Hallo, @berges01,

                        das Problem mit den Magnetkontakten hatte ich auch. Habe dann auf optische Fensterkontakte von Homematic umgestellt, dann lief es. Bei den Magneten hatte ich die Effekte von @vocaris.
                        @Vocaris
                        Du kannst Dein Script erweitern, in dem Du Debug output-Blöcke einbaust. Immer dann, wenn Du den Zustand der Kontakte abfragst, würde ich solch einen Block einbauen. Dann siehst Du im Protokoll, wann welcher Zustand vorhanden ist. Einfach den Debug output an die Stellen setzen, wo Du eine Protokollausgabe möchtest. Dann noch einen Text reinschreiben und mal schauen, was beim Tor dann passiert mit den Kontakten. Nur so wirst Du herausfinden, wo der Fehler liegt.
                        Ich würde auch mal die on/off-Befehle aus dem Script nehmen. Ich habe das nur am Anfang drin, wenn das Tor von geschlossen auf fahren geht.

                        V Offline
                        V Offline
                        Vocaris
                        schrieb am zuletzt editiert von
                        #569

                        @opossum Danke aber habe leider null Plan davon.
                        Weiß ja gar nicht, wo ich das debug reinsetzen soll und was er dann ausgeben soll.
                        Ich verstehe einfach nicht, warum er beim runterfahren den "Driss" macht.
                        Rauf klappt ja auch.
                        Die Installation ist so, dass die beiden Fensterkontakte (Sendeeinheit) Fix an ihren Punkten kleben. Einer oben und einer unten. Auf dem Torschiene beweget sich nur das kl. Magnet.
                        Da er ja beim runterfahren mitten in dem Ablauf für "Rotes Licht" in die Prozedur "Garage offen" springt, muss er ja auf dem Fahrweg bei oberen Schalter nochmals "schließen".
                        Ergo muss bei ihm etwas magnetisches vorbeikommen. In dem Fall müsste aber der Timestamp sich bei dem Gerät ändern.
                        Wenn ich während der Fahrt das ioB Objekt beobachte, sehe ich keine Änderung...

                        opossumO Berges01B 2 Antworten Letzte Antwort
                        0
                        • V Vocaris

                          @opossum Danke aber habe leider null Plan davon.
                          Weiß ja gar nicht, wo ich das debug reinsetzen soll und was er dann ausgeben soll.
                          Ich verstehe einfach nicht, warum er beim runterfahren den "Driss" macht.
                          Rauf klappt ja auch.
                          Die Installation ist so, dass die beiden Fensterkontakte (Sendeeinheit) Fix an ihren Punkten kleben. Einer oben und einer unten. Auf dem Torschiene beweget sich nur das kl. Magnet.
                          Da er ja beim runterfahren mitten in dem Ablauf für "Rotes Licht" in die Prozedur "Garage offen" springt, muss er ja auf dem Fahrweg bei oberen Schalter nochmals "schließen".
                          Ergo muss bei ihm etwas magnetisches vorbeikommen. In dem Fall müsste aber der Timestamp sich bei dem Gerät ändern.
                          Wenn ich während der Fahrt das ioB Objekt beobachte, sehe ich keine Änderung...

                          opossumO Offline
                          opossumO Offline
                          opossum
                          schrieb am zuletzt editiert von
                          #570

                          @vocaris
                          schau mal in den Chat.

                          https://schlepper-petersdorf.jimdofree.com/

                          V 1 Antwort Letzte Antwort
                          0
                          • V Vocaris

                            @opossum Danke aber habe leider null Plan davon.
                            Weiß ja gar nicht, wo ich das debug reinsetzen soll und was er dann ausgeben soll.
                            Ich verstehe einfach nicht, warum er beim runterfahren den "Driss" macht.
                            Rauf klappt ja auch.
                            Die Installation ist so, dass die beiden Fensterkontakte (Sendeeinheit) Fix an ihren Punkten kleben. Einer oben und einer unten. Auf dem Torschiene beweget sich nur das kl. Magnet.
                            Da er ja beim runterfahren mitten in dem Ablauf für "Rotes Licht" in die Prozedur "Garage offen" springt, muss er ja auf dem Fahrweg bei oberen Schalter nochmals "schließen".
                            Ergo muss bei ihm etwas magnetisches vorbeikommen. In dem Fall müsste aber der Timestamp sich bei dem Gerät ändern.
                            Wenn ich während der Fahrt das ioB Objekt beobachte, sehe ich keine Änderung...

                            Berges01B Offline
                            Berges01B Offline
                            Berges01
                            schrieb am zuletzt editiert von
                            #571

                            @vocaris

                            Schau wenn du solche Debugeinträge einfügst, so kannst du Unten im Fenster sehen wann und was passiert.
                            b2634d97-9ab8-4254-8558-21441039a436-image.png

                            9aec830a-5eb7-49e5-bf34-d81ddfb684be-image.png
                            Solche Einträge wie hier zu sehen "Trigger (2)", "Toor fährt" usw. kannst du sehen und bekommst so genau angezeigt was im Programmablauf passiert.
                            Gruss

                            F.B.

                            1 Antwort Letzte Antwort
                            0
                            • opossumO opossum

                              @vocaris
                              schau mal in den Chat.

                              V Offline
                              V Offline
                              Vocaris
                              schrieb am zuletzt editiert von
                              #572

                              @opossum Ich habe für alle drei Blöck einen eigenen Trigger gemacht.
                              Dann geht es. Muss ich nicht verstehen... Aber ich bin ja auch kein Informatiker

                              5fd24c25-00cb-4a36-9f3c-48980acbe2ec-image.png

                              Berges01B 1 Antwort Letzte Antwort
                              0
                              • V Vocaris

                                @opossum Ich habe für alle drei Blöck einen eigenen Trigger gemacht.
                                Dann geht es. Muss ich nicht verstehen... Aber ich bin ja auch kein Informatiker

                                5fd24c25-00cb-4a36-9f3c-48980acbe2ec-image.png

                                Berges01B Offline
                                Berges01B Offline
                                Berges01
                                schrieb am zuletzt editiert von
                                #573

                                @vocaris

                                Bei deinen Trigger Blöcken (Weinrote Blöcke), sind als Trigger der ID Open drin.
                                Das auch noch 2 x.
                                Die Anweisungen in solch einem Block wird jedes mal durchlaufen wenn der ID Open seinen Zustand verändert.
                                Das macht so eigentlich keinen Sinn.
                                Mein Block wir nur durchlaufen wenn der Endschalter auf oder zu seinen Zustand verändert.
                                Schau mein Beispiel.
                                Innerhalb dieses Triggerblockes kontrolliere ich die Zustände der Endschalter auf/zu und reagiere dementsprechend.
                                Nur Guten Mutes, Rom ist auch nicht in einem Tag gebaut.
                                Für die Blocklyprogrammierung muss man kein Informatiker sein nur Logisches Denken ist unabdingbar.
                                Schau dir mal erst alle Blocklys an und versuche heraus zu bekommen was wie arbeitet.
                                Gruss

                                F.B.

                                W V 2 Antworten Letzte Antwort
                                1
                                • Berges01B Berges01

                                  @vocaris

                                  Bei deinen Trigger Blöcken (Weinrote Blöcke), sind als Trigger der ID Open drin.
                                  Das auch noch 2 x.
                                  Die Anweisungen in solch einem Block wird jedes mal durchlaufen wenn der ID Open seinen Zustand verändert.
                                  Das macht so eigentlich keinen Sinn.
                                  Mein Block wir nur durchlaufen wenn der Endschalter auf oder zu seinen Zustand verändert.
                                  Schau mein Beispiel.
                                  Innerhalb dieses Triggerblockes kontrolliere ich die Zustände der Endschalter auf/zu und reagiere dementsprechend.
                                  Nur Guten Mutes, Rom ist auch nicht in einem Tag gebaut.
                                  Für die Blocklyprogrammierung muss man kein Informatiker sein nur Logisches Denken ist unabdingbar.
                                  Schau dir mal erst alle Blocklys an und versuche heraus zu bekommen was wie arbeitet.
                                  Gruss

                                  W Offline
                                  W Offline
                                  warp735
                                  schrieb am zuletzt editiert von
                                  #574

                                  Mein Tor stellt zwar die Endlagen zur Verfügung, aber ich steuer das nur über n timeout.

                                  Berges01B 1 Antwort Letzte Antwort
                                  0
                                  • W warp735

                                    Mein Tor stellt zwar die Endlagen zur Verfügung, aber ich steuer das nur über n timeout.

                                    Berges01B Offline
                                    Berges01B Offline
                                    Berges01
                                    schrieb am zuletzt editiert von
                                    #575

                                    @warp735

                                    Ja es ist wie immer "viele Wege führen nach Rom".
                                    Darum würde ich auch jedes Mal sagen, ich stelle ein Beispiel hier ein und keine Vorgabe.
                                    Ich freue mich immer wenn einer Hier Beispiele reinsetzt, dadurch habe ich schon vieles gelernt.
                                    Ich baue wenn Möglich alles mit Festen Vorgaben auf und weniger mit Timern.
                                    Ab und an baue ich etwas auch mit Countern auf.
                                    Von den Vorher benutzen SmartHome Systemen bin ich was Timer, Paúse und Timeout betrifft ein gebranntes Kind.
                                    Läuft der Timer noch oder nicht, löst er Aktionen aus die ich gar nicht haben möchte oder reagiert er Unlogisch und nicht nach Zeitvorgabe.
                                    Aber das ist nur Meine Meinung und soll erklären warum ich etwas mache.
                                    Gruss

                                    F.B.

                                    W 1 Antwort Letzte Antwort
                                    1
                                    • Berges01B Berges01

                                      @warp735

                                      Ja es ist wie immer "viele Wege führen nach Rom".
                                      Darum würde ich auch jedes Mal sagen, ich stelle ein Beispiel hier ein und keine Vorgabe.
                                      Ich freue mich immer wenn einer Hier Beispiele reinsetzt, dadurch habe ich schon vieles gelernt.
                                      Ich baue wenn Möglich alles mit Festen Vorgaben auf und weniger mit Timern.
                                      Ab und an baue ich etwas auch mit Countern auf.
                                      Von den Vorher benutzen SmartHome Systemen bin ich was Timer, Paúse und Timeout betrifft ein gebranntes Kind.
                                      Läuft der Timer noch oder nicht, löst er Aktionen aus die ich gar nicht haben möchte oder reagiert er Unlogisch und nicht nach Zeitvorgabe.
                                      Aber das ist nur Meine Meinung und soll erklären warum ich etwas mache.
                                      Gruss

                                      W Offline
                                      W Offline
                                      warp735
                                      schrieb am zuletzt editiert von
                                      #576

                                      Versteh Dich schon. Man muss halt wissen was man macht ;)

                                      Mich hat mehr das abrupte ab / umschalten des Lichts bei erreichen einer Endlage gestört. Das sieht einfach nicht schön aus, wenn zum Beipiel das rote Lauflicht mitten in der Bewegung abgewürgt wird.
                                      Hat zwar einiges an Zeit gekostet das abzustimmen, aber jetzt sieht es halt super harmonisch aus.

                                      1 Antwort Letzte Antwort
                                      1
                                      • Berges01B Berges01

                                        @vocaris

                                        Bei deinen Trigger Blöcken (Weinrote Blöcke), sind als Trigger der ID Open drin.
                                        Das auch noch 2 x.
                                        Die Anweisungen in solch einem Block wird jedes mal durchlaufen wenn der ID Open seinen Zustand verändert.
                                        Das macht so eigentlich keinen Sinn.
                                        Mein Block wir nur durchlaufen wenn der Endschalter auf oder zu seinen Zustand verändert.
                                        Schau mein Beispiel.
                                        Innerhalb dieses Triggerblockes kontrolliere ich die Zustände der Endschalter auf/zu und reagiere dementsprechend.
                                        Nur Guten Mutes, Rom ist auch nicht in einem Tag gebaut.
                                        Für die Blocklyprogrammierung muss man kein Informatiker sein nur Logisches Denken ist unabdingbar.
                                        Schau dir mal erst alle Blocklys an und versuche heraus zu bekommen was wie arbeitet.
                                        Gruss

                                        V Offline
                                        V Offline
                                        Vocaris
                                        schrieb am zuletzt editiert von
                                        #577

                                        @berges01 dank dir für dein Post.
                                        Vorab. Es funktionierte und am nächsten Tag (ohne das ich was geändert habe) war es wieder so wie vorher.. Von Geisterhand.

                                        OK das mit dem Triggern und den beiden Open habe ich aus Scripten von hier.
                                        In verstehe das so:
                                        Das Script (bzw. dieser Trigger-Block) läuft nur dann los, wenn sich bei einem der oberen beiden Objekten (das sind die States der beide Kontakte) einen Veränderung ergibt.
                                        Und ich meine, das ich das auch brauche. Wenn ich nur ein Objekt einbinde (z.B. den Kontakt oben, der im geschlossenen Zustand ja auch true steht) und ich die Garage hoch fahre, dann dürfte der Trigger ja nicht "ziehen", denn der Kontakt oben ändert sich erst, wenn das Tor oben ist.
                                        Aber ggf. ist bei mir das logische Denken für sowas ausgeschaltet (Gott sei dank finde ich noch dir Toilette :joy: )

                                        Berges01B 1 Antwort Letzte Antwort
                                        0
                                        • V Vocaris

                                          @berges01 dank dir für dein Post.
                                          Vorab. Es funktionierte und am nächsten Tag (ohne das ich was geändert habe) war es wieder so wie vorher.. Von Geisterhand.

                                          OK das mit dem Triggern und den beiden Open habe ich aus Scripten von hier.
                                          In verstehe das so:
                                          Das Script (bzw. dieser Trigger-Block) läuft nur dann los, wenn sich bei einem der oberen beiden Objekten (das sind die States der beide Kontakte) einen Veränderung ergibt.
                                          Und ich meine, das ich das auch brauche. Wenn ich nur ein Objekt einbinde (z.B. den Kontakt oben, der im geschlossenen Zustand ja auch true steht) und ich die Garage hoch fahre, dann dürfte der Trigger ja nicht "ziehen", denn der Kontakt oben ändert sich erst, wenn das Tor oben ist.
                                          Aber ggf. ist bei mir das logische Denken für sowas ausgeschaltet (Gott sei dank finde ich noch dir Toilette :joy: )

                                          Berges01B Offline
                                          Berges01B Offline
                                          Berges01
                                          schrieb am zuletzt editiert von
                                          #578

                                          @vocaris

                                          Hallo Vorab das mit dem Logischen Denken wahr nicht Diskriminierent gemeint sondern Sachlich !
                                          Wenn du mich kennen würdest, währe das mit den Lockeren Sprüchen normal und unmissverständlich.
                                          Ab und an schlage ich über die Stränge aber immer locker vom Hocker auch mit 64 Lenzen.

                                          So jetzt zu deinem Problem.
                                          Schau dir mal mein Beispiel an :
                                          Der Trigger wird bei mir von den Endschaltern offen und geschlossen durchgeführt.
                                          Beide sind gleichberechtigt im Triggerblock.
                                          Der Triggerblock steht auf "wurde geändert" also bei jeder Änderung an den Endschaltern wird alles das was in dem Block eingeschlossen ist abgearbeitet.
                                          Innerhalb dieses Blockes frage ich dann die Zustände der Endschalter ab und habe somit die Toorzustände offen, in Bewegung und geschlossen selektiert.
                                          Jetzt muss ich nur noch innerhalb von jeder Selektion die Arbeitsweise des WLED anweisen und habe somit die volle Funktion des Garageneffektlichtes erzeugt.
                                          Wenn ich jetzt noch innerhalb der Selektion einen "debug output Block" mit dem text offen, zu und in Bewegung einfüge, so kann ich im Fenster unterhalb der Blockeditierung sehen wann was passiert.
                                          Ist etwas dumm zu erklären, aber ich hoffe das du mir folgen kannst.
                                          Probiere mal das wird dir schon gelingen.

                                          F.B.

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


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          545

                                          Online

                                          32.4k

                                          Benutzer

                                          81.4k

                                          Themen

                                          1.3m

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

                                          • Du hast noch kein Konto? Registrieren

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