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

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

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung

NEWS

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    18
    1
    668

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

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

Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung

Geplant Angeheftet Gesperrt Verschoben Blockly
24 Beiträge 5 Kommentatoren 708 Aufrufe 3 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.
  • CodierknechtC Codierknecht

    @13patrick37 sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:

    eine Frage zum Datenpunkt - wenn Garage in Bewegung ist soll es einen Datenpunkt mit wahr setzen

    Wie ist der denn definiert?

    1 Online
    1 Online
    13patrick37
    schrieb am zuletzt editiert von
    #8

    @codierknecht

    @codierknecht

    <xml xmlns="https://developers.google.com/blockly/xml">
      <variables>
        <variable id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</variable>
        <variable id="`mAjS]P=RuR7uqc{ipQ`">Tor_in_Bewegung</variable>
        <variable id="]_%]yGuJ+6l`+e^JVS4H">Tor_offen_dauer_grün</variable>
        <variable id="O4FHleH:tl6~UI~DkJgr">Tor_grün_blinken</variable>
        <variable id="Um:Oj{57SH~GJP8C[(hN">Spot</variable>
        <variable id="FE;=bub#@-:/yZ/%L*yZ">komplett_aus</variable>
        <variable type="timeout" id="Spot Einschalten3">Spot Einschalten3</variable>
        <variable type="timeout" id="Grün dauer ein2">Grün dauer ein2</variable>
        <variable type="timeout" id="Endschalter zu alles aus">Endschalter zu alles aus</variable>
        <variable type="timeout" id="Spot Einschalten2">Spot Einschalten2</variable>
      </variables>
      <block type="comment" id="wLPF9*DamS1TcwlFnOq6" x="163" y="90">
        <field name="COMMENT">&amp;S2=(Anzahl der LED)</field>
        <next>
          <block type="variables_set" id="wCy#f}B32Rs#h3tVd/7y">
            <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field>
            <value name="VALUE">
              <block type="text" id="2~=;U~T1w[VM2EFh!90~">
                <field name="TEXT">http://192.168.178.38/win&amp;</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="Z5c%uZqfQ.UBPN(~~#e7">
                <field name="VAR" id="`mAjS]P=RuR7uqc{ipQ`">Tor_in_Bewegung</field>
                <value name="VALUE">
                  <block type="text" id="WFd~H{OfUHF7Pp@9ExQC">
                    <field name="TEXT">SM=0&amp;SS=0&amp;SV=2&amp;S=0&amp;S2=296&amp;GP=1&amp;SP=0&amp;RV=0&amp;SB=255&amp;A=255&amp;R=255&amp;G=0&amp;B=0&amp;W=0&amp;R2=0&amp;G2=0&amp;B2=0&amp;W2=0&amp;FX=60&amp;SX=203&amp;IX=246&amp;T=1</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id=":HR=,q0iDD[Bh]+6]j2x">
                    <field name="VAR" id="]_%]yGuJ+6l`+e^JVS4H">Tor_offen_dauer_grün</field>
                    <value name="VALUE">
                      <block type="text" id="dfI^O:`ov.`4QGyo[B_c">
                        <field name="TEXT">SM=0&amp;S2=296&amp;SS=0&amp;SV=0&amp;A=255&amp;R=0&amp;G=255&amp;B=0&amp;GP=0&amp;SP=0&amp;FX=0&amp;T=1</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="u|VN3}h]89w}`u,*G;Um">
                        <field name="VAR" id="O4FHleH:tl6~UI~DkJgr">Tor_grün_blinken</field>
                        <value name="VALUE">
                          <block type="text" id="L8f_z/#e*i_W_[*^eU[9">
                            <field name="TEXT">SM=0&amp;SS=0&amp;SV=0&amp;S2=296&amp;A=255&amp;R=0&amp;G=255&amp;B=0&amp;R2=0&amp;G=255&amp;B=0&amp;GP=0&amp;SP=0&amp;FX=1&amp;T=1</field>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="ceV2PzJ$}ar?Bk@~jxc(">
                            <field name="VAR" id="Um:Oj{57SH~GJP8C[(hN">Spot</field>
                            <value name="VALUE">
                              <block type="text" id="[|sy^auHo1-zOm3;L^^_">
                                <field name="TEXT">SM=0&amp;S2=296&amp;SS=0&amp;SV=0&amp;A=255&amp;R=255&amp;G=190&amp;B=127&amp;GP=4&amp;SP=32&amp;IX=246&amp;FX=0&amp;T=1</field>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" id="9/F*;FkHU|6(7rCiITW3">
                                <field name="VAR" id="FE;=bub#@-:/yZ/%L*yZ">komplett_aus</field>
                                <value name="VALUE">
                                  <block type="text" id="FOY#k|qLCYVxlLh/_acs">
                                    <field name="TEXT">T=0</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="comment" id="zeXAjy|E#I,^C,B]Dh7h">
                                    <field name="COMMENT">ACHTUNG die Endschalter für AUF abfragen</field>
                                    <next>
                                      <block type="comment" id="9-Trv:F3zPe+BX5@y/[p">
                                        <field name="COMMENT">um das Grüne Licht / Spot zu starten</field>
                                        <next>
                                          <block type="on_ext" id="v5?`O4SHcr}Nd7P#H;6e">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation>
                                            <field name="CONDITION">any</field>
                                            <field name="ACK_CONDITION"></field>
                                            <value name="OID0">
                                              <shadow type="field_oid" id="_wPH/$mF4jZM@f/mg/MD">
                                                <field name="oid">zigbee.0.00158d0007e2f9d4.opened</field>
                                              </shadow>
                                            </value>
                                            <value name="OID1">
                                              <shadow type="field_oid" id="T7{#EbRHXmRlo2Xq[~Jq">
                                                <field name="oid">zigbee.0.00158d0007e2fb36.opened</field>
                                              </shadow>
                                            </value>
                                            <value name="OID2">
                                              <shadow type="field_oid" id="S6f,79TI[l$4}=Si,aqa">
                                                <field name="oid">zigbee.0.001788010cdc8130.illuminance</field>
                                              </shadow>
                                            </value>
                                            <statement name="STATEMENT">
                                              <block type="comment" id="Lna.HF8[AF}FW{{z]@CG">
                                                <field name="COMMENT">Sensor Aqara</field>
                                                <next>
                                                  <block type="controls_if" id="W%#h}eIET7l[*r_S-eVZ">
                                                    <mutation elseif="1"></mutation>
                                                    <value name="IF0">
                                                      <block type="logic_operation" id="wG~IV%=~_1BtuyDSJ59@" inline="false">
                                                        <field name="OP">AND</field>
                                                        <value name="A">
                                                          <block type="logic_compare" id="v%atUy]qWal)tQxya%Ky" inline="false">
                                                            <field name="OP">LT</field>
                                                            <value name="A">
                                                              <block type="get_value" id="#+rkU$vdA2fG6?=ajjmc">
                                                                <field name="ATTR">val</field>
                                                                <field name="OID">zigbee.0.001788010cdc8130.illuminance</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="math_number" id="%mwg[_?BlO%WA1R,J^cB">
                                                                <field name="NUM">120</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="logic_operation" id="FB-Oh#6Bj(_^`$-yu;%i" inline="false">
                                                            <field name="OP">AND</field>
                                                            <value name="A">
                                                              <block type="logic_compare" id="vK(|LmVGSlJQ~pV5D#zQ" inline="false">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="get_value" id=":D03lvcBw)A{DpJ3ZpYL">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">zigbee.0.00158d0007e2f9d4.opened</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_boolean" id="fhtS#Gf_~{.zHChBMvp1">
                                                                    <field name="BOOL">TRUE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="logic_compare" id="Ty@[+*1}kB_cIcf:T4c?" inline="false">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="get_value" id="ks+Pn:yT51o5MFo!kXZs">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">zigbee.0.00158d0007e2fb36.opened</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_boolean" id="w:`HT`@B^:TI9)Wr;WGs">
                                                                    <field name="BOOL">TRUE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <statement name="DO0">
                                                      <block type="update" id="IrTe=+CN4@]r*hihDyiP">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                        <field name="OID">0_userdata.0.Messwerte.Szenen.Garagentor_in_bewe</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="logic_boolean" id="B7CINQQG?6gkawXe3$KJ">
                                                            <field name="BOOL">TRUE</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="request" id="u6]M_o0lmx+1QS3_1*^=">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                                            <field name="WITH_STATEMENT">FALSE</field>
                                                            <field name="LOG"></field>
                                                            <value name="URL">
                                                              <shadow type="text" id="e{{7P{@W#b%2xvxE_eId">
                                                                <field name="TEXT">text</field>
                                                              </shadow>
                                                              <block type="text_join" id="$a#0I]ocAv%yKuny3uG,">
                                                                <mutation items="2"></mutation>
                                                                <value name="ADD0">
                                                                  <block type="variables_get" id="N,n09%*EyKyG$mX#+I.-">
                                                                    <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field>
                                                                  </block>
                                                                </value>
                                                                <value name="ADD1">
                                                                  <block type="variables_get" id="G4rLlef1a/5|Cmj/X]a.">
                                                                    <field name="VAR" id="`mAjS]P=RuR7uqc{ipQ`">Tor_in_Bewegung</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </statement>
                                                    <value name="IF1">
                                                      <block type="logic_operation" id="p)GSQ4P@/Wx12ym8Q`O;" inline="false">
                                                        <field name="OP">AND</field>
                                                        <value name="A">
                                                          <block type="logic_compare" id="}112~z=6MVQjjZvkzC1x" inline="false">
                                                            <field name="OP">LT</field>
                                                            <value name="A">
                                                              <block type="get_value" id="3NZtEuh5:ZEHFrd1=RRm">
                                                                <field name="ATTR">val</field>
                                                                <field name="OID">zigbee.0.001788010cdc8130.illuminance</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="math_number" id="(6?[ymBdC~+)a/RL54IF">
                                                                <field name="NUM">120</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="logic_operation" id=")R!HZq(me8JhA%l}x78=" inline="false">
                                                            <field name="OP">AND</field>
                                                            <value name="A">
                                                              <block type="logic_compare" id="v?#V|X/)Jpb`eX,z`ec{" inline="false">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="get_value" id="~Ey@j|/TLa4F~36Ld;Vj">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">zigbee.0.00158d0007e2fb36.opened</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_boolean" id="N.Jfs`-X$)lmR8g`YPRp">
                                                                    <field name="BOOL">FALSE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="logic_compare" id="iw_.}.KvQ,l:zNd.@c%1" inline="false">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="get_value" id="L8k1|HuV~aVd9u;|S9xT">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">zigbee.0.00158d0007e2f9d4.opened</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_boolean" id="^)yH#4i4|(f|GsdKeRU6">
                                                                    <field name="BOOL">TRUE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <statement name="DO1">
                                                      <block type="request" id="EC|aded,,tGS*2UQ2X.F">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                                        <field name="WITH_STATEMENT">FALSE</field>
                                                        <field name="LOG"></field>
                                                        <value name="URL">
                                                          <shadow type="text" id="ZfYA*N!(k%jzJ.6{ER0j">
                                                            <field name="TEXT">text</field>
                                                          </shadow>
                                                          <block type="text_join" id="@4B60l_nJp#lV$RY=!Mg">
                                                            <mutation items="2"></mutation>
                                                            <value name="ADD0">
                                                              <block type="variables_get" id="Kd-O-|~AOu-ES*gBw^Bo">
                                                                <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field>
                                                              </block>
                                                            </value>
                                                            <value name="ADD1">
                                                              <block type="variables_get" id="-tm^F}%F:[7Y,kIL%05M">
                                                                <field name="VAR" id="O4FHleH:tl6~UI~DkJgr">Tor_grün_blinken</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="timeouts_cleartimeout" id="Y1?22j!rtHfI3=5/k$2=">
                                                            <field name="NAME">Grün dauer ein2</field>
                                                            <next>
                                                              <block type="timeouts_settimeout" id=",e|l:x%B([-}bdh1!f]6">
                                                                <field name="NAME">Grün dauer ein2</field>
                                                                <field name="DELAY">1</field>
                                                                <field name="UNIT">sec</field>
                                                                <statement name="STATEMENT">
                                                                  <block type="request" id="TrEfk2y^lkCRXIrrbA|p">
                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                                                    <field name="WITH_STATEMENT">FALSE</field>
                                                                    <field name="LOG"></field>
                                                                    <value name="URL">
                                                                      <shadow type="text" id=":X,S`|6@xE|S[_y;%CIV">
                                                                        <field name="TEXT">text</field>
                                                                      </shadow>
                                                                      <block type="text_join" id="Vb+`N?||?{c89-@#s^@i">
                                                                        <mutation items="2"></mutation>
                                                                        <value name="ADD0">
                                                                          <block type="variables_get" id="-w~WPwbh?GYK+Dx*CZV1">
                                                                            <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="ADD1">
                                                                          <block type="variables_get" id="2D{p=f}:@jF0n}G~-;fw">
                                                                            <field name="VAR" id="]_%]yGuJ+6l`+e^JVS4H">Tor_offen_dauer_grün</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <next>
                                                                      <block type="timeouts_cleartimeout" id="hUk_z`]$8^X%fMaWP`::">
                                                                        <field name="NAME">Grün dauer ein2</field>
                                                                        <next>
                                                                          <block type="timeouts_settimeout" id="j/aYA#wkLYF^Gc]4m.r!">
                                                                            <field name="NAME">Spot Einschalten2</field>
                                                                            <field name="DELAY">5</field>
                                                                            <field name="UNIT">sec</field>
                                                                            <statement name="STATEMENT">
                                                                              <block type="request" id="si#*fieAZdnC.F@ag^%k">
                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                                                                <field name="WITH_STATEMENT">FALSE</field>
                                                                                <field name="LOG"></field>
                                                                                <value name="URL">
                                                                                  <shadow type="text" id="o|}fW7)o=NiBUQRgWBSd">
                                                                                    <field name="TEXT">text</field>
                                                                                  </shadow>
                                                                                  <block type="text_join" id="+Ey2hFJuE:3NC*.wX#P|">
                                                                                    <mutation items="2"></mutation>
                                                                                    <value name="ADD0">
                                                                                      <block type="variables_get" id="v~NV75Ox_)N9J{c21Vm1">
                                                                                        <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="ADD1">
                                                                                      <block type="variables_get" id="7JTO]uOo;c4$D.Vx/$hs">
                                                                                        <field name="VAR" id="Um:Oj{57SH~GJP8C[(hN">Spot</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </statement>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </statement>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </statement>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                            <next>
                                              <block type="comment" id="oCTMmmFLPEc+-A]T%Fud">
                                                <field name="COMMENT">Endschalter vom Tor zu alles aus</field>
                                                <next>
                                                  <block type="on_ext" id="Kl7[t92[q;LHwWyWzccF">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                                    <field name="CONDITION">any</field>
                                                    <field name="ACK_CONDITION"></field>
                                                    <value name="OID0">
                                                      <shadow type="field_oid" id="q}0i_/?}QjB+F08AYb8j">
                                                        <field name="oid">zigbee.0.00158d0007e2f9d4.opened</field>
                                                      </shadow>
                                                    </value>
                                                    <statement name="STATEMENT">
                                                      <block type="controls_if" id="W__/eC.Y1858qsIxou^=">
                                                        <value name="IF0">
                                                          <block type="logic_operation" id=";0RM7(N/H^K$kFIi}mIb" inline="false">
                                                            <field name="OP">AND</field>
                                                            <value name="A">
                                                              <block type="logic_compare" id="4=IE9J[nD(AuNElj+Nw.">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="on_source" id="}lz)+|lgPT`$iFyO@Fsc">
                                                                    <field name="ATTR">state.val</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_boolean" id="y|8Y0:Qe!%J;iYe3Y},T">
                                                                    <field name="BOOL">FALSE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="logic_compare" id="VlyuUN/n4]*evEq%;o.5" inline="false">
                                                                <field name="OP">LT</field>
                                                                <value name="A">
                                                                  <block type="get_value" id="llg/0-ibVdRCKZl+nC-[">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">zigbee.0.001788010cdc8130.illuminance</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="math_number" id="(}HN#_]@w]obCwjyPH8K">
                                                                    <field name="NUM">120</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <statement name="DO0">
                                                          <block type="timeouts_settimeout" id="C=Ievn6b/2Az7(kol,o/">
                                                            <field name="NAME">Spot Einschalten3</field>
                                                            <field name="DELAY">1</field>
                                                            <field name="UNIT">sec</field>
                                                            <statement name="STATEMENT">
                                                              <block type="request" id="p;#.?^s:l/v*ZZ:CA4LH">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                                                <field name="WITH_STATEMENT">FALSE</field>
                                                                <field name="LOG"></field>
                                                                <value name="URL">
                                                                  <shadow type="text" id="MhM`A@PAJMKKIuD;`k)3">
                                                                    <field name="TEXT">text</field>
                                                                  </shadow>
                                                                  <block type="text_join" id="c^XJVr(oMxVv%`lH+y1V">
                                                                    <mutation items="2"></mutation>
                                                                    <value name="ADD0">
                                                                      <block type="variables_get" id="WW,wSQ:#!yfnCx2cc=m_">
                                                                        <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="ADD1">
                                                                      <block type="variables_get" id="rJ(-BNJn`B~##jgAlpD+">
                                                                        <field name="VAR" id="Um:Oj{57SH~GJP8C[(hN">Spot</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </statement>
                                                            <next>
                                                              <block type="timeouts_settimeout" id="bUkj%WD(;aLc?n^-Np-L">
                                                                <field name="NAME">Endschalter zu alles aus</field>
                                                                <field name="DELAY">60</field>
                                                                <field name="UNIT">sec</field>
                                                                <statement name="STATEMENT">
                                                                  <block type="request" id="^;Umnn((|geyUTI8qDyC">
                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                                                    <field name="WITH_STATEMENT">FALSE</field>
                                                                    <field name="LOG"></field>
                                                                    <value name="URL">
                                                                      <shadow type="text" id="(ioj6MV?=7#yE+G!gW6W">
                                                                        <field name="TEXT">text</field>
                                                                      </shadow>
                                                                      <block type="text_join" id="ugY=.{Me=%vqfbq)MEB0">
                                                                        <mutation items="2"></mutation>
                                                                        <value name="ADD0">
                                                                          <block type="variables_get" id="c8bNA.j:JFOO39%@bDz,">
                                                                            <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="ADD1">
                                                                          <block type="variables_get" id="j6WLjln`VupX~o!u)#%t">
                                                                            <field name="VAR" id="FE;=bub#@-:/yZ/%L*yZ">komplett_aus</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </statement>
                                                                <next>
                                                                  <block type="control" id="Vg5;7=!oOLC)#;dLcRcm">
                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                    <field name="OID">0_userdata.0.Messwerte.Szenen.Garagentor_in_bewe</field>
                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                    <value name="VALUE">
                                                                      <block type="logic_boolean" id="9ge$6dw#HB.q.~W*q@4G">
                                                                        <field name="BOOL">FALSE</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </statement>
                                                      </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>
      <block type="comment" id="}oz*i0NN;e8RQC2W=niu" x="1237" y="62">
        <field name="COMMENT">!!!! ACHTUNG MUSS auf wurde aktualisiert stehen</field>
        <next>
          <block type="comment" id="E[P^*NqX=b,.*QlSem/(">
            <field name="COMMENT">Handsender HM</field>
            <next>
              <block type="comment" id="R8VTNLfH;shX|iU?}B*#">
                <field name="COMMENT">Spot einschalten</field>
                <next>
                  <block type="on_ext" id="^Y#tI3BbL;c)mz(Zfnbi" collapsed="true" disabled="true">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                    <field name="CONDITION">any</field>
                    <field name="ACK_CONDITION"></field>
                    <value name="OID0">
                      <shadow type="field_oid" id="WX)Pm6)r3{Is@kU$i3^r">
                        <field name="oid">javascript.0.Garage.GaragentorLicht</field>
                      </shadow>
                    </value>
                    <statement name="STATEMENT">
                      <block type="controls_if" id="ecQyt_SaZP?;z4^QgG~I">
                        <mutation else="1"></mutation>
                        <value name="IF0">
                          <block type="logic_compare" id="c,*]p,_n)IOpbQ68g(L-">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="on_source" id="ijed7W4/F1EaZNJhue]e">
                                <field name="ATTR">state.val</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_boolean" id="Qc,MX8[p`[*wq5uv6%`Z">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block type="comment" id="#mEy;Itxn2~_D)$92I!e">
                        <field name="COMMENT">Garagentor öffnen / schliessen</field>
                        <next>
                          <block type="on_ext" id="85Xyy):=QU10G-zca6P." collapsed="true" disabled="true">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                            <field name="CONDITION">any</field>
                            <field name="ACK_CONDITION"></field>
                            <value name="OID0">
                              <shadow type="field_oid" id="$j#2tln^uy1?+kJZ;Dft">
                                <field name="oid">hm-rpc.0.NEQ1136838.2.PRESS_SHORT</field>
                              </shadow>
                            </value>
                            <statement name="STATEMENT">
                              <block type="controls_if" id="9lEpkEQu-AV:TeM2KSgA">
                                <value name="IF0">
                                  <block type="on_source" id="Vv/]h%942IrB),_k^+wg">
                                    <field name="ATTR">id</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <next>
                              <block type="comment" id="~56Mx89X*7K*A)eBjv0q">
                                <field name="COMMENT">Licht und Garagentor</field>
                                <next>
                                  <block type="on_ext" id="JU#.UH:mr_W*2w0L$yXO" disabled="true">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                    <field name="CONDITION">any</field>
                                    <field name="ACK_CONDITION"></field>
                                    <value name="OID0">
                                      <shadow type="field_oid" id="MxxWTnkJM@,Wb@`_JoH`">
                                        <field name="oid">hm-rpc.0.NEQ1136838.1.PRESS_SHORT</field>
                                      </shadow>
                                    </value>
                                    <statement name="STATEMENT">
                                      <block type="controls_if" id="Y~b[0:!pIax(wxcX[RDz">
                                        <value name="IF0">
                                          <block type="on_source" id="s..^Q@AY$S=G,w2;+|+:">
                                            <field name="ATTR">id</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="comment" id="d/g1NaL^f;8oFx5gsunx">
                                        <field name="COMMENT">Garagentor Stop und Licht aus</field>
                                        <next>
                                          <block type="on_ext" id="@1ut$?Y_NYcXF}Y}V7t2" disabled="true">
                                            <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="-GyZcivsp5AZsjF]lc@-">
                                                <field name="oid">hm-rpc.0.NEQ1136838.4.PRESS_SHORT</field>
                                              </shadow>
                                            </value>
                                            <statement name="STATEMENT">
                                              <block type="controls_if" id="E=tOj6K9-wSsCcxqA/F.">
                                                <value name="IF0">
                                                  <block type="on_source" id="[g@[LK/RgL_rBucKRdn#">
                                                    <field name="ATTR">id</field>
                                                  </block>
                                                </value>
                                                <statement name="DO0">
                                                  <block type="variables_set" id="M8x@C:oD[Sfslxvb3FO3">
                                                    <field name="VAR" id="FE;=bub#@-:/yZ/%L*yZ">komplett_aus</field>
                                                    <value name="VALUE">
                                                      <block type="logic_boolean" id="rK2(M1.Ai5~YfFu~U,Y}">
                                                        <field name="BOOL">TRUE</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </statement>
                                              </block>
                                            </statement>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </xml>
    

    Kannst dir das Skript gern mal anschauen. Oder soll ich lieber Screenshot posten?
    Bekomme noch folgende Fehlermeldung:

    script.js.Außenbereich.Skript_1: request package is deprecated - please use httpGet (or a stable lib like axios) instead!
    

    Funktioniert erstmal alles. Bin nur der Meinung, dass es vielleicht zu umständlich ist.
    Ich will nur noch über einen Datenpunkt, siehe Skript, ein "wahr" setzen, wenn die Garage in Bewegung ist.

    CodierknechtC 1 Antwort Letzte Antwort
    0
    • 1 13patrick37

      @codierknecht

      @codierknecht

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</variable>
          <variable id="`mAjS]P=RuR7uqc{ipQ`">Tor_in_Bewegung</variable>
          <variable id="]_%]yGuJ+6l`+e^JVS4H">Tor_offen_dauer_grün</variable>
          <variable id="O4FHleH:tl6~UI~DkJgr">Tor_grün_blinken</variable>
          <variable id="Um:Oj{57SH~GJP8C[(hN">Spot</variable>
          <variable id="FE;=bub#@-:/yZ/%L*yZ">komplett_aus</variable>
          <variable type="timeout" id="Spot Einschalten3">Spot Einschalten3</variable>
          <variable type="timeout" id="Grün dauer ein2">Grün dauer ein2</variable>
          <variable type="timeout" id="Endschalter zu alles aus">Endschalter zu alles aus</variable>
          <variable type="timeout" id="Spot Einschalten2">Spot Einschalten2</variable>
        </variables>
        <block type="comment" id="wLPF9*DamS1TcwlFnOq6" x="163" y="90">
          <field name="COMMENT">&amp;S2=(Anzahl der LED)</field>
          <next>
            <block type="variables_set" id="wCy#f}B32Rs#h3tVd/7y">
              <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field>
              <value name="VALUE">
                <block type="text" id="2~=;U~T1w[VM2EFh!90~">
                  <field name="TEXT">http://192.168.178.38/win&amp;</field>
                </block>
              </value>
              <next>
                <block type="variables_set" id="Z5c%uZqfQ.UBPN(~~#e7">
                  <field name="VAR" id="`mAjS]P=RuR7uqc{ipQ`">Tor_in_Bewegung</field>
                  <value name="VALUE">
                    <block type="text" id="WFd~H{OfUHF7Pp@9ExQC">
                      <field name="TEXT">SM=0&amp;SS=0&amp;SV=2&amp;S=0&amp;S2=296&amp;GP=1&amp;SP=0&amp;RV=0&amp;SB=255&amp;A=255&amp;R=255&amp;G=0&amp;B=0&amp;W=0&amp;R2=0&amp;G2=0&amp;B2=0&amp;W2=0&amp;FX=60&amp;SX=203&amp;IX=246&amp;T=1</field>
                    </block>
                  </value>
                  <next>
                    <block type="variables_set" id=":HR=,q0iDD[Bh]+6]j2x">
                      <field name="VAR" id="]_%]yGuJ+6l`+e^JVS4H">Tor_offen_dauer_grün</field>
                      <value name="VALUE">
                        <block type="text" id="dfI^O:`ov.`4QGyo[B_c">
                          <field name="TEXT">SM=0&amp;S2=296&amp;SS=0&amp;SV=0&amp;A=255&amp;R=0&amp;G=255&amp;B=0&amp;GP=0&amp;SP=0&amp;FX=0&amp;T=1</field>
                        </block>
                      </value>
                      <next>
                        <block type="variables_set" id="u|VN3}h]89w}`u,*G;Um">
                          <field name="VAR" id="O4FHleH:tl6~UI~DkJgr">Tor_grün_blinken</field>
                          <value name="VALUE">
                            <block type="text" id="L8f_z/#e*i_W_[*^eU[9">
                              <field name="TEXT">SM=0&amp;SS=0&amp;SV=0&amp;S2=296&amp;A=255&amp;R=0&amp;G=255&amp;B=0&amp;R2=0&amp;G=255&amp;B=0&amp;GP=0&amp;SP=0&amp;FX=1&amp;T=1</field>
                            </block>
                          </value>
                          <next>
                            <block type="variables_set" id="ceV2PzJ$}ar?Bk@~jxc(">
                              <field name="VAR" id="Um:Oj{57SH~GJP8C[(hN">Spot</field>
                              <value name="VALUE">
                                <block type="text" id="[|sy^auHo1-zOm3;L^^_">
                                  <field name="TEXT">SM=0&amp;S2=296&amp;SS=0&amp;SV=0&amp;A=255&amp;R=255&amp;G=190&amp;B=127&amp;GP=4&amp;SP=32&amp;IX=246&amp;FX=0&amp;T=1</field>
                                </block>
                              </value>
                              <next>
                                <block type="variables_set" id="9/F*;FkHU|6(7rCiITW3">
                                  <field name="VAR" id="FE;=bub#@-:/yZ/%L*yZ">komplett_aus</field>
                                  <value name="VALUE">
                                    <block type="text" id="FOY#k|qLCYVxlLh/_acs">
                                      <field name="TEXT">T=0</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="comment" id="zeXAjy|E#I,^C,B]Dh7h">
                                      <field name="COMMENT">ACHTUNG die Endschalter für AUF abfragen</field>
                                      <next>
                                        <block type="comment" id="9-Trv:F3zPe+BX5@y/[p">
                                          <field name="COMMENT">um das Grüne Licht / Spot zu starten</field>
                                          <next>
                                            <block type="on_ext" id="v5?`O4SHcr}Nd7P#H;6e">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation>
                                              <field name="CONDITION">any</field>
                                              <field name="ACK_CONDITION"></field>
                                              <value name="OID0">
                                                <shadow type="field_oid" id="_wPH/$mF4jZM@f/mg/MD">
                                                  <field name="oid">zigbee.0.00158d0007e2f9d4.opened</field>
                                                </shadow>
                                              </value>
                                              <value name="OID1">
                                                <shadow type="field_oid" id="T7{#EbRHXmRlo2Xq[~Jq">
                                                  <field name="oid">zigbee.0.00158d0007e2fb36.opened</field>
                                                </shadow>
                                              </value>
                                              <value name="OID2">
                                                <shadow type="field_oid" id="S6f,79TI[l$4}=Si,aqa">
                                                  <field name="oid">zigbee.0.001788010cdc8130.illuminance</field>
                                                </shadow>
                                              </value>
                                              <statement name="STATEMENT">
                                                <block type="comment" id="Lna.HF8[AF}FW{{z]@CG">
                                                  <field name="COMMENT">Sensor Aqara</field>
                                                  <next>
                                                    <block type="controls_if" id="W%#h}eIET7l[*r_S-eVZ">
                                                      <mutation elseif="1"></mutation>
                                                      <value name="IF0">
                                                        <block type="logic_operation" id="wG~IV%=~_1BtuyDSJ59@" inline="false">
                                                          <field name="OP">AND</field>
                                                          <value name="A">
                                                            <block type="logic_compare" id="v%atUy]qWal)tQxya%Ky" inline="false">
                                                              <field name="OP">LT</field>
                                                              <value name="A">
                                                                <block type="get_value" id="#+rkU$vdA2fG6?=ajjmc">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">zigbee.0.001788010cdc8130.illuminance</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="math_number" id="%mwg[_?BlO%WA1R,J^cB">
                                                                  <field name="NUM">120</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="logic_operation" id="FB-Oh#6Bj(_^`$-yu;%i" inline="false">
                                                              <field name="OP">AND</field>
                                                              <value name="A">
                                                                <block type="logic_compare" id="vK(|LmVGSlJQ~pV5D#zQ" inline="false">
                                                                  <field name="OP">EQ</field>
                                                                  <value name="A">
                                                                    <block type="get_value" id=":D03lvcBw)A{DpJ3ZpYL">
                                                                      <field name="ATTR">val</field>
                                                                      <field name="OID">zigbee.0.00158d0007e2f9d4.opened</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <block type="logic_boolean" id="fhtS#Gf_~{.zHChBMvp1">
                                                                      <field name="BOOL">TRUE</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="logic_compare" id="Ty@[+*1}kB_cIcf:T4c?" inline="false">
                                                                  <field name="OP">EQ</field>
                                                                  <value name="A">
                                                                    <block type="get_value" id="ks+Pn:yT51o5MFo!kXZs">
                                                                      <field name="ATTR">val</field>
                                                                      <field name="OID">zigbee.0.00158d0007e2fb36.opened</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <block type="logic_boolean" id="w:`HT`@B^:TI9)Wr;WGs">
                                                                      <field name="BOOL">TRUE</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <statement name="DO0">
                                                        <block type="update" id="IrTe=+CN4@]r*hihDyiP">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                          <field name="OID">0_userdata.0.Messwerte.Szenen.Garagentor_in_bewe</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="logic_boolean" id="B7CINQQG?6gkawXe3$KJ">
                                                              <field name="BOOL">TRUE</field>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="request" id="u6]M_o0lmx+1QS3_1*^=">
                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                                              <field name="WITH_STATEMENT">FALSE</field>
                                                              <field name="LOG"></field>
                                                              <value name="URL">
                                                                <shadow type="text" id="e{{7P{@W#b%2xvxE_eId">
                                                                  <field name="TEXT">text</field>
                                                                </shadow>
                                                                <block type="text_join" id="$a#0I]ocAv%yKuny3uG,">
                                                                  <mutation items="2"></mutation>
                                                                  <value name="ADD0">
                                                                    <block type="variables_get" id="N,n09%*EyKyG$mX#+I.-">
                                                                      <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="ADD1">
                                                                    <block type="variables_get" id="G4rLlef1a/5|Cmj/X]a.">
                                                                      <field name="VAR" id="`mAjS]P=RuR7uqc{ipQ`">Tor_in_Bewegung</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </statement>
                                                      <value name="IF1">
                                                        <block type="logic_operation" id="p)GSQ4P@/Wx12ym8Q`O;" inline="false">
                                                          <field name="OP">AND</field>
                                                          <value name="A">
                                                            <block type="logic_compare" id="}112~z=6MVQjjZvkzC1x" inline="false">
                                                              <field name="OP">LT</field>
                                                              <value name="A">
                                                                <block type="get_value" id="3NZtEuh5:ZEHFrd1=RRm">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">zigbee.0.001788010cdc8130.illuminance</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="math_number" id="(6?[ymBdC~+)a/RL54IF">
                                                                  <field name="NUM">120</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="logic_operation" id=")R!HZq(me8JhA%l}x78=" inline="false">
                                                              <field name="OP">AND</field>
                                                              <value name="A">
                                                                <block type="logic_compare" id="v?#V|X/)Jpb`eX,z`ec{" inline="false">
                                                                  <field name="OP">EQ</field>
                                                                  <value name="A">
                                                                    <block type="get_value" id="~Ey@j|/TLa4F~36Ld;Vj">
                                                                      <field name="ATTR">val</field>
                                                                      <field name="OID">zigbee.0.00158d0007e2fb36.opened</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <block type="logic_boolean" id="N.Jfs`-X$)lmR8g`YPRp">
                                                                      <field name="BOOL">FALSE</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="logic_compare" id="iw_.}.KvQ,l:zNd.@c%1" inline="false">
                                                                  <field name="OP">EQ</field>
                                                                  <value name="A">
                                                                    <block type="get_value" id="L8k1|HuV~aVd9u;|S9xT">
                                                                      <field name="ATTR">val</field>
                                                                      <field name="OID">zigbee.0.00158d0007e2f9d4.opened</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <block type="logic_boolean" id="^)yH#4i4|(f|GsdKeRU6">
                                                                      <field name="BOOL">TRUE</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <statement name="DO1">
                                                        <block type="request" id="EC|aded,,tGS*2UQ2X.F">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                                          <field name="WITH_STATEMENT">FALSE</field>
                                                          <field name="LOG"></field>
                                                          <value name="URL">
                                                            <shadow type="text" id="ZfYA*N!(k%jzJ.6{ER0j">
                                                              <field name="TEXT">text</field>
                                                            </shadow>
                                                            <block type="text_join" id="@4B60l_nJp#lV$RY=!Mg">
                                                              <mutation items="2"></mutation>
                                                              <value name="ADD0">
                                                                <block type="variables_get" id="Kd-O-|~AOu-ES*gBw^Bo">
                                                                  <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD1">
                                                                <block type="variables_get" id="-tm^F}%F:[7Y,kIL%05M">
                                                                  <field name="VAR" id="O4FHleH:tl6~UI~DkJgr">Tor_grün_blinken</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="timeouts_cleartimeout" id="Y1?22j!rtHfI3=5/k$2=">
                                                              <field name="NAME">Grün dauer ein2</field>
                                                              <next>
                                                                <block type="timeouts_settimeout" id=",e|l:x%B([-}bdh1!f]6">
                                                                  <field name="NAME">Grün dauer ein2</field>
                                                                  <field name="DELAY">1</field>
                                                                  <field name="UNIT">sec</field>
                                                                  <statement name="STATEMENT">
                                                                    <block type="request" id="TrEfk2y^lkCRXIrrbA|p">
                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                                                      <field name="WITH_STATEMENT">FALSE</field>
                                                                      <field name="LOG"></field>
                                                                      <value name="URL">
                                                                        <shadow type="text" id=":X,S`|6@xE|S[_y;%CIV">
                                                                          <field name="TEXT">text</field>
                                                                        </shadow>
                                                                        <block type="text_join" id="Vb+`N?||?{c89-@#s^@i">
                                                                          <mutation items="2"></mutation>
                                                                          <value name="ADD0">
                                                                            <block type="variables_get" id="-w~WPwbh?GYK+Dx*CZV1">
                                                                              <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="ADD1">
                                                                            <block type="variables_get" id="2D{p=f}:@jF0n}G~-;fw">
                                                                              <field name="VAR" id="]_%]yGuJ+6l`+e^JVS4H">Tor_offen_dauer_grün</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                      <next>
                                                                        <block type="timeouts_cleartimeout" id="hUk_z`]$8^X%fMaWP`::">
                                                                          <field name="NAME">Grün dauer ein2</field>
                                                                          <next>
                                                                            <block type="timeouts_settimeout" id="j/aYA#wkLYF^Gc]4m.r!">
                                                                              <field name="NAME">Spot Einschalten2</field>
                                                                              <field name="DELAY">5</field>
                                                                              <field name="UNIT">sec</field>
                                                                              <statement name="STATEMENT">
                                                                                <block type="request" id="si#*fieAZdnC.F@ag^%k">
                                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                                                                  <field name="WITH_STATEMENT">FALSE</field>
                                                                                  <field name="LOG"></field>
                                                                                  <value name="URL">
                                                                                    <shadow type="text" id="o|}fW7)o=NiBUQRgWBSd">
                                                                                      <field name="TEXT">text</field>
                                                                                    </shadow>
                                                                                    <block type="text_join" id="+Ey2hFJuE:3NC*.wX#P|">
                                                                                      <mutation items="2"></mutation>
                                                                                      <value name="ADD0">
                                                                                        <block type="variables_get" id="v~NV75Ox_)N9J{c21Vm1">
                                                                                          <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field>
                                                                                        </block>
                                                                                      </value>
                                                                                      <value name="ADD1">
                                                                                        <block type="variables_get" id="7JTO]uOo;c4$D.Vx/$hs">
                                                                                          <field name="VAR" id="Um:Oj{57SH~GJP8C[(hN">Spot</field>
                                                                                        </block>
                                                                                      </value>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </statement>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </statement>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </statement>
                                                    </block>
                                                  </next>
                                                </block>
                                              </statement>
                                              <next>
                                                <block type="comment" id="oCTMmmFLPEc+-A]T%Fud">
                                                  <field name="COMMENT">Endschalter vom Tor zu alles aus</field>
                                                  <next>
                                                    <block type="on_ext" id="Kl7[t92[q;LHwWyWzccF">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                                      <field name="CONDITION">any</field>
                                                      <field name="ACK_CONDITION"></field>
                                                      <value name="OID0">
                                                        <shadow type="field_oid" id="q}0i_/?}QjB+F08AYb8j">
                                                          <field name="oid">zigbee.0.00158d0007e2f9d4.opened</field>
                                                        </shadow>
                                                      </value>
                                                      <statement name="STATEMENT">
                                                        <block type="controls_if" id="W__/eC.Y1858qsIxou^=">
                                                          <value name="IF0">
                                                            <block type="logic_operation" id=";0RM7(N/H^K$kFIi}mIb" inline="false">
                                                              <field name="OP">AND</field>
                                                              <value name="A">
                                                                <block type="logic_compare" id="4=IE9J[nD(AuNElj+Nw.">
                                                                  <field name="OP">EQ</field>
                                                                  <value name="A">
                                                                    <block type="on_source" id="}lz)+|lgPT`$iFyO@Fsc">
                                                                      <field name="ATTR">state.val</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <block type="logic_boolean" id="y|8Y0:Qe!%J;iYe3Y},T">
                                                                      <field name="BOOL">FALSE</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="logic_compare" id="VlyuUN/n4]*evEq%;o.5" inline="false">
                                                                  <field name="OP">LT</field>
                                                                  <value name="A">
                                                                    <block type="get_value" id="llg/0-ibVdRCKZl+nC-[">
                                                                      <field name="ATTR">val</field>
                                                                      <field name="OID">zigbee.0.001788010cdc8130.illuminance</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <block type="math_number" id="(}HN#_]@w]obCwjyPH8K">
                                                                      <field name="NUM">120</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <statement name="DO0">
                                                            <block type="timeouts_settimeout" id="C=Ievn6b/2Az7(kol,o/">
                                                              <field name="NAME">Spot Einschalten3</field>
                                                              <field name="DELAY">1</field>
                                                              <field name="UNIT">sec</field>
                                                              <statement name="STATEMENT">
                                                                <block type="request" id="p;#.?^s:l/v*ZZ:CA4LH">
                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                                                  <field name="WITH_STATEMENT">FALSE</field>
                                                                  <field name="LOG"></field>
                                                                  <value name="URL">
                                                                    <shadow type="text" id="MhM`A@PAJMKKIuD;`k)3">
                                                                      <field name="TEXT">text</field>
                                                                    </shadow>
                                                                    <block type="text_join" id="c^XJVr(oMxVv%`lH+y1V">
                                                                      <mutation items="2"></mutation>
                                                                      <value name="ADD0">
                                                                        <block type="variables_get" id="WW,wSQ:#!yfnCx2cc=m_">
                                                                          <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="ADD1">
                                                                        <block type="variables_get" id="rJ(-BNJn`B~##jgAlpD+">
                                                                          <field name="VAR" id="Um:Oj{57SH~GJP8C[(hN">Spot</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </statement>
                                                              <next>
                                                                <block type="timeouts_settimeout" id="bUkj%WD(;aLc?n^-Np-L">
                                                                  <field name="NAME">Endschalter zu alles aus</field>
                                                                  <field name="DELAY">60</field>
                                                                  <field name="UNIT">sec</field>
                                                                  <statement name="STATEMENT">
                                                                    <block type="request" id="^;Umnn((|geyUTI8qDyC">
                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                                                      <field name="WITH_STATEMENT">FALSE</field>
                                                                      <field name="LOG"></field>
                                                                      <value name="URL">
                                                                        <shadow type="text" id="(ioj6MV?=7#yE+G!gW6W">
                                                                          <field name="TEXT">text</field>
                                                                        </shadow>
                                                                        <block type="text_join" id="ugY=.{Me=%vqfbq)MEB0">
                                                                          <mutation items="2"></mutation>
                                                                          <value name="ADD0">
                                                                            <block type="variables_get" id="c8bNA.j:JFOO39%@bDz,">
                                                                              <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="ADD1">
                                                                            <block type="variables_get" id="j6WLjln`VupX~o!u)#%t">
                                                                              <field name="VAR" id="FE;=bub#@-:/yZ/%L*yZ">komplett_aus</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </statement>
                                                                  <next>
                                                                    <block type="control" id="Vg5;7=!oOLC)#;dLcRcm">
                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                      <field name="OID">0_userdata.0.Messwerte.Szenen.Garagentor_in_bewe</field>
                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                      <value name="VALUE">
                                                                        <block type="logic_boolean" id="9ge$6dw#HB.q.~W*q@4G">
                                                                          <field name="BOOL">FALSE</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </statement>
                                                        </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>
        <block type="comment" id="}oz*i0NN;e8RQC2W=niu" x="1237" y="62">
          <field name="COMMENT">!!!! ACHTUNG MUSS auf wurde aktualisiert stehen</field>
          <next>
            <block type="comment" id="E[P^*NqX=b,.*QlSem/(">
              <field name="COMMENT">Handsender HM</field>
              <next>
                <block type="comment" id="R8VTNLfH;shX|iU?}B*#">
                  <field name="COMMENT">Spot einschalten</field>
                  <next>
                    <block type="on_ext" id="^Y#tI3BbL;c)mz(Zfnbi" collapsed="true" disabled="true">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                      <field name="CONDITION">any</field>
                      <field name="ACK_CONDITION"></field>
                      <value name="OID0">
                        <shadow type="field_oid" id="WX)Pm6)r3{Is@kU$i3^r">
                          <field name="oid">javascript.0.Garage.GaragentorLicht</field>
                        </shadow>
                      </value>
                      <statement name="STATEMENT">
                        <block type="controls_if" id="ecQyt_SaZP?;z4^QgG~I">
                          <mutation else="1"></mutation>
                          <value name="IF0">
                            <block type="logic_compare" id="c,*]p,_n)IOpbQ68g(L-">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="on_source" id="ijed7W4/F1EaZNJhue]e">
                                  <field name="ATTR">state.val</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="Qc,MX8[p`[*wq5uv6%`Z">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </statement>
                      <next>
                        <block type="comment" id="#mEy;Itxn2~_D)$92I!e">
                          <field name="COMMENT">Garagentor öffnen / schliessen</field>
                          <next>
                            <block type="on_ext" id="85Xyy):=QU10G-zca6P." collapsed="true" disabled="true">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                              <field name="CONDITION">any</field>
                              <field name="ACK_CONDITION"></field>
                              <value name="OID0">
                                <shadow type="field_oid" id="$j#2tln^uy1?+kJZ;Dft">
                                  <field name="oid">hm-rpc.0.NEQ1136838.2.PRESS_SHORT</field>
                                </shadow>
                              </value>
                              <statement name="STATEMENT">
                                <block type="controls_if" id="9lEpkEQu-AV:TeM2KSgA">
                                  <value name="IF0">
                                    <block type="on_source" id="Vv/]h%942IrB),_k^+wg">
                                      <field name="ATTR">id</field>
                                    </block>
                                  </value>
                                </block>
                              </statement>
                              <next>
                                <block type="comment" id="~56Mx89X*7K*A)eBjv0q">
                                  <field name="COMMENT">Licht und Garagentor</field>
                                  <next>
                                    <block type="on_ext" id="JU#.UH:mr_W*2w0L$yXO" disabled="true">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                      <field name="CONDITION">any</field>
                                      <field name="ACK_CONDITION"></field>
                                      <value name="OID0">
                                        <shadow type="field_oid" id="MxxWTnkJM@,Wb@`_JoH`">
                                          <field name="oid">hm-rpc.0.NEQ1136838.1.PRESS_SHORT</field>
                                        </shadow>
                                      </value>
                                      <statement name="STATEMENT">
                                        <block type="controls_if" id="Y~b[0:!pIax(wxcX[RDz">
                                          <value name="IF0">
                                            <block type="on_source" id="s..^Q@AY$S=G,w2;+|+:">
                                              <field name="ATTR">id</field>
                                            </block>
                                          </value>
                                        </block>
                                      </statement>
                                      <next>
                                        <block type="comment" id="d/g1NaL^f;8oFx5gsunx">
                                          <field name="COMMENT">Garagentor Stop und Licht aus</field>
                                          <next>
                                            <block type="on_ext" id="@1ut$?Y_NYcXF}Y}V7t2" disabled="true">
                                              <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="-GyZcivsp5AZsjF]lc@-">
                                                  <field name="oid">hm-rpc.0.NEQ1136838.4.PRESS_SHORT</field>
                                                </shadow>
                                              </value>
                                              <statement name="STATEMENT">
                                                <block type="controls_if" id="E=tOj6K9-wSsCcxqA/F.">
                                                  <value name="IF0">
                                                    <block type="on_source" id="[g@[LK/RgL_rBucKRdn#">
                                                      <field name="ATTR">id</field>
                                                    </block>
                                                  </value>
                                                  <statement name="DO0">
                                                    <block type="variables_set" id="M8x@C:oD[Sfslxvb3FO3">
                                                      <field name="VAR" id="FE;=bub#@-:/yZ/%L*yZ">komplett_aus</field>
                                                      <value name="VALUE">
                                                        <block type="logic_boolean" id="rK2(M1.Ai5~YfFu~U,Y}">
                                                          <field name="BOOL">TRUE</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </statement>
                                                </block>
                                              </statement>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </next>
        </block>
      </xml>
      

      Kannst dir das Skript gern mal anschauen. Oder soll ich lieber Screenshot posten?
      Bekomme noch folgende Fehlermeldung:

      script.js.Außenbereich.Skript_1: request package is deprecated - please use httpGet (or a stable lib like axios) instead!
      

      Funktioniert erstmal alles. Bin nur der Meinung, dass es vielleicht zu umständlich ist.
      Ich will nur noch über einen Datenpunkt, siehe Skript, ein "wahr" setzen, wenn die Garage in Bewegung ist.

      CodierknechtC Offline
      CodierknechtC Offline
      Codierknecht
      Developer Most Active
      schrieb am zuletzt editiert von
      #9

      @13patrick37 sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:

      Kannst dir das Skript gern mal anschauen. Oder soll ich lieber Screenshot posten?

      Bitte Blockly immer als Screenshot liefern.

      Den Code kann man optional (hinter 'nem Spoiler) zusätzlich liefern.

      Nur die allerwenigsten haben Lust, ein Blockly erstmal zu importieren (was gar nicht immer geht) um einen Blick darauf zu werfen.

      "Any fool can write code that a computer can understand. Good programmers write code that humans can understand." (Martin Fowler, "Refactoring")

      Proxmox 9.1.1 LXC|8 GB|Core i7-6700
      HmIP|ZigBee|Tasmota|Unifi
      Zabbix Certified Specialist
      Konnte ich Dir helfen? Dann benutze bitte das Voting unten rechts im Beitrag

      1 1 Antwort Letzte Antwort
      0
      • CodierknechtC Codierknecht

        @13patrick37 sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:

        Kannst dir das Skript gern mal anschauen. Oder soll ich lieber Screenshot posten?

        Bitte Blockly immer als Screenshot liefern.

        Den Code kann man optional (hinter 'nem Spoiler) zusätzlich liefern.

        Nur die allerwenigsten haben Lust, ein Blockly erstmal zu importieren (was gar nicht immer geht) um einen Blick darauf zu werfen.

        1 Online
        1 Online
        13patrick37
        schrieb am zuletzt editiert von
        #10

        @codierknecht
        1.jpg
        2.jpg
        4.jpg

        1 Antwort Letzte Antwort
        0
        • CodierknechtC Codierknecht

          @13patrick37 sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:

          eine Frage zum Datenpunkt - wenn Garage in Bewegung ist soll es einen Datenpunkt mit wahr setzen

          Wie ist der denn definiert?

          CodierknechtC Offline
          CodierknechtC Offline
          Codierknecht
          Developer Most Active
          schrieb am zuletzt editiert von
          #11

          @codierknecht sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:

          Wie ist der denn definiert?

          @13patrick37
          Zeig mal bitte die Definition (Objektdaten, also das JSON) dieses "Datenpunktes" (bitte in Code-Tags)

          "Any fool can write code that a computer can understand. Good programmers write code that humans can understand." (Martin Fowler, "Refactoring")

          Proxmox 9.1.1 LXC|8 GB|Core i7-6700
          HmIP|ZigBee|Tasmota|Unifi
          Zabbix Certified Specialist
          Konnte ich Dir helfen? Dann benutze bitte das Voting unten rechts im Beitrag

          1 1 Antwort Letzte Antwort
          0
          • CodierknechtC Codierknecht

            @codierknecht sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:

            Wie ist der denn definiert?

            @13patrick37
            Zeig mal bitte die Definition (Objektdaten, also das JSON) dieses "Datenpunktes" (bitte in Code-Tags)

            1 Online
            1 Online
            13patrick37
            schrieb am zuletzt editiert von 13patrick37
            #12

            @codierknecht

            {
              "0_userdata.0.Messwerte.Szenen.Garagentor_in_bewe": {
                "common": {
                  "name": "Neuer Zustand1",
                  "desc": "",
                  "role": "switch",
                  "type": "boolean",
                  "read": true,
                  "write": true
                },
                "type": "state",
                "native": {},
                "_id": "0_userdata.0.Messwerte.Szenen.Garagentor_in_bewe",
                "from": "system.adapter.admin.0",
                "user": "system.user.admin",
                "ts": 1762192731441,
                "val": false,
                "ack": false
              }
            }
            

            Ich habe nun den http-request doch auf die normalen WLED Presets geändert. Ich bin mir nur bei dem timeout Block unsicher ob das so korrekt ist:
            Wenn Garage offen dann Preset 1 (leuchtet grün), danach sollen zwei andere Presets ablaufen und zu den Spots (3) übergehen und so bleiben, solange die Garage geöffnet ist.

            Screenshot 2025-11-04 124451.jpg

            1 Antwort Letzte Antwort
            0
            • CodierknechtC Offline
              CodierknechtC Offline
              Codierknecht
              Developer Most Active
              schrieb am zuletzt editiert von Codierknecht
              #13

              @13patrick37

              Nur damit ich das richtig verstehe:

              • Endschalter "unten" geschlossen
                Tor ist zu - alles aus
              • Endschalter "unten" öffnet
                Rotes Lauflicht
              • Endschalter "oben" wird geschlossen
                Tor ist oben. Dauerlicht weiß und Spots einschalten
              • Endschalter "oben" öffnet
                Spots aus und rotes Lauflicht

              Wozu genau sollen da die Timeouts dienen?

              "Any fool can write code that a computer can understand. Good programmers write code that humans can understand." (Martin Fowler, "Refactoring")

              Proxmox 9.1.1 LXC|8 GB|Core i7-6700
              HmIP|ZigBee|Tasmota|Unifi
              Zabbix Certified Specialist
              Konnte ich Dir helfen? Dann benutze bitte das Voting unten rechts im Beitrag

              1 1 Antwort Letzte Antwort
              0
              • CodierknechtC Codierknecht

                @13patrick37

                Nur damit ich das richtig verstehe:

                • Endschalter "unten" geschlossen
                  Tor ist zu - alles aus
                • Endschalter "unten" öffnet
                  Rotes Lauflicht
                • Endschalter "oben" wird geschlossen
                  Tor ist oben. Dauerlicht weiß und Spots einschalten
                • Endschalter "oben" öffnet
                  Spots aus und rotes Lauflicht

                Wozu genau sollen da die Timeouts dienen?

                1 Online
                1 Online
                13patrick37
                schrieb am zuletzt editiert von
                #14

                @codierknecht

                Endschalter unten offen und oben offen = Lauflicht
                Endschalter oben zu und unten offen = grünes Licht, danach weißes Lauflicht und dann Spots. (Daher die Timeouts)
                Sobald wieder alles in Endlage ist (oben offen, unten geschlossen) noch 60sek Spots, dann aus.

                Den Datenpunkt habe ich gesetzt, dass das Garagentorlicht nicht währenddessen angeht, falls ich durch den BWM laufe.

                Beispiel zur Beleuchtung: https://www.youtube.com/watch?v=M8xCgQUihd8

                CodierknechtC 1 Antwort Letzte Antwort
                0
                • 1 13patrick37

                  @codierknecht

                  Endschalter unten offen und oben offen = Lauflicht
                  Endschalter oben zu und unten offen = grünes Licht, danach weißes Lauflicht und dann Spots. (Daher die Timeouts)
                  Sobald wieder alles in Endlage ist (oben offen, unten geschlossen) noch 60sek Spots, dann aus.

                  Den Datenpunkt habe ich gesetzt, dass das Garagentorlicht nicht währenddessen angeht, falls ich durch den BWM laufe.

                  Beispiel zur Beleuchtung: https://www.youtube.com/watch?v=M8xCgQUihd8

                  CodierknechtC Offline
                  CodierknechtC Offline
                  Codierknecht
                  Developer Most Active
                  schrieb am zuletzt editiert von
                  #15

                  @13patrick37

                  Vielleicht so?

                  14f08a2d-56a4-492e-a092-6e4b2e7ebe10-grafik.png
                  Versuch macht klug :grin:

                  "Any fool can write code that a computer can understand. Good programmers write code that humans can understand." (Martin Fowler, "Refactoring")

                  Proxmox 9.1.1 LXC|8 GB|Core i7-6700
                  HmIP|ZigBee|Tasmota|Unifi
                  Zabbix Certified Specialist
                  Konnte ich Dir helfen? Dann benutze bitte das Voting unten rechts im Beitrag

                  1 3 Antworten Letzte Antwort
                  1
                  • CodierknechtC Codierknecht

                    @13patrick37

                    Vielleicht so?

                    14f08a2d-56a4-492e-a092-6e4b2e7ebe10-grafik.png
                    Versuch macht klug :grin:

                    1 Online
                    1 Online
                    13patrick37
                    schrieb am zuletzt editiert von
                    #16

                    @codierknecht
                    Danke, wird getestet! :)

                    Und was sagst du zum Datenpunkt? ok so?

                    CodierknechtC 1 Antwort Letzte Antwort
                    0
                    • 1 13patrick37

                      @codierknecht
                      Danke, wird getestet! :)

                      Und was sagst du zum Datenpunkt? ok so?

                      CodierknechtC Offline
                      CodierknechtC Offline
                      Codierknecht
                      Developer Most Active
                      schrieb am zuletzt editiert von
                      #17

                      @13patrick37 sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:

                      Und was sagst du zum Datenpunkt? ok so?

                      Soll ja nur ein Flag sein, oder? Sollte passen.

                      "Any fool can write code that a computer can understand. Good programmers write code that humans can understand." (Martin Fowler, "Refactoring")

                      Proxmox 9.1.1 LXC|8 GB|Core i7-6700
                      HmIP|ZigBee|Tasmota|Unifi
                      Zabbix Certified Specialist
                      Konnte ich Dir helfen? Dann benutze bitte das Voting unten rechts im Beitrag

                      1 Antwort Letzte Antwort
                      0
                      • CodierknechtC Codierknecht

                        @13patrick37

                        Vielleicht so?

                        14f08a2d-56a4-492e-a092-6e4b2e7ebe10-grafik.png
                        Versuch macht klug :grin:

                        1 Online
                        1 Online
                        13patrick37
                        schrieb am zuletzt editiert von
                        #18

                        @codierknecht

                        Hi, also öffnen und schließen mit Lauflicht funktioniert so! Auch das grüne Dauerlicht.
                        Habe nur zwei Probleme:

                        • Lauflicht rot geht nicht aus, wenn Garage geschlossen ist. Im Skript fehlt etwas, dass er erkennt dass alles geschlossen ist, nachdem vorher offen war.

                        • teilweise reagiert das Lichtband sehr spät. Erst 5 Sekunden nachdem ich die Garage geöffnet habe.. entweder der untere Sensor reagiert zu spät oder der Impuls von WLED dauert zu lange? Wobei das schließen richtig schnell geht.

                        1 Antwort Letzte Antwort
                        0
                        • CodierknechtC Codierknecht

                          @13patrick37

                          Vielleicht so?

                          14f08a2d-56a4-492e-a092-6e4b2e7ebe10-grafik.png
                          Versuch macht klug :grin:

                          1 Online
                          1 Online
                          13patrick37
                          schrieb am zuletzt editiert von
                          #19

                          @codierknecht oder soll ich im unteren Feld einfach nochmal einen neuen Trigger erstellen, der nur die untere Endlage betrifft?

                          CodierknechtC 1 Antwort Letzte Antwort
                          0
                          • 1 13patrick37

                            @codierknecht oder soll ich im unteren Feld einfach nochmal einen neuen Trigger erstellen, der nur die untere Endlage betrifft?

                            CodierknechtC Offline
                            CodierknechtC Offline
                            Codierknecht
                            Developer Most Active
                            schrieb am zuletzt editiert von
                            #20

                            @13patrick37 sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:

                            einen neuen Trigger erstellen

                            Du brauchst keinen neuen Trigger. Es gibt ja nur die beiden Endschalter ... und deren Status wir zu Beginn ermittelt.
                            Du muss im "falls" lediglich auf die passenden Werte der beiden Endschalter reagieren.
                            Wann ist denn "zu"? Wenn ES unten geschlossen und ES oben offen?

                            "Any fool can write code that a computer can understand. Good programmers write code that humans can understand." (Martin Fowler, "Refactoring")

                            Proxmox 9.1.1 LXC|8 GB|Core i7-6700
                            HmIP|ZigBee|Tasmota|Unifi
                            Zabbix Certified Specialist
                            Konnte ich Dir helfen? Dann benutze bitte das Voting unten rechts im Beitrag

                            1 1 Antwort Letzte Antwort
                            0
                            • CodierknechtC Codierknecht

                              @13patrick37 sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:

                              einen neuen Trigger erstellen

                              Du brauchst keinen neuen Trigger. Es gibt ja nur die beiden Endschalter ... und deren Status wir zu Beginn ermittelt.
                              Du muss im "falls" lediglich auf die passenden Werte der beiden Endschalter reagieren.
                              Wann ist denn "zu"? Wenn ES unten geschlossen und ES oben offen?

                              1 Online
                              1 Online
                              13patrick37
                              schrieb am zuletzt editiert von
                              #21

                              @codierknecht

                              Wenn Garage zu:

                              Endschalter oben = open true
                              Endschalter unten = open false

                              Ist die Frage, ob ich im unteren Bereich dann ein Sonst falls? Ich stehe auf dem Schlauch, wie er sonst den Wert nehmen soll?

                              CodierknechtC 1 Antwort Letzte Antwort
                              0
                              • 1 13patrick37

                                @codierknecht

                                Wenn Garage zu:

                                Endschalter oben = open true
                                Endschalter unten = open false

                                Ist die Frage, ob ich im unteren Bereich dann ein Sonst falls? Ich stehe auf dem Schlauch, wie er sonst den Wert nehmen soll?

                                CodierknechtC Offline
                                CodierknechtC Offline
                                Codierknecht
                                Developer Most Active
                                schrieb am zuletzt editiert von
                                #22

                                @13patrick37 sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:

                                Ist die Frage, ob ich im unteren Bereich dann ein Sonst falls? Ich stehe auf dem Schlauch, wie er sonst den Wert nehmen soll?

                                SonstFalls oben und nicht unten

                                Das müsste aber durch das globale "sonst" unten bereits abgedeckt sein.

                                "Any fool can write code that a computer can understand. Good programmers write code that humans can understand." (Martin Fowler, "Refactoring")

                                Proxmox 9.1.1 LXC|8 GB|Core i7-6700
                                HmIP|ZigBee|Tasmota|Unifi
                                Zabbix Certified Specialist
                                Konnte ich Dir helfen? Dann benutze bitte das Voting unten rechts im Beitrag

                                1 1 Antwort Letzte Antwort
                                0
                                • CodierknechtC Codierknecht

                                  @13patrick37 sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:

                                  Ist die Frage, ob ich im unteren Bereich dann ein Sonst falls? Ich stehe auf dem Schlauch, wie er sonst den Wert nehmen soll?

                                  SonstFalls oben und nicht unten

                                  Das müsste aber durch das globale "sonst" unten bereits abgedeckt sein.

                                  1 Online
                                  1 Online
                                  13patrick37
                                  schrieb am zuletzt editiert von
                                  #23

                                  @codierknecht

                                  Habe es jetzt so gelöst:

                                  Screenshot 2025-11-09 094221.jpg

                                  Funktioniert soweit. Allerdings nicht wirklich die Lösung oder?
                                  Die Helligkeit oben triggern macht auch nicht wirklich SInn, oder? (Illuminance)

                                  CodierknechtC 1 Antwort Letzte Antwort
                                  0
                                  • 1 13patrick37

                                    @codierknecht

                                    Habe es jetzt so gelöst:

                                    Screenshot 2025-11-09 094221.jpg

                                    Funktioniert soweit. Allerdings nicht wirklich die Lösung oder?
                                    Die Helligkeit oben triggern macht auch nicht wirklich SInn, oder? (Illuminance)

                                    CodierknechtC Offline
                                    CodierknechtC Offline
                                    Codierknecht
                                    Developer Most Active
                                    schrieb am zuletzt editiert von
                                    #24

                                    @13patrick37 sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:

                                    Die Helligkeit oben triggern macht auch nicht wirklich SInn, oder? (Illuminance)

                                    Nicht wirklich. Du reagierst ja nirgends darauf. Dann kann das eigentlich auch weg.

                                    "Any fool can write code that a computer can understand. Good programmers write code that humans can understand." (Martin Fowler, "Refactoring")

                                    Proxmox 9.1.1 LXC|8 GB|Core i7-6700
                                    HmIP|ZigBee|Tasmota|Unifi
                                    Zabbix Certified Specialist
                                    Konnte ich Dir helfen? Dann benutze bitte das Voting unten rechts im Beitrag

                                    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

                                    513

                                    Online

                                    32.5k

                                    Benutzer

                                    81.6k

                                    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