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. WLED und Garagentorbeleuchtung

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    15
    1
    827

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    680

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    1.9k

WLED und Garagentorbeleuchtung

Geplant Angeheftet Gesperrt Verschoben Blockly
8 Beiträge 3 Kommentatoren 998 Aufrufe 2 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.
  • ThomasMT Offline
    ThomasMT Offline
    ThomasM
    schrieb am zuletzt editiert von ThomasM
    #1

    Moin Community,

    bin gerade ebenfalls dabei meine Garagentorbeleuchtung mit WLED und Blockly aufzubauzen. Leider wird manchmal die voreingestellte Farbe der LED nicht genommen. Ich weiß nicht warum das so ist.

    Inspiration:
    Ebenfalls Youtube-Video

    Hardware:

    • Novoport Sektionaltor mit Homematic IP Funk-Aktor (HmIP-MOD-TM) über den ich den Status des Tors in iobroker übermittelt bekomme (0=Closed, 1=Open, 2=Lüften, 3=Unknown (fährt gerade hoch oder runter).
    • wemos mini d1 ESP8266 mit WLED geflashed
    • MEAN WELL LPV-60-5 Netzteil
    • 2m BTF adressierbarer LED-Stripe IP65

    Idee:
    Wenn Status = 3 (Tor in Betrieb hoch/runter), dann Lauflicht rot (Effekt: Scanner Dual)
    Wenn Tor Offen, dann 5 Sekunden grüner LED-Stripe (Effect: Solid)
    Abschluss bei Open oder Closed für ca. 15 Sekunden Spot-Beleuchtung in weiss (Effekt: Spots)

    Mein Blockly:

    <xml xmlns="https://developers.google.com/blockly/xml">
      <block type="on" id="[x^Zk{9+,m,(xg@YDItG" x="-1362" y="-2062">
        <field name="OID">hm-rpc.1.001E5E12FAF5DB.1.DOOR_STATE</field>
        <field name="CONDITION">ne</field>
        <field name="ACK_CONDITION"></field>
        <statement name="STATEMENT">
          <block type="comment" id="uB~.t3Sbi~Ez[|,)s3(V">
            <field name="COMMENT">Wenn Status unknown: fährt gerade hoch/runter</field>
            <next>
              <block type="controls_if" id="b.=T4x_1Bzl~E6Aj+d,_">
                <value name="IF0">
                  <block type="logic_compare" id="HH8m{uK@FN2!%w(;i+8N">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="get_value" id="IKXxt]Ycg:$9`yrF!soL">
                        <field name="ATTR">val</field>
                        <field name="OID">hm-rpc.1.001E5E12FAF5DB.1.DOOR_STATE</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="math_number" id="BO7{RAE:@%b#B9SYVk($">
                        <field name="NUM">3</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="control" id="%^WT@hC_w+Hqm)Dp[0jQ">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">wled.0.c45bbe55574f.on</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="jx?Qd;79TxpSFS.vPIL(">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                    <next>
                      <block type="control" id="{7z:D,$oLi[pwmE01/h$">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">wled.0.c45bbe55574f.seg.0.bri</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="math_number" id="hM2PKHRrSc*aIaJm@G{!">
                            <field name="NUM">255</field>
                          </block>
                        </value>
                        <next>
                          <block type="control" id="ThspYz3H2vnlFjG;:5FU">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">wled.0.c45bbe55574f.seg.0.col.0_HEX</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="colour_picker" id="d;C|Q@5x8ac5i{9`uZJx">
                                <field name="COLOUR">#ff0000</field>
                              </block>
                            </value>
                            <next>
                              <block type="control" id="t$jCxN76Wny]Kxdyf;*0">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">wled.0.c45bbe55574f.seg.0.sx</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="math_number" id="1}xAbUU-PD@sq]UhH,pl">
                                    <field name="NUM">89</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="control" id="s^nzqS2R1@m8^Yj;e8rY">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">wled.0.c45bbe55574f.seg.0.ix</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="pb.S2V:@sJ)7DUCW=Wdf">
                                        <field name="NUM">237</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="control" id="Vsh%U,2rLePgyn.(3/a+">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">wled.0.c45bbe55574f.seg.0.fx</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="math_number" id="U$Iy:m/Ppv,PNJ4^@5-0">
                                            <field name="NUM">60</field>
                                          </block>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
                <next>
                  <block type="comment" id="dC:L!m%XS%*nMOAO+:Zt">
                    <field name="COMMENT">Wenn Status closed</field>
                    <next>
                      <block type="controls_if" id="vuW9U0ZA/M)*CSE?E#c|">
                        <value name="IF0">
                          <block type="logic_compare" id="Zpm,qP!SUrr*)#QS=pc#">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="get_value" id=",1q2(K{67sUwBpV$p%pi">
                                <field name="ATTR">val</field>
                                <field name="OID">hm-rpc.1.001E5E12FAF5DB.1.DOOR_STATE</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="]Lhv3-;^9zW:V::WZwZl">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="control" id="CgkaF[}hz`jUA0/H:VVp">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">wled.0.c45bbe55574f.seg.0.col.0_HEX</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="colour_picker" id="f5rUu1Muj$AwzPz|ZLV`">
                                <field name="COLOUR">#ffffff</field>
                              </block>
                            </value>
                            <next>
                              <block type="control" id="tABOe)]Y/Ymm?I^DVS[T">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">wled.0.c45bbe55574f.seg.0.sx</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="math_number" id="XpqG]~i(J7jlGxAU=46{">
                                    <field name="NUM">92</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="control" id="%mfMhb{tO]KCu6QSL:f4">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">wled.0.c45bbe55574f.seg.0.ix</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="f~Cp*i8uPZpU~-1`+{a@">
                                        <field name="NUM">85</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="control" id="cBk%qxly%OdLEQvuTnZv">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">wled.0.c45bbe55574f.seg.0.fx</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="math_number" id="-3++B23}9UbS-$=bnbtr">
                                            <field name="NUM">85</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="control" id="O5vtDD:j=$y5B(KA@N[{">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                            <field name="OID">wled.0.c45bbe55574f.on</field>
                                            <field name="WITH_DELAY">TRUE</field>
                                            <field name="DELAY_MS">15</field>
                                            <field name="UNIT">sec</field>
                                            <field name="CLEAR_RUNNING">FALSE</field>
                                            <value name="VALUE">
                                              <block type="logic_boolean" id="fQ6C5uf3x$h[pr:vKBs|">
                                                <field name="BOOL">FALSE</field>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </statement>
                        <next>
                          <block type="comment" id="1vQn!L/ov54G!y#.b3+K">
                            <field name="COMMENT">Wenn Status open</field>
                            <next>
                              <block type="controls_if" id=")3|Q~(-qL9:Y1^7BW=Bx">
                                <value name="IF0">
                                  <block type="logic_compare" id="RX+/r},6S;~M%s_Sd]Rv">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id="rVb2IPTg[3QGMiqYEDbx">
                                        <field name="ATTR">val</field>
                                        <field name="OID">hm-rpc.1.001E5E12FAF5DB.1.DOOR_STATE</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="math_number" id="F^7zdrrWb(lS%JH[BHYU">
                                        <field name="NUM">1</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="control" id="QJmMA%:%T/hA*t8*h,s4">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">wled.0.c45bbe55574f.seg.0.col.0_HEX</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="colour_picker" id="Wr%t(.g5l4!_G}/es6kT">
                                        <field name="COLOUR">#33ff33</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="control" id="C,R}A$EXQ`eJLU^th@qY">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">wled.0.c45bbe55574f.seg.0.fx</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="math_number" id=")10HTwAd9@4+!L9$3J2o">
                                            <field name="NUM">0</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="comment" id="*g8g~b2e7$d^VM_G13H9">
                                            <field name="COMMENT">Effekt 3: Spots</field>
                                            <next>
                                              <block type="control" id="O/K#^zKc{vIDh#8:sbKG">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                <field name="OID">wled.0.c45bbe55574f.seg.0.fx</field>
                                                <field name="WITH_DELAY">TRUE</field>
                                                <field name="DELAY_MS">5</field>
                                                <field name="UNIT">sec</field>
                                                <field name="CLEAR_RUNNING">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="math_number" id="${lbQq;;9]rgLt/9h{Ox">
                                                    <field name="NUM">85</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="control" id="JM6`.#7zHdq06a6*!ms`">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                    <field name="OID">wled.0.c45bbe55574f.seg.0.col.0_HEX</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="colour_picker" id="wDc^g;fLGEHJ~OYQz1Eg">
                                                        <field name="COLOUR">#ffffff</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="control" id="I80r~!qRj{LyDPMOngwC">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                        <field name="OID">wled.0.c45bbe55574f.seg.0.sx</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="math_number" id="epg:m`J+IKs6f$iu8]@B">
                                                            <field name="NUM">92</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="control" id="75w+h!71.|,Y|bMl@p2.">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                            <field name="OID">wled.0.c45bbe55574f.seg.0.ix</field>
                                                            <field name="WITH_DELAY">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="math_number" id="B9I1b5uFXD[nWv_7;+JD">
                                                                <field name="NUM">85</field>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="control" id="b2IJ1|?=ss!jw?VfyP)O">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                                <field name="OID">wled.0.c45bbe55574f.on</field>
                                                                <field name="WITH_DELAY">TRUE</field>
                                                                <field name="DELAY_MS">15</field>
                                                                <field name="UNIT">sec</field>
                                                                <field name="CLEAR_RUNNING">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="logic_boolean" id="T.AJB-BR_EjoD@GmC%ge">
                                                                    <field name="BOOL">FALSE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
      </block>
    </xml>
    

    Der Trigger (Statusänderung des Garagentors) löst zuverlässig aus und der erste Effect (Scanner Dual) wird korrekt angezeigt.
    Sobald das Tor offen ist, sollte eigentlich eine 5-Sekungen-Phase mit einer grünen LED erscheinen (effect: Solid). De3ise ist aber manchmal weiss statt grün.

    Hat jeman eine Idee warum das so ist?

    Gruß
    Thomas

    1 Antwort Letzte Antwort
    0
    • PeoplesP Offline
      PeoplesP Offline
      Peoples
      schrieb am zuletzt editiert von
      #2

      @thomasm
      Ich habe das auch nachgebaut, allerdings als Script da ich mich mit mit blocky auskenne. Ich hatte das Phänomen dass wenn ich zu viele Befehle in kurzer Zeit gesendet habe, dass einige Befehle nicht ausgeführt sondern übersprungen wurden liegt wahrscheinlich an der Empfangsqualität des WLAN Signals. Das habe ich dann mit einem vergrößern des Delays gelöst.

      Ich beantworte keine Fragen zu Themen via PN

      ThomasMT 1 Antwort Letzte Antwort
      0
      • PeoplesP Peoples

        @thomasm
        Ich habe das auch nachgebaut, allerdings als Script da ich mich mit mit blocky auskenne. Ich hatte das Phänomen dass wenn ich zu viele Befehle in kurzer Zeit gesendet habe, dass einige Befehle nicht ausgeführt sondern übersprungen wurden liegt wahrscheinlich an der Empfangsqualität des WLAN Signals. Das habe ich dann mit einem vergrößern des Delays gelöst.

        ThomasMT Offline
        ThomasMT Offline
        ThomasM
        schrieb am zuletzt editiert von
        #3

        @peoples Interessanter Gedanke! Danke dafür.
        Ich habe allerdings ein Testscript mit einem Test-LED-Stripe (1 Meter) bei mir auf dem Schreibtisch liegen und dort habe ich eine sehr gute WLAN-Anbindung. Am WLAN sollte es also nicht liegen. Ich werde aber mal einen Timeout einbauen und das dann nochmals testen.
        Gruß Thomas

        S 1 Antwort Letzte Antwort
        0
        • ThomasMT ThomasM

          @peoples Interessanter Gedanke! Danke dafür.
          Ich habe allerdings ein Testscript mit einem Test-LED-Stripe (1 Meter) bei mir auf dem Schreibtisch liegen und dort habe ich eine sehr gute WLAN-Anbindung. Am WLAN sollte es also nicht liegen. Ich werde aber mal einen Timeout einbauen und das dann nochmals testen.
          Gruß Thomas

          S Offline
          S Offline
          SigiMOE
          schrieb am zuletzt editiert von
          #4

          @thomasm

          ich habe es mit presets innerhalb von der WLED App gelöst, keine Ahnung ob es Dich weiterbringt, aber ist zumindest mal ein anderer Ansatz

          Ich habe 2 Aquara Türfenster Sensoren im Einsatz und in 2 Skripte aufgeteilt

          Skript 1 Zustand ermitteln

          
          <xml xmlns="https://developers.google.com/blockly/xml">
            <block type="comment" id="vOA(IDZ5u2(rnyL/%sEb" x="-712" y="-612">
              <field name="COMMENT">Als 1., eigener Datenpunkt anlegen</field>
              <next>
                <block type="comment" id="1%6]-4rjtKlpSR;+NIol">
                  <field name="COMMENT">0_userdata.0.Gargaentor_Zustand und ist vom Datentyp Zeichenkette</field>
                  <next>
                    <block type="comment" id="Y!-..)qEyoVJfm=WkY4x">
                      <field name="COMMENT">Das Skript schreibt entsprechend des Torzustandes</field>
                      <next>
                        <block type="comment" id="Z4wgye,N--BNU-/bQ,U*">
                          <field name="COMMENT">( offen, fahren oder geschlossen) den entsprechenden Zustand in den Datenpunkt</field>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </next>
            </block>
            <block type="comment" id="_4~Mimc(B0@hzl4CW?m3" x="-712" y="-463">
              <field name="COMMENT">Skript Garagentor_Zustand</field>
              <next>
                <block type="on_ext" id="iLrack)8HPWM2$$6N1FH">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                  <field name="CONDITION">ne</field>
                  <field name="ACK_CONDITION"></field>
                  <value name="OID0">
                    <shadow type="field_oid" id="Th+yyEn^)|IzKleM:XUJ">
                      <field name="oid">deconz.0.Sensors.2.open</field>
                    </shadow>
                  </value>
                  <value name="OID1">
                    <shadow type="field_oid" id="a!KNZMg%Yg^OBzJSsrfX">
                      <field name="oid">deconz.0.Sensors.3.open</field>
                    </shadow>
                  </value>
                  <statement name="STATEMENT">
                    <block type="controls_if" id="x)s5mH036o4~erDEhlAG">
                      <mutation elseif="2"></mutation>
                      <value name="IF0">
                        <block type="logic_operation" id="{xU2c7hSi%%RplQtpl9I" inline="false">
                          <field name="OP">AND</field>
                          <value name="A">
                            <block type="logic_compare" id="pYw0mk{Dc51LnrKzs9/N">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="Q(w*Rr{h]^mQ8~TB|cub">
                                  <field name="ATTR">val</field>
                                  <field name="OID">deconz.0.Sensors.2.open</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="H8)SVj#JC5Het_F1m0b@">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_compare" id="3A]Dke5PKzjCwXd-U@D#">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="dxJFTi:R:1+;Xo~BQG[k">
                                  <field name="ATTR">val</field>
                                  <field name="OID">deconz.0.Sensors.3.open</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="P{0,(?^[b6$]qAncl0qI">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="update" id="AIf-Ql/lGR(Y_zdd/g^;">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">0_userdata.0.Garagentor_Zustand</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="text" id="zWaPv0Gy/Pv[K=]%j+=`">
                              <field name="TEXT">offen</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                      <value name="IF1">
                        <block type="logic_operation" id="IC#f5sVy:vqYf_.BW6*M" inline="false">
                          <field name="OP">AND</field>
                          <value name="A">
                            <block type="logic_compare" id="UFQilt-flYxV4HNF,E$h">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="{?9q)+=oz^Um%fSm2Cy5">
                                  <field name="ATTR">val</field>
                                  <field name="OID">deconz.0.Sensors.2.open</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="Ha@m0BZiRzHV;Eo*e+4H">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_compare" id="4=iBD]c|$ugY}1QY2Jbm">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="%0=De%;!conv8X!#!B{@">
                                  <field name="ATTR">val</field>
                                  <field name="OID">deconz.0.Sensors.3.open</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="Vh-,VK7T{c6Y254|JCL1">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO1">
                        <block type="update" id="rB~$h:Y8kn^Z:$u`_yP^">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">0_userdata.0.Garagentor_Zustand</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="text" id="aI77AEnqrriuFOJNJb37">
                              <field name="TEXT">fahren</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                      <value name="IF2">
                        <block type="logic_operation" id="p(j(Q_KWb7[iZ,_ps_Xe" inline="false">
                          <field name="OP">AND</field>
                          <value name="A">
                            <block type="logic_compare" id="3S]jEE;[O`V5~M9}V?pC">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="dL,/^!;UHGka[G5YNr]=">
                                  <field name="ATTR">val</field>
                                  <field name="OID">deconz.0.Sensors.2.open</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="g23^jcT2[Z6@lbJT1(mV">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_compare" id="2YY#@qI_c=6g]fH|},q|">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="3iX`E1NW,{Dvo*7:ckXK">
                                  <field name="ATTR">val</field>
                                  <field name="OID">deconz.0.Sensors.3.open</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="%_u2Qef!N^7#9tVF+1WH">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO2">
                        <block type="update" id="dOz8_7-Y#C9:`PfL,~b0">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">0_userdata.0.Garagentor_Zustand</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="text" id=";W*X^NQ;g^Z?yrIq?!w(">
                              <field name="TEXT">geschlossen</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
            <block type="comment" id="/Xo?De^_yIztbXsY,gQn" x="-337" y="-363">
              <field name="COMMENT">Fensterkontaktschalter 1</field>
            </block>
            <block type="comment" id=",vHI#PH@c9H;|%Our=4F" x="-309" y="-302">
              <field name="COMMENT">Fensterkontaktschalter 2</field>
            </block>
            <block type="comment" id=";c]*nfux]/G5%q2AweR{" x="-262" y="-262">
              <field name="COMMENT">Inhalt vom Datenpunkt</field>
            </block>
            <block type="math_number" id="E*QCm|L):fW}ZePHyaIJ" x="280" y="-136">
              <field name="NUM">0</field>
            </block>
          </xml>
          

          Skript 2 die Szenen / Farben zuordnen

          
          <xml xmlns="https://developers.google.com/blockly/xml">
            <block type="comment" id="#}P4]bdk2bf^u,K!_tvE" x="-737" y="-1012">
              <field name="COMMENT">wenn alles läuft wie gewollt, die Kommentare löschen </field>
              <next>
                <block type="comment" id="0o=Vr3kIpAa`[fiI/@t:">
                  <field name="COMMENT">und die debug Teile löschen</field>
                </block>
              </next>
            </block>
            <block type="on_ext" id="?V(Z4EQ^.,{hJD*1U6`$" x="-737" y="-887">
              <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
              <field name="CONDITION">ne</field>
              <field name="ACK_CONDITION"></field>
              <value name="OID0">
                <shadow type="field_oid" id="YsT+nA]{v]#J29U.hZUS">
                  <field name="oid">0_userdata.0.Garagentor_Zustand</field>
                </shadow>
              </value>
              <statement name="STATEMENT">
                <block type="comment" id="[m8kG5#VAXa=CyvJ6?/+">
                  <field name="COMMENT">Tor fährt</field>
                  <next>
                    <block type="controls_if" id="!Qou#^}GVJ)nO1JDtv6f">
                      <value name="IF0">
                        <block type="logic_compare" id="Lh/8bw/`.HRs:4h;h({y">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="$x:WE/CX-,05-N$`QWVe">
                              <field name="ATTR">val</field>
                              <field name="OID">0_userdata.0.Garagentor_Zustand</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="text" id="lFeSLIiYCZTNl|OZ9m-.">
                              <field name="TEXT">fahren</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="control" id="m47jZWGEnoa;iwmq(]Tl">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">wled.0.bcff4d5f3d46.seg.0.on</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="0U==DEe;{Zh!{4[*}wY(">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="xRxX[3--A5EtO@h^4vv5">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">wled.0.58bf25dc059c.ps</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <comment pinned="false" h="80" w="160">Farbe: weiß</comment>
                              <value name="VALUE">
                                <block type="math_number" id="f#u%4:p:^Kk6*ci%T9y}">
                                  <field name="NUM">1</field>
                                </block>
                              </value>
                              <next>
                                <block type="debug" id=",ov!vKyB=X3zQ2mAr~qM">
                                  <field name="Severity">log</field>
                                  <value name="TEXT">
                                    <shadow type="text" id="j?f^(Tji2r^UbsIdhXx-">
                                      <field name="TEXT">fahren</field>
                                    </shadow>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </next>
                </block>
              </statement>
              <next>
                <block type="on_ext" id="=)w$X,|o9ve.~(]AJ+!g">
                  <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="q(ZlXds-BBYSJo7I$9A*">
                      <field name="oid">0_userdata.0.Garagentor_Zustand</field>
                    </shadow>
                  </value>
                  <statement name="STATEMENT">
                    <block type="comment" id="A/22Va9;+JXSmY6]CzIR">
                      <field name="COMMENT">Tor auf</field>
                      <next>
                        <block type="controls_if" id="st|lAIlDJjn0?I(.Hi]u">
                          <value name="IF0">
                            <block type="logic_compare" id="evYUy}-g`:~*hC`;fE`S">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="t]N4:)h7cifnTL{nd{x?">
                                  <field name="ATTR">val</field>
                                  <field name="OID">0_userdata.0.Garagentor_Zustand</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="text" id="i*,aH2f[b,@p1bY`2K|)">
                                  <field name="TEXT">offen</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="control" id="5ntjWNFkC.ZI,~V#AR-K">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">wled.0.bcff4d5f3d46.seg.0.on</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="KG5i]63yqt{JlR:yx(q(">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                              <next>
                                <block type="control" id="{wloS7}({7H5)w(~;YLu">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">wled.0.58bf25dc059c.ps</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <comment pinned="false" h="80" w="160">Farbe: weiß</comment>
                                  <value name="VALUE">
                                    <block type="math_number" id="/.(1V`tu9E[JTJYJUtsv">
                                      <field name="NUM">2</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="debug" id="O,hf^V9m,c?c5%ei4o:{">
                                      <field name="Severity">log</field>
                                      <value name="TEXT">
                                        <shadow type="text" id="T#(RvRX}IWNe3$Bv*lH%">
                                          <field name="TEXT">offen</field>
                                        </shadow>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                          <next>
                            <block type="on_ext" id="I$C#9{8.t0ZdYYoekFKU">
                              <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="I3-yaREn/vvkZ13n=Kyb">
                                  <field name="oid">0_userdata.0.Garagentor_Zustand</field>
                                </shadow>
                              </value>
                              <statement name="STATEMENT">
                                <block type="comment" id="g|Gj$P}/wLoZ`5n~.Hdf">
                                  <field name="COMMENT">Tor zu</field>
                                  <next>
                                    <block type="controls_if" id="k)1hlefDWWT5?Veo/*;z">
                                      <value name="IF0">
                                        <block type="logic_compare" id="9q`2y/.[hnFlp(207QB1">
                                          <field name="OP">EQ</field>
                                          <value name="A">
                                            <block type="get_value" id="~!:6r,b0n.gu?YjcFO(C">
                                              <field name="ATTR">val</field>
                                              <field name="OID">0_userdata.0.Garagentor_Zustand</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="text" id="gXcC21ASMSaY!7E,vXcX">
                                              <field name="TEXT">geschlossen</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="control" id="RxW{X_?=0i;$*%({6j9M">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">wled.0.bcff4d5f3d46.seg.0.on</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id=",o9nxKOZE^Uoh3kJYVnw">
                                              <field name="BOOL">TRUE</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="control" id="C)NF_!SU]f/IhUl6j#S(">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">wled.0.58bf25dc059c.ps</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <comment pinned="false" h="80" w="160">Farbe: weiß</comment>
                                              <value name="VALUE">
                                                <block type="math_number" id="/zr:7=vL]GO@:6{jgW3,">
                                                  <field name="NUM">3</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="comment" id="{`jZT@13|z:{IwRNYLlO">
                                                  <field name="COMMENT">nach 5 Sekunden SPOT an</field>
                                                  <next>
                                                    <block type="control" id="e4lLKei@c5)N1k@!Ykwn">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                      <field name="OID">wled.0.58bf25dc059c.ps</field>
                                                      <field name="WITH_DELAY">TRUE</field>
                                                      <field name="DELAY_MS">5</field>
                                                      <field name="UNIT">sec</field>
                                                      <field name="CLEAR_RUNNING">FALSE</field>
                                                      <comment pinned="false" h="80" w="160">Farbe: weiß</comment>
                                                      <value name="VALUE">
                                                        <block type="math_number" id="s9fV4hQptI1T-Z7~7xQ[">
                                                          <field name="NUM">4</field>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="comment" id="lw0FEsEp@?_2QI|.Dtn]">
                                                          <field name="COMMENT">Ausschalten nach weiteren 5 Sekunden</field>
                                                          <next>
                                                            <block type="control" id="|A(!~{Mqep^o]Z`K5InU">
                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                              <field name="OID">wled.0.58bf25dc059c.ps</field>
                                                              <field name="WITH_DELAY">TRUE</field>
                                                              <field name="DELAY_MS">10</field>
                                                              <field name="UNIT">sec</field>
                                                              <field name="CLEAR_RUNNING">FALSE</field>
                                                              <comment pinned="false" h="80" w="160">Farbe: weiß</comment>
                                                              <value name="VALUE">
                                                                <block type="math_number" id="6Vt:79[jYl_O!FBTm:_+">
                                                                  <field name="NUM">5</field>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="debug" id="_AO%khE?0{+#oY1w9xIf">
                                                                  <field name="Severity">log</field>
                                                                  <value name="TEXT">
                                                                    <shadow type="text" id="4Y.C|7%WZ]05vSSDhGDp">
                                                                      <field name="TEXT">geschlossen und Licht geht aus</field>
                                                                    </shadow>
                                                                  </value>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </xml>
          
          
          ThomasMT 1 Antwort Letzte Antwort
          0
          • S SigiMOE

            @thomasm

            ich habe es mit presets innerhalb von der WLED App gelöst, keine Ahnung ob es Dich weiterbringt, aber ist zumindest mal ein anderer Ansatz

            Ich habe 2 Aquara Türfenster Sensoren im Einsatz und in 2 Skripte aufgeteilt

            Skript 1 Zustand ermitteln

            
            <xml xmlns="https://developers.google.com/blockly/xml">
              <block type="comment" id="vOA(IDZ5u2(rnyL/%sEb" x="-712" y="-612">
                <field name="COMMENT">Als 1., eigener Datenpunkt anlegen</field>
                <next>
                  <block type="comment" id="1%6]-4rjtKlpSR;+NIol">
                    <field name="COMMENT">0_userdata.0.Gargaentor_Zustand und ist vom Datentyp Zeichenkette</field>
                    <next>
                      <block type="comment" id="Y!-..)qEyoVJfm=WkY4x">
                        <field name="COMMENT">Das Skript schreibt entsprechend des Torzustandes</field>
                        <next>
                          <block type="comment" id="Z4wgye,N--BNU-/bQ,U*">
                            <field name="COMMENT">( offen, fahren oder geschlossen) den entsprechenden Zustand in den Datenpunkt</field>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
              <block type="comment" id="_4~Mimc(B0@hzl4CW?m3" x="-712" y="-463">
                <field name="COMMENT">Skript Garagentor_Zustand</field>
                <next>
                  <block type="on_ext" id="iLrack)8HPWM2$$6N1FH">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                    <field name="CONDITION">ne</field>
                    <field name="ACK_CONDITION"></field>
                    <value name="OID0">
                      <shadow type="field_oid" id="Th+yyEn^)|IzKleM:XUJ">
                        <field name="oid">deconz.0.Sensors.2.open</field>
                      </shadow>
                    </value>
                    <value name="OID1">
                      <shadow type="field_oid" id="a!KNZMg%Yg^OBzJSsrfX">
                        <field name="oid">deconz.0.Sensors.3.open</field>
                      </shadow>
                    </value>
                    <statement name="STATEMENT">
                      <block type="controls_if" id="x)s5mH036o4~erDEhlAG">
                        <mutation elseif="2"></mutation>
                        <value name="IF0">
                          <block type="logic_operation" id="{xU2c7hSi%%RplQtpl9I" inline="false">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="logic_compare" id="pYw0mk{Dc51LnrKzs9/N">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="Q(w*Rr{h]^mQ8~TB|cub">
                                    <field name="ATTR">val</field>
                                    <field name="OID">deconz.0.Sensors.2.open</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="H8)SVj#JC5Het_F1m0b@">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_compare" id="3A]Dke5PKzjCwXd-U@D#">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="dxJFTi:R:1+;Xo~BQG[k">
                                    <field name="ATTR">val</field>
                                    <field name="OID">deconz.0.Sensors.3.open</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="P{0,(?^[b6$]qAncl0qI">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="update" id="AIf-Ql/lGR(Y_zdd/g^;">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">0_userdata.0.Garagentor_Zustand</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="text" id="zWaPv0Gy/Pv[K=]%j+=`">
                                <field name="TEXT">offen</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <value name="IF1">
                          <block type="logic_operation" id="IC#f5sVy:vqYf_.BW6*M" inline="false">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="logic_compare" id="UFQilt-flYxV4HNF,E$h">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="{?9q)+=oz^Um%fSm2Cy5">
                                    <field name="ATTR">val</field>
                                    <field name="OID">deconz.0.Sensors.2.open</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="Ha@m0BZiRzHV;Eo*e+4H">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_compare" id="4=iBD]c|$ugY}1QY2Jbm">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="%0=De%;!conv8X!#!B{@">
                                    <field name="ATTR">val</field>
                                    <field name="OID">deconz.0.Sensors.3.open</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="Vh-,VK7T{c6Y254|JCL1">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO1">
                          <block type="update" id="rB~$h:Y8kn^Z:$u`_yP^">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">0_userdata.0.Garagentor_Zustand</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="text" id="aI77AEnqrriuFOJNJb37">
                                <field name="TEXT">fahren</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <value name="IF2">
                          <block type="logic_operation" id="p(j(Q_KWb7[iZ,_ps_Xe" inline="false">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="logic_compare" id="3S]jEE;[O`V5~M9}V?pC">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="dL,/^!;UHGka[G5YNr]=">
                                    <field name="ATTR">val</field>
                                    <field name="OID">deconz.0.Sensors.2.open</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="g23^jcT2[Z6@lbJT1(mV">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_compare" id="2YY#@qI_c=6g]fH|},q|">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="3iX`E1NW,{Dvo*7:ckXK">
                                    <field name="ATTR">val</field>
                                    <field name="OID">deconz.0.Sensors.3.open</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="%_u2Qef!N^7#9tVF+1WH">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO2">
                          <block type="update" id="dOz8_7-Y#C9:`PfL,~b0">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">0_userdata.0.Garagentor_Zustand</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="text" id=";W*X^NQ;g^Z?yrIq?!w(">
                                <field name="TEXT">geschlossen</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
              <block type="comment" id="/Xo?De^_yIztbXsY,gQn" x="-337" y="-363">
                <field name="COMMENT">Fensterkontaktschalter 1</field>
              </block>
              <block type="comment" id=",vHI#PH@c9H;|%Our=4F" x="-309" y="-302">
                <field name="COMMENT">Fensterkontaktschalter 2</field>
              </block>
              <block type="comment" id=";c]*nfux]/G5%q2AweR{" x="-262" y="-262">
                <field name="COMMENT">Inhalt vom Datenpunkt</field>
              </block>
              <block type="math_number" id="E*QCm|L):fW}ZePHyaIJ" x="280" y="-136">
                <field name="NUM">0</field>
              </block>
            </xml>
            

            Skript 2 die Szenen / Farben zuordnen

            
            <xml xmlns="https://developers.google.com/blockly/xml">
              <block type="comment" id="#}P4]bdk2bf^u,K!_tvE" x="-737" y="-1012">
                <field name="COMMENT">wenn alles läuft wie gewollt, die Kommentare löschen </field>
                <next>
                  <block type="comment" id="0o=Vr3kIpAa`[fiI/@t:">
                    <field name="COMMENT">und die debug Teile löschen</field>
                  </block>
                </next>
              </block>
              <block type="on_ext" id="?V(Z4EQ^.,{hJD*1U6`$" x="-737" y="-887">
                <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                <field name="CONDITION">ne</field>
                <field name="ACK_CONDITION"></field>
                <value name="OID0">
                  <shadow type="field_oid" id="YsT+nA]{v]#J29U.hZUS">
                    <field name="oid">0_userdata.0.Garagentor_Zustand</field>
                  </shadow>
                </value>
                <statement name="STATEMENT">
                  <block type="comment" id="[m8kG5#VAXa=CyvJ6?/+">
                    <field name="COMMENT">Tor fährt</field>
                    <next>
                      <block type="controls_if" id="!Qou#^}GVJ)nO1JDtv6f">
                        <value name="IF0">
                          <block type="logic_compare" id="Lh/8bw/`.HRs:4h;h({y">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="get_value" id="$x:WE/CX-,05-N$`QWVe">
                                <field name="ATTR">val</field>
                                <field name="OID">0_userdata.0.Garagentor_Zustand</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="text" id="lFeSLIiYCZTNl|OZ9m-.">
                                <field name="TEXT">fahren</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="control" id="m47jZWGEnoa;iwmq(]Tl">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">wled.0.bcff4d5f3d46.seg.0.on</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="0U==DEe;{Zh!{4[*}wY(">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                            <next>
                              <block type="control" id="xRxX[3--A5EtO@h^4vv5">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">wled.0.58bf25dc059c.ps</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <comment pinned="false" h="80" w="160">Farbe: weiß</comment>
                                <value name="VALUE">
                                  <block type="math_number" id="f#u%4:p:^Kk6*ci%T9y}">
                                    <field name="NUM">1</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="debug" id=",ov!vKyB=X3zQ2mAr~qM">
                                    <field name="Severity">log</field>
                                    <value name="TEXT">
                                      <shadow type="text" id="j?f^(Tji2r^UbsIdhXx-">
                                        <field name="TEXT">fahren</field>
                                      </shadow>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </statement>
                <next>
                  <block type="on_ext" id="=)w$X,|o9ve.~(]AJ+!g">
                    <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="q(ZlXds-BBYSJo7I$9A*">
                        <field name="oid">0_userdata.0.Garagentor_Zustand</field>
                      </shadow>
                    </value>
                    <statement name="STATEMENT">
                      <block type="comment" id="A/22Va9;+JXSmY6]CzIR">
                        <field name="COMMENT">Tor auf</field>
                        <next>
                          <block type="controls_if" id="st|lAIlDJjn0?I(.Hi]u">
                            <value name="IF0">
                              <block type="logic_compare" id="evYUy}-g`:~*hC`;fE`S">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="t]N4:)h7cifnTL{nd{x?">
                                    <field name="ATTR">val</field>
                                    <field name="OID">0_userdata.0.Garagentor_Zustand</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="text" id="i*,aH2f[b,@p1bY`2K|)">
                                    <field name="TEXT">offen</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="control" id="5ntjWNFkC.ZI,~V#AR-K">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">wled.0.bcff4d5f3d46.seg.0.on</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="KG5i]63yqt{JlR:yx(q(">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="control" id="{wloS7}({7H5)w(~;YLu">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">wled.0.58bf25dc059c.ps</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <comment pinned="false" h="80" w="160">Farbe: weiß</comment>
                                    <value name="VALUE">
                                      <block type="math_number" id="/.(1V`tu9E[JTJYJUtsv">
                                        <field name="NUM">2</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="debug" id="O,hf^V9m,c?c5%ei4o:{">
                                        <field name="Severity">log</field>
                                        <value name="TEXT">
                                          <shadow type="text" id="T#(RvRX}IWNe3$Bv*lH%">
                                            <field name="TEXT">offen</field>
                                          </shadow>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </statement>
                            <next>
                              <block type="on_ext" id="I$C#9{8.t0ZdYYoekFKU">
                                <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="I3-yaREn/vvkZ13n=Kyb">
                                    <field name="oid">0_userdata.0.Garagentor_Zustand</field>
                                  </shadow>
                                </value>
                                <statement name="STATEMENT">
                                  <block type="comment" id="g|Gj$P}/wLoZ`5n~.Hdf">
                                    <field name="COMMENT">Tor zu</field>
                                    <next>
                                      <block type="controls_if" id="k)1hlefDWWT5?Veo/*;z">
                                        <value name="IF0">
                                          <block type="logic_compare" id="9q`2y/.[hnFlp(207QB1">
                                            <field name="OP">EQ</field>
                                            <value name="A">
                                              <block type="get_value" id="~!:6r,b0n.gu?YjcFO(C">
                                                <field name="ATTR">val</field>
                                                <field name="OID">0_userdata.0.Garagentor_Zustand</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="text" id="gXcC21ASMSaY!7E,vXcX">
                                                <field name="TEXT">geschlossen</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="control" id="RxW{X_?=0i;$*%({6j9M">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">wled.0.bcff4d5f3d46.seg.0.on</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="logic_boolean" id=",o9nxKOZE^Uoh3kJYVnw">
                                                <field name="BOOL">TRUE</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="control" id="C)NF_!SU]f/IhUl6j#S(">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">wled.0.58bf25dc059c.ps</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <comment pinned="false" h="80" w="160">Farbe: weiß</comment>
                                                <value name="VALUE">
                                                  <block type="math_number" id="/zr:7=vL]GO@:6{jgW3,">
                                                    <field name="NUM">3</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="comment" id="{`jZT@13|z:{IwRNYLlO">
                                                    <field name="COMMENT">nach 5 Sekunden SPOT an</field>
                                                    <next>
                                                      <block type="control" id="e4lLKei@c5)N1k@!Ykwn">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                        <field name="OID">wled.0.58bf25dc059c.ps</field>
                                                        <field name="WITH_DELAY">TRUE</field>
                                                        <field name="DELAY_MS">5</field>
                                                        <field name="UNIT">sec</field>
                                                        <field name="CLEAR_RUNNING">FALSE</field>
                                                        <comment pinned="false" h="80" w="160">Farbe: weiß</comment>
                                                        <value name="VALUE">
                                                          <block type="math_number" id="s9fV4hQptI1T-Z7~7xQ[">
                                                            <field name="NUM">4</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="comment" id="lw0FEsEp@?_2QI|.Dtn]">
                                                            <field name="COMMENT">Ausschalten nach weiteren 5 Sekunden</field>
                                                            <next>
                                                              <block type="control" id="|A(!~{Mqep^o]Z`K5InU">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                                <field name="OID">wled.0.58bf25dc059c.ps</field>
                                                                <field name="WITH_DELAY">TRUE</field>
                                                                <field name="DELAY_MS">10</field>
                                                                <field name="UNIT">sec</field>
                                                                <field name="CLEAR_RUNNING">FALSE</field>
                                                                <comment pinned="false" h="80" w="160">Farbe: weiß</comment>
                                                                <value name="VALUE">
                                                                  <block type="math_number" id="6Vt:79[jYl_O!FBTm:_+">
                                                                    <field name="NUM">5</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="debug" id="_AO%khE?0{+#oY1w9xIf">
                                                                    <field name="Severity">log</field>
                                                                    <value name="TEXT">
                                                                      <shadow type="text" id="4Y.C|7%WZ]05vSSDhGDp">
                                                                        <field name="TEXT">geschlossen und Licht geht aus</field>
                                                                      </shadow>
                                                                    </value>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </xml>
            
            
            ThomasMT Offline
            ThomasMT Offline
            ThomasM
            schrieb am zuletzt editiert von
            #5

            @sigimoe Moin Sigi,

            das mit den 2 TürFenster Sensoren hatte ich anfangs auch auf dem Zettel und hatte auch schon 2 Sensoren in meiner Homematic vorbereitet. Ich habe meine erste Lösung mit dem Homematic Zwischenstecker mit potentialfreiem Anschluss (HM-LC-Sw1-PI-CT) wieder verworfen, da ich zwar das Tor hoch- und runterfahren kann, aber leider keine Möglichkeit habe die Lüftungsstellung des Tors zu realisieren. Danach habe ich mich für das HMIP-Funk-Modul entschieden (39€), welches einfach per Mini-USB mit meinem Garagentor verbunden wurde. Und diese Möglichkeit liefert mir exakt den korrekten Status des Tors. Eine gute und sinnvolle Investition. Das klappt sehr gut.

            Somit konnte ich mich auf die Realisierung der LED-Steuerung mit Blockly konzentrieren. Ist im Prinzip auch sehr einfach, wenn man die entsprechenden Datenpunkte des WLED-Adapters gefunden hat.

            Ich sehe mir mal dein Script zur Steuerung an und werde berichten.
            gruß
            Thomas

            PeoplesP S 2 Antworten Letzte Antwort
            0
            • ThomasMT ThomasM

              @sigimoe Moin Sigi,

              das mit den 2 TürFenster Sensoren hatte ich anfangs auch auf dem Zettel und hatte auch schon 2 Sensoren in meiner Homematic vorbereitet. Ich habe meine erste Lösung mit dem Homematic Zwischenstecker mit potentialfreiem Anschluss (HM-LC-Sw1-PI-CT) wieder verworfen, da ich zwar das Tor hoch- und runterfahren kann, aber leider keine Möglichkeit habe die Lüftungsstellung des Tors zu realisieren. Danach habe ich mich für das HMIP-Funk-Modul entschieden (39€), welches einfach per Mini-USB mit meinem Garagentor verbunden wurde. Und diese Möglichkeit liefert mir exakt den korrekten Status des Tors. Eine gute und sinnvolle Investition. Das klappt sehr gut.

              Somit konnte ich mich auf die Realisierung der LED-Steuerung mit Blockly konzentrieren. Ist im Prinzip auch sehr einfach, wenn man die entsprechenden Datenpunkte des WLED-Adapters gefunden hat.

              Ich sehe mir mal dein Script zur Steuerung an und werde berichten.
              gruß
              Thomas

              PeoplesP Offline
              PeoplesP Offline
              Peoples
              schrieb am zuletzt editiert von
              #6

              @thomasm sagte in WLED und Garagentorbeleuchtung:

              HMIP-Funk-Modul

              Welches ist das denn genau?

              Ich beantworte keine Fragen zu Themen via PN

              ThomasMT 1 Antwort Letzte Antwort
              0
              • PeoplesP Peoples

                @thomasm sagte in WLED und Garagentorbeleuchtung:

                HMIP-Funk-Modul

                Welches ist das denn genau?

                ThomasMT Offline
                ThomasMT Offline
                ThomasM
                schrieb am zuletzt editiert von ThomasM
                #7

                @peoples Homematic IP Tormatic Modul (HmIP-MOD-TM). Habe ich für 39€ bei ELV gekauft. Das ist auch das offizielle Modul, welches Novoferm für den Novoport IV Torantrieb bewirbt.

                1 Antwort Letzte Antwort
                0
                • ThomasMT ThomasM

                  @sigimoe Moin Sigi,

                  das mit den 2 TürFenster Sensoren hatte ich anfangs auch auf dem Zettel und hatte auch schon 2 Sensoren in meiner Homematic vorbereitet. Ich habe meine erste Lösung mit dem Homematic Zwischenstecker mit potentialfreiem Anschluss (HM-LC-Sw1-PI-CT) wieder verworfen, da ich zwar das Tor hoch- und runterfahren kann, aber leider keine Möglichkeit habe die Lüftungsstellung des Tors zu realisieren. Danach habe ich mich für das HMIP-Funk-Modul entschieden (39€), welches einfach per Mini-USB mit meinem Garagentor verbunden wurde. Und diese Möglichkeit liefert mir exakt den korrekten Status des Tors. Eine gute und sinnvolle Investition. Das klappt sehr gut.

                  Somit konnte ich mich auf die Realisierung der LED-Steuerung mit Blockly konzentrieren. Ist im Prinzip auch sehr einfach, wenn man die entsprechenden Datenpunkte des WLED-Adapters gefunden hat.

                  Ich sehe mir mal dein Script zur Steuerung an und werde berichten.
                  gruß
                  Thomas

                  S Offline
                  S Offline
                  SigiMOE
                  schrieb am zuletzt editiert von
                  #8

                  @thomasm super Danke..., habe den HM-LC-Sw1-PI-CT auch im Einsatz, habe einen Hörmann Antrieb einfachste Ausführung . Freue mich auf ein Feedback von Dir

                  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

                  433

                  Online

                  32.6k

                  Benutzer

                  81.9k

                  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