Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. "Geisterschalter" - finde den Fehler nicht...

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    "Geisterschalter" - finde den Fehler nicht...

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

      Hallo Ihr!

      Ich habe heute fast den gesamten Tag damit zugebracht den Fehler im Script zufinden.
      Ich habe nun aufgegeben und hoffe auf Euch!

      Hintergrund:
      Ich habe im Treppenhaus zwei LED-Lichtbänder (RGBIC) installiert. Dieses sollen im Nachtlichtmodus (Script) den Weg nach unten oder wieder rauf weisen.
      So gibt es im Skribt einen Teil "nach oben". Dort wird durch einen BWM getriggert erst das erste "Lauflicht" und mit entsprechend Verzögerung das zweite "Lauflicht" gestartet.
      Rauf klappt super.
      Ein Teil des Scribtes "wir nach unten" startet per BWM nur das untere Lauflicht mit Laufrichtung nach unten.
      Klappt auch super.
      Nun mein Sorgenkind: "Tamara nach unten": hier sollte erst das obere Lichtband und dann, mit Verzögerung, das untere Lichtband mit Lauflicht (beide) nach unten laufen.
      Aber: es laufen SOFORT beide Lichtbänder los, beide nach unten.
      Was aber wirklich spooky ist: Das passiert sogar wenn ich den Teil unter der Pause rausnehme.
      Ich verstehe es einfach nicht mehr...

      Vorsorglich sei gesagt, dass ich (außerhalb dieses Scribtes) das obere Lichtband problemlos steuern kann, nur eben nicht innerhalb des Scribtes.

      Und hier ist das Scribt:

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable type="timeout" id="timeout">timeout</variable>
        </variables>
        <block type="comment" id="%}5iTixXfyePgyiEOq:E" x="-388" y="-587">
          <field name="COMMENT">Nachtlicht im Treppenhaus</field>
          <next>
            <block type="on_ext" id=":E5alM4wZ#pEb1_{@fIK">
              <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation>
              <field name="CONDITION">ne</field>
              <field name="ACK_CONDITION"></field>
              <value name="OID0">
                <shadow type="field_oid" id="iV.SgW@5hZUzI?R)l+S`">
                  <field name="oid">tuya.0.bfbe9fbf11ac776ad6wvfk.1</field>
                </shadow>
              </value>
              <value name="OID1">
                <shadow type="field_oid" id="R2DbPS(4Sl`T5qvSS4(1">
                  <field name="oid">tuya.0.bfa5ce69c1d09d514frmaw.1</field>
                </shadow>
              </value>
              <value name="OID2">
                <shadow type="field_oid" id="T}i5S/w0}=d|CP|q7=_K">
                  <field name="oid">tuya.0.bfa973d1d283b503626a4m.1</field>
                </shadow>
              </value>
              <statement name="STATEMENT">
                <block type="comment" id="B,pcu?M%c96YT*BPA-[4">
                  <field name="COMMENT">Nach oben</field>
                  <next>
                    <block type="controls_if" id="SOLou3[ODTIlOL_Vq6Bh">
                      <value name="IF0">
                        <block type="logic_compare" id="+L~G^b84},2_n={GNr#q">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="@Uur:?)M19aowyMvcENr">
                              <field name="ATTR">val</field>
                              <field name="OID">tuya.0.bfa5ce69c1d09d514frmaw.1</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="math_number" id="fHBQy[o,wj~`DE0Rz_)|">
                              <field name="NUM">0</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="debug" id="1rWvRA1Uh~n1(gk5)1R3">
                          <field name="Severity">warn</field>
                          <value name="TEXT">
                            <shadow type="text" id="vZ$C.T+yDjUB.6GhD,lw">
                              <field name="TEXT">PIR vor Wohnetage detektiert</field>
                            </shadow>
                          </value>
                          <next>
                            <block type="timeouts_cleartimeout" id="g@t!xY;Aq@.H/uj^?]x$">
                              <field name="NAME">timeout</field>
                              <next>
                                <block type="controls_if" id="xaGCl6)9wI3o4_DnB{[z">
                                  <value name="IF0">
                                    <block type="logic_operation" id=",O:Yxo*yAqs!;-2PN80%" inline="false">
                                      <field name="OP">AND</field>
                                      <value name="A">
                                        <block type="logic_compare" id="%-xY^]$/7NCA@N(QohzP">
                                          <field name="OP">EQ</field>
                                          <value name="A">
                                            <block type="get_value" id="bg_{TN,O}f_$+WHyj)`Z">
                                              <field name="ATTR">val</field>
                                              <field name="OID">tuya.0.bf42420010a1365972njdf.20</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="logic_boolean" id="=@JsFES#WYe2R_M1#Rk`">
                                              <field name="BOOL">FALSE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_compare" id="`-jMQsqLwvI4mi}Q]b{0">
                                          <field name="OP">LT</field>
                                          <value name="A">
                                            <block type="get_value" id="$|,Y4!:!{~LA_A|w;UE}">
                                              <field name="ATTR">val</field>
                                              <field name="OID">tuya.0.bfa5ce69c1d09d514frmaw.12</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="get_value" id="nX?zfjx0n^U{2e.kOy7i">
                                              <field name="ATTR">val</field>
                                              <field name="OID">0_userdata.0.Eigene_Datenpunkte.Beleuchtung_Treppenhaus</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="control" id="CA!7r/d6`KoZzZ|*,Lw]">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">tuya.0.bf42420010a1365972njdf.20</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="Ece9J=i{j@%Wt:8q=BH4">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id=":9w%%T^1-jRM6[RnD/$Z">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">tuya.0.bf42420010a1365972njdf.51</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="text" id="d0vU?pu5}JO00%6hn)Y|">
                                              <field name="TEXT">AckIZGQQAAAFABdXABhX</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="debug" id="^8.hh(V+yw12,PUvZXb0">
                                              <field name="Severity">log</field>
                                              <value name="TEXT">
                                                <shadow type="text" id="{V5sk4(1T7f[--A%#lf$">
                                                  <field name="TEXT">Nach Oben</field>
                                                </shadow>
                                              </value>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                  <next>
                                    <block type="timeouts_wait" id="}cZ4KF.$}m0)F,KkT!s)">
                                      <field name="DELAY">8000</field>
                                      <field name="UNIT">ms</field>
                                      <next>
                                        <block type="controls_if" id="UOyOCBv}CeKRnsG}h)uD">
                                          <value name="IF0">
                                            <block type="logic_operation" id="sG-w!S]dm??Y7h[k}#04" inline="false">
                                              <field name="OP">AND</field>
                                              <value name="A">
                                                <block type="logic_compare" id="g;#W|o!IF=/g8+jGv~n]">
                                                  <field name="OP">EQ</field>
                                                  <value name="A">
                                                    <block type="get_value" id="oC`+]X|FJ=O$VVTFSA#L">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">tuya.0.bf7f5496cd47fdb151xti9.20</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_boolean" id="nf66u}:#G,_*c078Dt.p">
                                                      <field name="BOOL">FALSE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_compare" id="L3:VFir{#?R2[C4Q89)C">
                                                  <field name="OP">LT</field>
                                                  <value name="A">
                                                    <block type="get_value" id="D}m[h1,eo9}dLLzaMi}f">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">tuya.0.bfa5ce69c1d09d514frmaw.12</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="get_value" id="hDwpy;6cBEme$0H],I}8">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">0_userdata.0.Eigene_Datenpunkte.Beleuchtung_Treppenhaus</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="control" id="S-#a,N@-?Kd2{..4sD2Q">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">tuya.0.bf7f5496cd47fdb151xti9.20</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="logic_boolean" id="2;Kg^,^vQo,Jq$49U;N(">
                                                  <field name="BOOL">TRUE</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="control" id="/tnf{U0NQ.tV3$b~MU3E">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">tuya.0.bf7f5496cd47fdb151xti9.51</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="text" id="urIRcVem8qy|{2Yz3)BF">
                                                      <field name="TEXT">AckIMjIAAAAFAVddAVVi</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="debug" id="+T]~o0:Rt5)FA6!i2CSw">
                                                      <field name="Severity">log</field>
                                                      <value name="TEXT">
                                                        <shadow type="text" id="I45G|}4Psb`)@!zi~)rW">
                                                          <field name="TEXT">Nach Oben</field>
                                                        </shadow>
                                                      </value>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </statement>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                      <next>
                        <block type="comment" id="oI1aQ37hu?v7K/VLa0NH">
                          <field name="COMMENT">wir nach unten</field>
                          <next>
                            <block type="controls_if" id="%k,8,fz5r.qbCwPAHQWI">
                              <value name="IF0">
                                <block type="logic_compare" id="oml@z,EdxY3ml.aYC7+P">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="CZgxd+2S`tg|+`QBbfN+">
                                      <field name="ATTR">val</field>
                                      <field name="OID">tuya.0.bfbe9fbf11ac776ad6wvfk.1</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="math_number" id="IV[@DxP;N.MF;rQQggrW">
                                      <field name="NUM">0</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="debug" id="#(6M3LZA7|_rcDsp|0cB">
                                  <field name="Severity">warn</field>
                                  <value name="TEXT">
                                    <shadow type="text" id="t-$e{7LK1;3pHl{D$^7c">
                                      <field name="TEXT">PIR vor Schlafzimmer detektiert</field>
                                    </shadow>
                                  </value>
                                  <next>
                                    <block type="timeouts_cleartimeout" id="claXSIW!qU[Ov~-g@OtW">
                                      <field name="NAME">timeout</field>
                                      <next>
                                        <block type="controls_if" id="Hl@~A4nHs56MY8f};aYV">
                                          <value name="IF0">
                                            <block type="logic_operation" id="l#GP*+aI{aZG=%Xk2_Oj" inline="false">
                                              <field name="OP">AND</field>
                                              <value name="A">
                                                <block type="logic_compare" id="#?-/a|sc5M|.|@_rQ%Gj">
                                                  <field name="OP">EQ</field>
                                                  <value name="A">
                                                    <block type="get_value" id="QH|B00cRu`D@q`|+U)cD">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">tuya.0.bf42420010a1365972njdf.20</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_boolean" id="{!_*yB/]v;9LK`]X{cX3">
                                                      <field name="BOOL">FALSE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_compare" id="7-Z7.a,y-~~%FN$m)!]0">
                                                  <field name="OP">LT</field>
                                                  <value name="A">
                                                    <block type="get_value" id="YernL,q^*1FgIqP/ko(D">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">tuya.0.bfa5ce69c1d09d514frmaw.12</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="get_value" id="k1TJt0Wwbu/-O?A3|w]X">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">0_userdata.0.Eigene_Datenpunkte.Beleuchtung_Treppenhaus</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="control" id="?riKtOT{(tw+.=Ke=`yl">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">tuya.0.bf42420010a1365972njdf.20</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="logic_boolean" id="RcV#JL1rnAy?~Z2x8jmP">
                                                  <field name="BOOL">TRUE</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="control" id="J6$LP#5]4!|TB63K=ok{">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">tuya.0.bf42420010a1365972njdf.51</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="text" id="G8n_c4D:{O4q8S}$4l8;">
                                                      <field name="TEXT">AckIZGQAAAAFABZcABhc</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="debug" id="JgTUitnDVr54splCbg%A">
                                                      <field name="Severity">log</field>
                                                      <value name="TEXT">
                                                        <shadow type="text" id="Skj-N|O[X~}zmy+!?ijg">
                                                          <field name="TEXT">Nach Unten</field>
                                                        </shadow>
                                                      </value>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </statement>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                              <next>
                                <block type="comment" id="*WbIKtw_$X$q+Llww`@V">
                                  <field name="COMMENT">Tamara nach unten</field>
                                  <next>
                                    <block type="controls_if" id="3o4fTnQDn.FO[00OrU1p">
                                      <value name="IF0">
                                        <block type="logic_compare" id="v5cJaV(Q`%cJLrvfkzR;">
                                          <field name="OP">EQ</field>
                                          <value name="A">
                                            <block type="get_value" id="T5!JUUL5QB$MRR;l0VdV">
                                              <field name="ATTR">val</field>
                                              <field name="OID">tuya.0.bfa973d1d283b503626a4m.1</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="math_number" id="wZC+-^WUJj6TwyyGJ`~C">
                                              <field name="NUM">0</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="debug" id="j#J^v6z:*GHPA?tr^S6d">
                                          <field name="Severity">warn</field>
                                          <value name="TEXT">
                                            <shadow type="text" id="~sa{t+5[Q!K,#i61$T*k">
                                              <field name="TEXT">PIR oben detektiert</field>
                                            </shadow>
                                          </value>
                                          <next>
                                            <block type="timeouts_cleartimeout" id="9Nxf#$:(uK;s4HK_JaNZ">
                                              <field name="NAME">timeout</field>
                                              <next>
                                                <block type="controls_if" id="kZmL6(%F0l#EafQQ{Kx=">
                                                  <value name="IF0">
                                                    <block type="logic_operation" id="x-@AuUuw8Y_c$MSsQIe5" inline="false">
                                                      <field name="OP">AND</field>
                                                      <value name="A">
                                                        <block type="logic_compare" id="y58M!!|pKC74TlNX1|M[">
                                                          <field name="OP">EQ</field>
                                                          <value name="A">
                                                            <block type="get_value" id="X?!9i5yG00?Jtrw.#ZeF">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">tuya.0.bf7f5496cd47fdb151xti9.20</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="logic_boolean" id="[q`kXW^4,-ZTRNRBAhG:">
                                                              <field name="BOOL">FALSE</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="logic_compare" id="eh8c^d*zH]:.B)xj^%m+">
                                                          <field name="OP">LT</field>
                                                          <value name="A">
                                                            <block type="get_value" id="]JGFJ;:Baz0or7mR@kq/">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">tuya.0.bfa5ce69c1d09d514frmaw.12</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="get_value" id="RRoTaZh1E*JB3:j*I%m/">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">0_userdata.0.Eigene_Datenpunkte.Beleuchtung_Treppenhaus</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <statement name="DO0">
                                                    <block type="control" id="av27JLhY06%wrWllo/ib">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                      <field name="OID">tuya.0.bf7f5496cd47fdb151xti9.20</field>
                                                      <field name="WITH_DELAY">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="logic_boolean" id="@;%+J,()3bFjAXPvnVH9">
                                                          <field name="BOOL">TRUE</field>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="control" id="%R;(+{mK1e7$,VC`@kz[">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                          <field name="OID">tuya.0.bf7f5496cd47fdb151xti9.51</field>
                                                          <field name="WITH_DELAY">TRUE</field>
                                                          <field name="DELAY_MS">10</field>
                                                          <field name="UNIT">ms</field>
                                                          <field name="CLEAR_RUNNING">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="text" id="Yn?1XuoU|j/PPTP-frP]">
                                                              <field name="TEXT">AckIMjIQAAAFAVddAVVi</field>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="debug" id="65EogyWOVdI~p0e~M7t{">
                                                              <field name="Severity">log</field>
                                                              <value name="TEXT">
                                                                <shadow type="text" id="qA0x[S.)/8M.).7OCu,o">
                                                                  <field name="TEXT">Tamara nach Oben</field>
                                                                </shadow>
                                                              </value>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </statement>
                                                  <next>
                                                    <block type="timeouts_wait" id="!`*{b836g$o_y}L~~p`0">
                                                      <field name="DELAY">5500</field>
                                                      <field name="UNIT">ms</field>
                                                      <next>
                                                        <block type="controls_if" id="Z$~oYvo[g~9{o!`7*+d:">
                                                          <value name="IF0">
                                                            <block type="logic_operation" id="`NM62q_:R6NkD8y}{Ko!" inline="false">
                                                              <field name="OP">AND</field>
                                                              <value name="A">
                                                                <block type="logic_compare" id="Fe4rG(wvVC*DwOZ9Fe9N">
                                                                  <field name="OP">EQ</field>
                                                                  <value name="A">
                                                                    <block type="get_value" id="/@a4y(J,vkrz|;uYuz#O">
                                                                      <field name="ATTR">val</field>
                                                                      <field name="OID">tuya.0.bf42420010a1365972njdf.20</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <block type="logic_boolean" id="_)gBwgywv$!jxq)c%x^P">
                                                                      <field name="BOOL">FALSE</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="logic_compare" id="5EyPdTp@~7Dx@1{nm5-3">
                                                                  <field name="OP">LT</field>
                                                                  <value name="A">
                                                                    <block type="get_value" id="!y047`MOVK0Op,Q.OZAt">
                                                                      <field name="ATTR">val</field>
                                                                      <field name="OID">tuya.0.bfa5ce69c1d09d514frmaw.12</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <block type="get_value" id="Z3kU1.Im|?xvyw8LAFLm">
                                                                      <field name="ATTR">val</field>
                                                                      <field name="OID">0_userdata.0.Eigene_Datenpunkte.Beleuchtung_Treppenhaus</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <statement name="DO0">
                                                            <block type="control" id="]g]hZwwD?;$kX=y_-Eyh">
                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                              <field name="OID">tuya.0.bf42420010a1365972njdf.20</field>
                                                              <field name="WITH_DELAY">FALSE</field>
                                                              <value name="VALUE">
                                                                <block type="logic_boolean" id="*z]Uu9XzO46YrXN%pt$f">
                                                                  <field name="BOOL">TRUE</field>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="control" id="vFPqEKiVm*;3a,oelGPS">
                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                  <field name="OID">tuya.0.bf42420010a1365972njdf.51</field>
                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                  <value name="VALUE">
                                                                    <block type="text" id="aJ%07eYEtouZ_.lepvqf">
                                                                      <field name="TEXT">AckIZGQAAAAFABZcABhc</field>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="debug" id="~e/6]4jjYh/]#zMDS,x6">
                                                                      <field name="Severity">log</field>
                                                                      <value name="TEXT">
                                                                        <shadow type="text" id=";}lGJeo?wxystuor_Ps3">
                                                                          <field name="TEXT">Nach Unten</field>
                                                                        </shadow>
                                                                      </value>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </statement>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                      <next>
                                        <block type="comment" id="FOJ/MMpw3X%=A]ZF!nZ`">
                                          <field name="COMMENT">Ausschalten nach 30s wenn kein einziger PIR Bewegung meldet</field>
                                          <next>
                                            <block type="debug" id="eR#XzeJz!w$}4Kq`/${$">
                                              <field name="Severity">log</field>
                                              <value name="TEXT">
                                                <shadow type="text" id="zvIl).[W88*rc0htd,%3">
                                                  <field name="TEXT">test</field>
                                                </shadow>
                                                <block type="text_join" id="uTYfqg|twXnpr8Rk2-ss">
                                                  <mutation items="2"></mutation>
                                                  <value name="ADD0">
                                                    <block type="text" id="RX`#SY_WuA1^57,]nQR[">
                                                      <field name="TEXT">Bewegung im Treppenhaus: </field>
                                                    </block>
                                                  </value>
                                                  <value name="ADD1">
                                                    <block type="on_source" id="v?;t9cXg,Bi;0{M]c_]}">
                                                      <field name="ATTR">state.val</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="controls_if" id="IZlWW_Dae]W)X8t$jg|q">
                                                  <value name="IF0">
                                                    <block type="logic_operation" id="7o|d_CTM@=p$([Ce0T-g" inline="false">
                                                      <field name="OP">AND</field>
                                                      <value name="A">
                                                        <block type="logic_operation" id="C*TT_gyl^O.^pJ1gRmH;" inline="false">
                                                          <field name="OP">AND</field>
                                                          <value name="A">
                                                            <block type="logic_compare" id="FjqaR1Jqfs1acqOLIfGA">
                                                              <field name="OP">EQ</field>
                                                              <value name="A">
                                                                <block type="get_value" id="(B0|@corWcm2.mCH0Obd">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">tuya.0.bfa5ce69c1d09d514frmaw.1</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="math_number" id="/JzM3Pa0!b`IjK~=?YK;">
                                                                  <field name="NUM">1</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="logic_compare" id="Jts7)2nZ@q2iNG5yGUOR">
                                                              <field name="OP">EQ</field>
                                                              <value name="A">
                                                                <block type="get_value" id="8$;a}dJkALJD.{HHi:h7">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">tuya.0.bfbe9fbf11ac776ad6wvfk.1</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="math_number" id="qBOu[G12N_gZmIWWgqsE">
                                                                  <field name="NUM">1</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="logic_compare" id="606nrKq;lKMb24:2b#om">
                                                          <field name="OP">EQ</field>
                                                          <value name="A">
                                                            <block type="get_value" id="yqEzrtP)h;r=68P-SGjc">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">tuya.0.bfa973d1d283b503626a4m.1</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="math_number" id="(QY$#}}R0TP~ytFXR)|k">
                                                              <field name="NUM">1</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <statement name="DO0">
                                                    <block type="timeouts_settimeout" id="xmHl)h=lh+2#UTT4K}+O">
                                                      <field name="NAME">timeout</field>
                                                      <field name="DELAY">15</field>
                                                      <field name="UNIT">sec</field>
                                                      <statement name="STATEMENT">
                                                        <block type="control" id="s1(H8]D}@V+Yl971^4/R">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                          <field name="OID">tuya.0.bf42420010a1365972njdf.20</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="logic_boolean" id="IeoBGcw:#jBK^F_(Rk#X">
                                                              <field name="BOOL">FALSE</field>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="control" id="%*KuJ}nfw(k;Y~qrja%R">
                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                              <field name="OID">tuya.0.bf7f5496cd47fdb151xti9.20</field>
                                                              <field name="WITH_DELAY">FALSE</field>
                                                              <value name="VALUE">
                                                                <block type="logic_boolean" id="}uLJy4^B/t1!9=v~gm4J">
                                                                  <field name="BOOL">FALSE</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </statement>
                                                    </block>
                                                  </statement>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
              <next>
                <block type="on_ext" id="wY6n_aU/xLBcqYmLgjT?">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                  <field name="CONDITION">ne</field>
                  <field name="ACK_CONDITION"></field>
                  <value name="OID0">
                    <shadow type="field_oid" id="7G@]yLYt=L9[0$248?c(">
                      <field name="oid">tuya.0.bf42420010a1365972njdf.20</field>
                    </shadow>
                  </value>
                  <statement name="STATEMENT">
                    <block type="debug" id="Nz2]l7h[xP%%~%#wOxMs">
                      <field name="Severity">log</field>
                      <value name="TEXT">
                        <shadow type="text" id="`0A/[yd4M:QHS`uq(:c$">
                          <field name="TEXT">test</field>
                        </shadow>
                        <block type="text_join" id="?fST?y~;k]v-lG?:ug{h">
                          <mutation items="2"></mutation>
                          <value name="ADD0">
                            <block type="text" id="@B]!HwYtmP!d:S*#;]yr">
                              <field name="TEXT">Nachtlicht im Treppenhaus ist an: </field>
                            </block>
                          </value>
                          <value name="ADD1">
                            <block type="get_value_var" id="G+]xRY_TVC]VS*NJq)t`">
                              <field name="ATTR">val</field>
                              <value name="OID">
                                <shadow type="field_oid" id="~(IO6#er9.oAj=R^)MBf">
                                  <field name="oid">tuya.0.bf42420010a1365972njdf.20</field>
                                </shadow>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </next>
        </block>
      </xml>
      

      Nun hoffe ich darauf, dass jemand von Euch den Fehler findet.
      Ich bin übrigens auch für Verbesserungen und Vereinfachungen sehr dankbar.
      Bin noch blutiger Anfänger beim programmieren...
      Das hier war/ist mein erstes größere Scribt überhaupt...

      Gruß und Dank
      Tobias

      Homoran 1 Reply Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @Fibricus last edited by

        @fibricus sagte in "Geisterschalter" - finde den Fehler nicht...:

        Und hier ist das Scribt:

        bitte zeigen!
        ein xml Dokument hilft am Handy nichts
        https://forum.iobroker.net/topic/51555/hinweise-für-gute-forenbeiträge/1

        F 1 Reply Last reply Reply Quote 0
        • F
          Fibricus @Homoran last edited by

          @homoran Das Scribt ist zu lang um es zu zeigen, oder ich weiß nicht wie.

          Das ist der "Problemblock":
          Screenshot 2024-01-07 001045.jpg
          Die Datenpunkte sind alle richtig, das habe ich diverse Male kontrolliert.
          Und (wie gesagt) selbst wenn ich die Blöcke unter der Pause lösche gehen beide Leuchtstreifen an.

          F 1 Reply Last reply Reply Quote 0
          • F
            Fibricus @Fibricus last edited by

            @fibricus Das Problem hat sich gefunden (bin da ausdauernd...)!

            Obwohl bei den Scribten nur eines als laufend angezeigt wurde liefen noch mehrere. Diese haben sich gegenseitig beeinflusst.
            Nun stellt sich aber für mich die Frage: Warum wird das Scribt als "Pause" angezeigt wurde und trotzdem lief?!?
            Wie kann ich sowas zukünftig verhindern?

            Gruß
            Tobias

            Homoran 1 Reply Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @Fibricus last edited by

              @fibricus sagte in "Geisterschalter" - finde den Fehler nicht...:

              Wie kann ich sowas zukünftig verhindern?

              als erstes den Browsercache leeren, zumindest refresh.

              Die Browser neigen dazu auch mal ältete Zustände anzuzeigen

              Ansonsten die js-Instanz neu startenö

              F 1 Reply Last reply Reply Quote 0
              • F
                Fibricus @Homoran last edited by

                @homoran Danke!

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

                Support us

                ioBroker
                Community Adapters
                Donate

                426
                Online

                32.0k
                Users

                80.4k
                Topics

                1.3m
                Posts

                2
                6
                177
                Loading More Posts
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes
                Reply
                • Reply as topic
                Log in to reply
                Community
                Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                The ioBroker Community 2014-2023
                logo