Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Hilfe bei einem Skript

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Hilfe bei einem Skript

    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Chrunchy @Miokoeln last edited by

      @miokoeln Ich kann leider kein Blockly.

      Aber im groben...

      1. du erstellst einen Datenpunkt für den Status der Garagenbeleuchtung z.B. "garagenlicht_status" und gibst diesem im Idealfall einen Default-Wert mit.
      2. du erstellst die Funktionen, welche das Licht steuern
        In Javascript sieht das dann etwas so aus:
      function garagenlicht_nacht() {
          setState(Brightness, 255);
          setState(Color, "225,226,202,0");
          setState(Effect, 45);
      }
      

      Das machst du für alle Zustände, die dein Licht haben soll. Aktuell ja Tag, Nacht und Fahrt.
      Bei der Funktion für die Fahrt musst du im Anschluss ermitteln, ob die aktuelle Zeit zwischen Astro Sonnenaufgang-ende und sonnenuntergang liegt, um nach der Fahrt festzustellen, ob du den Datenpunkt "garagenlicht_status" auf Tag oder Nacht stellen musst.

      1. Du erstellst die Bedingungen, welche den Zustand des Datenpunktes ändern. Also Astro-Sonnenuntergang setzte Datenpunkt "garagenlicht_status" auf Nacht, Astro-Sonnenaufgang-Ende setzte Datenpunkt "garagenlicht_status" auf Tag, etc

      2. Immer wenn sich der Datenpunkt "garagenlicht_status" ändert, prüfst du, was darin steht und führst die zugehörige Funktion.

      1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @Miokoeln last edited by

        @miokoeln sagte: Script bauen?

        Kläre uns erst mal darüber auf, was es mit dem Trigger-Datenpunkt "All Open count" auf sich hat.
        Dann poste den Blockly-Export (XML) von Deinem Skript in Code tags.

        M 1 Reply Last reply Reply Quote 0
        • M
          Miokoeln @paul53 last edited by Miokoeln

          @paul53 All Open count ist von Meross der Garagentoröffner. Das ist die geschlossene Stelung des Garagentors.
          Hier der Blocky-Export:

          Garagentor.xml

          paul53 M 2 Replies Last reply Reply Quote 0
          • paul53
            paul53 @Miokoeln last edited by

            @miokoeln sagte: Das ist die geschlossene Stelung des Garagentors.

            Und was ist dann "0-garageDoor"?

            @miokoeln sagte in Hilfe bei einem Skript:

            Hier der Blocky-Export:

            Damit kann ich nichts anfangen. Den Export in die Zwischenablage bitte hier in Code tags (oben: </>) einfügen.

            M 1 Reply Last reply Reply Quote 0
            • M
              Miokoeln @Miokoeln last edited by Homoran

              @miokoeln

              <xml xmlns="https://developers.google.com/blockly/xml">
                <block type="astro" id="GsZKlO5zj,Clzb`gu2l_" x="-962" y="13">
                  <field name="TYPE">sunset</field>
                  <field name="OFFSET">0</field>
                  <statement name="STATEMENT">
                    <block type="controls_if" id="u#.4tq2!`~.Ih]I-PDtk">
                      <value name="IF0">
                        <block type="logic_compare" id="Ls`8P/3aV0[MybkO(;,$">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="rpl4%*=9eG4b0On!!lc;">
                              <field name="ATTR">val</field>
                              <field name="OID">wled.0.483fda1f760b.on</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id="lcz1c;r?)TWKW2m|h_}c">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="control" id="$JK)p@#l6?wt8G/H5m65">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">wled.0.483fda1f760b.on</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="HO@8Y15-Lj;K/Ly5oqZe">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                      <next>
                        <block type="controls_if" id="*q!T=Y`iG(f$CO0?/s`v">
                          <value name="IF0">
                            <block type="logic_compare" id="n{wi{Bgg.=f$e=b;54D^">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="wGQp}|i9TM@MoWkUAMCL">
                                  <field name="ATTR">val</field>
                                  <field name="OID">wled.0.483fda1f760b.on</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="?-ViL#bfSidw;XRku,x.">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="control" id="xd_tsU8}4{aJ?tM,tNSU">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">wled.0.483fda1f760b.on</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="%OJn,.akGx$V1sJ[f=|^">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                              <next>
                                <block type="email" id="httG8c$}ZV]pW}q`0obX">
                                  <field name="INSTANCE"></field>
                                  <field name="IS_HTML">FALSE</field>
                                  <field name="LOG"></field>
                                  <value name="TO">
                                    <shadow type="text" id="e=xk[ZT}$P+V|7k^-wM|">
                                      <field name="TEXT">mario.bittner@icloud.com</field>
                                    </shadow>
                                  </value>
                                  <value name="TEXT">
                                    <shadow type="text" id="S?6SJ#;(4v`pyBv7X,/a">
                                      <field name="TEXT"></field>
                                    </shadow>
                                  </value>
                                  <value name="SUBJECT">
                                    <shadow type="text" id="a;Ox)Us}@K;C0^JueQY}">
                                      <field name="TEXT">Garagenlicht eingeschaltet</field>
                                    </shadow>
                                  </value>
                                  <next>
                                    <block type="control" id="D3)wp2GlU?DFDiQ/=*J[">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">wled.0.483fda1f760b.bri</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="math_number" id="le1[^)H@ptDg#$@*.?R.">
                                          <field name="NUM">255</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id="v1wQzn#G)oHvK[DE-bFP">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">wled.0.483fda1f760b.seg.0.col.0</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="text" id="udvA[PnJ93;SYO4U49+#">
                                              <field name="TEXT">255,226,202,0</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="control" id="s{.uN-P~AwkIx^joP3zI">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">wled.0.483fda1f760b.seg.0.ix</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="math_number" id="!qAovQ9m._LBj*LG)k^q">
                                                  <field name="NUM">45</field>
                                                </block>
                                              </value>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                          <next>
                            <block type="control" id="YLd-?~YufpS98GOW/~UQ">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">wled.0.483fda1f760b.seg.0.fx</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="math_number" id="rFJfh)31@r[:0rt!vE84">
                                  <field name="NUM">85</field>
                                </block>
                              </value>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                  <next>
                    <block type="astro" id="oR3I@uho{Gj9_%UWZcrU">
                      <field name="TYPE">sunriseEnd</field>
                      <field name="OFFSET">0</field>
                      <statement name="STATEMENT">
                        <block type="controls_if" id="AYuXId-$9[F43iwh}`,j">
                          <value name="IF0">
                            <block type="logic_compare" id="bj/oT^Bi/{ay[^x.7HqJ">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="..$$YmD)NrBphY6n[87M">
                                  <field name="ATTR">val</field>
                                  <field name="OID">wled.0.483fda1f760b.on</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="4.3[?f{|gn*V]^+jPuV#">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="control" id="*;6ao#gg,Cd`yOA1qfQg">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">wled.0.483fda1f760b.on</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="^LPo:1Q.q2C3~V@|*xtE">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                              <next>
                                <block type="email" id="z1{F[JiJN/3!l,i$L,_o">
                                  <field name="INSTANCE"></field>
                                  <field name="IS_HTML">FALSE</field>
                                  <field name="LOG"></field>
                                  <value name="TO">
                                    <shadow type="text" id="~8q[xiL5$kpD6[sZxgHV">
                                      <field name="TEXT">mario.bittner@icloud.com</field>
                                    </shadow>
                                  </value>
                                  <value name="TEXT">
                                    <shadow type="text" id="J%(~zHj_br;*u].^91]!">
                                      <field name="TEXT"></field>
                                    </shadow>
                                  </value>
                                  <value name="SUBJECT">
                                    <shadow type="text" id="Z6*(t?K29V@gs~L;Nn}s">
                                      <field name="TEXT">Garagenlicht ausgeschaltet</field>
                                    </shadow>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </statement>
                      <next>
                        <block type="on_ext" id="A!)W?v,:5*bwI2+^q)N7">
                          <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="UMnETXt:fKEhj.3~k,[(">
                              <field name="oid">bshb.0.openDoorsAndWindows.all.openCount</field>
                            </shadow>
                          </value>
                          <value name="OID1">
                            <shadow type="field_oid" id="inhCpVq=Q+r/mmLRMP:3">
                              <field name="oid">meross.0.2103163135837436101148e1e962858f.0-garageDoor</field>
                            </shadow>
                          </value>
                          <statement name="STATEMENT">
                            <block type="control" id="RIPtfY~oq3y(%+v5)pZk">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">wled.0.483fda1f760b.seg.0.bri</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="math_number" id="~]wEzg76@I/q~L1@VAz[">
                                  <field name="NUM">255</field>
                                </block>
                              </value>
                              <next>
                                <block type="controls_if" id=".}Cg8b:JmpcFTqmt^wJ2">
                                  <value name="IF0">
                                    <block type="logic_operation" id="J?$,Om}:U6CmQ0|-if;#">
                                      <field name="OP">AND</field>
                                      <value name="A">
                                        <block type="logic_compare" id="WsYcioe,C)=6s,MaGC;?">
                                          <field name="OP">EQ</field>
                                          <value name="A">
                                            <block type="get_value" id="_@9e|MxOftEo|7p[r(bk">
                                              <field name="ATTR">val</field>
                                              <field name="OID">meross.0.2103163135837436101148e1e962858f.0-garageDoor</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="logic_boolean" id="aW5}rir2u{{c@FIGQ+B_">
                                              <field name="BOOL">TRUE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_compare" id="t-NrKq-YR:La!HkCxY.:">
                                          <field name="OP">EQ</field>
                                          <value name="A">
                                            <block type="get_value" id="Ao5Z}PxiYOq13H8C;|`]">
                                              <field name="ATTR">val</field>
                                              <field name="OID">bshb.0.openDoorsAndWindows.all.openCount</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="logic_boolean" id=";m%ffturt7qX66PVU!:5">
                                              <field name="BOOL">TRUE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="control" id="jV:_2xZgK%NYR]5TRg+5">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">wled.0.483fda1f760b.on</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="leYOKCSrROnPCtg#tvRk">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id="L|.DzV.SXl/`:SK*N|$x">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">wled.0.483fda1f760b.seg.0.col.0_HEX</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="colour_picker" id="5.OBUor:c,2FIMH5qqj)">
                                              <field name="COLOUR">#ff0000</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="control" id="8xeN8[M^AZIjr092,F{=">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">wled.0.483fda1f760b.seg.0.sx</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="math_number" id="*9Z9k/W~1=9QCx(Hvmp_">
                                                  <field name="NUM">120</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="control" id="Sb8y7O}:3XXxIEutMw!7">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">wled.0.483fda1f760b.seg.0.fx</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="math_number" id="NtTQ^s@tD^M3!!GeP.Y!">
                                                      <field name="NUM">60</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="control" id="dTsh8L$I(hC#@Nn7*K5`">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                      <field name="OID">wled.0.483fda1f760b.seg.0.ix</field>
                                                      <field name="WITH_DELAY">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="math_number" id="(bD?v`96D)g|ZTGv$4$6">
                                                          <field name="NUM">240</field>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="controls_if" id="NU30R8W+IeiZXxPF/dWA">
                                                          <value name="IF0">
                                                            <block type="logic_compare" id=";$b#DZp+O=o]nqYBLqrB">
                                                              <field name="OP">EQ</field>
                                                              <value name="A">
                                                                <block type="get_value" id="$E6wpNg-Rg%lzXI1G;?w">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">wled.0.483fda1f760b.on</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="logic_boolean" id="wiS2TaY2=WEhrHp?-sKV">
                                                                  <field name="BOOL">TRUE</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <statement name="DO0">
                                                            <block type="control" id="NnQhdeb,06xT,Y(RUZoO">
                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                              <field name="OID">wled.0.483fda1f760b.on</field>
                                                              <field name="WITH_DELAY">FALSE</field>
                                                              <value name="VALUE">
                                                                <block type="logic_boolean" id="GDngk.}eHT~]w~Q;#7W3">
                                                                  <field name="BOOL">TRUE</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </statement>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                  <next>
                                    <block type="controls_if" id="_L544)G0~KwLcjIy5^17">
                                      <value name="IF0">
                                        <block type="logic_operation" id="JRHWK57?YS6k8Qj/{t|/">
                                          <field name="OP">AND</field>
                                          <value name="A">
                                            <block type="logic_compare" id=":|tbL669rzS/_)dUOut;">
                                              <field name="OP">EQ</field>
                                              <value name="A">
                                                <block type="get_value" id="4t6Sb,_a==15YqC4u@Z~">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">meross.0.2103163135837436101148e1e962858f.0-garageDoor</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_boolean" id="?Y?6HK!LlbZOf]6wO#]G">
                                                  <field name="BOOL">FALSE</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="logic_compare" id="Axyl=NMK|]Zj$ayvg*%[">
                                              <field name="OP">EQ</field>
                                              <value name="A">
                                                <block type="get_value" id="yDhW$fg8ms7%BkNFflhc">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">bshb.0.openDoorsAndWindows.all.openCount</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_boolean" id="[8bnfwn}G1~*FO?=BRkC">
                                                  <field name="BOOL">TRUE</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="controls_if" id="qu^%(/3-}nq?p?p+KjmA">
                                          <value name="IF0">
                                            <block type="logic_compare" id="_O~c9dvQb@pC+|-SIpA;">
                                              <field name="OP">EQ</field>
                                              <value name="A">
                                                <block type="get_value" id=";Q87z.=bv_Nqt5?SgKR~">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">wled.0.483fda1f760b.on</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_boolean" id="}f:16xuZ=*VJgcEF5nOp">
                                                  <field name="BOOL">TRUE</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="control" id="|n$#]5t;`)qGk=TM9cQj">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">wled.0.483fda1f760b.on</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="logic_boolean" id="I,CcyVa,T*@^8f,P:^Ha">
                                                  <field name="BOOL">FALSE</field>
                                                </block>
                                              </value>
                                            </block>
                                          </statement>
                                        </block>
                                      </statement>
                                      <next>
                                        <block type="controls_if" id="Vjsm^Peer`)Ci3!N+Rg?">
                                          <value name="IF0">
                                            <block type="logic_operation" id="Ln_lpsj0JHy22f~x:BiK">
                                              <field name="OP">AND</field>
                                              <value name="A">
                                                <block type="logic_compare" id="qcr.YQU7K4B97-v2k_+E">
                                                  <field name="OP">EQ</field>
                                                  <value name="A">
                                                    <block type="get_value" id="_](8r=*7Fv3P.8EsRjd%">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">meross.0.2103163135837436101148e1e962858f.0-garageDoor</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_boolean" id="1k3zi/mL+G{LcT0KuvnE">
                                                      <field name="BOOL">TRUE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_compare" id="M;F%*)HnB]AB=jYliEM]">
                                                  <field name="OP">EQ</field>
                                                  <value name="A">
                                                    <block type="get_value" id="OW#S15_=u`:UM;S`V.$+">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">bshb.0.openDoorsAndWindows.all.openCount</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_boolean" id="Af90,7-g;D!Ut=G%^=`O">
                                                      <field name="BOOL">FALSE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="control" id="a^(K+XmmS.6{z[x`)P$H">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">wled.0.483fda1f760b.seg.0.col.0_HEX</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="colour_picker" id="a|Xd9a,+wHWVSiDIcZQl">
                                                  <field name="COLOUR">#33ff33</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="control" id=":GzpeOYCB2J]oH|Rmnfi">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">wled.0.483fda1f760b.seg.0.fx</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="math_number" id="g9|K@K40@%b1r3,N.]b1">
                                                      <field name="NUM">0</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="controls_if" id="X}GU*f2T(8HQhtA6oU{Z">
                                                      <value name="IF0">
                                                        <block type="logic_compare" id="b%xY%a^_=Z!RJ(2SPPrQ">
                                                          <field name="OP">EQ</field>
                                                          <value name="A">
                                                            <block type="get_value" id="%ExZS0Xj2=O/qO3v;ULm">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">wled.0.483fda1f760b.on</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="logic_boolean" id="jtp(ev-RFDG5M-%-wU)o">
                                                              <field name="BOOL">FALSE</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <statement name="DO0">
                                                        <block type="control" id="t:bq{.vA!#.V|`9/or*J">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                          <field name="OID">wled.0.483fda1f760b.on</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="logic_boolean" id=".7lJO.Y|qes|pxU.JZ$x">
                                                              <field name="BOOL">TRUE</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </statement>
                                                      <next>
                                                        <block type="timeouts_wait" id="mgPAq=$Lye$4q8dRX%:9">
                                                          <field name="DELAY">1100</field>
                                                          <field name="UNIT">ms</field>
                                                          <next>
                                                            <block type="control" id="=OWt|S|Vx$9C`3OH5LnI">
                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                              <field name="OID">wled.0.483fda1f760b.seg.0.col.0_HEX</field>
                                                              <field name="WITH_DELAY">FALSE</field>
                                                              <value name="VALUE">
                                                                <block type="colour_picker" id="wF0kt1v%6*6;vT.(nhH^">
                                                                  <field name="COLOUR">#ffffff</field>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="control" id="zS{J)aSZlwu4h{Rb^5t%">
                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                  <field name="OID">wled.0.483fda1f760b.seg.0.sx</field>
                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                  <value name="VALUE">
                                                                    <block type="math_number" id="k}ZL4+NTJAMp0y6wxlHS">
                                                                      <field name="NUM">215</field>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="control" id="{vv5DZQ-dic?/_*k7jqM">
                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                      <field name="OID">wled.0.483fda1f760b.seg.0.fx</field>
                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                      <value name="VALUE">
                                                                        <block type="math_number" id="3Q)POWY*7zpkfoBc;NWj">
                                                                          <field name="NUM">60</field>
                                                                        </block>
                                                                      </value>
                                                                      <next>
                                                                        <block type="controls_if" id="jFlz-;%Ra3]{Mj`pt2A|">
                                                                          <value name="IF0">
                                                                            <block type="logic_compare" id="JT(D:](ar7Y{K8O}(htb">
                                                                              <field name="OP">EQ</field>
                                                                              <value name="A">
                                                                                <block type="get_value" id="}ut#Iia$Jm#pw,k[LIMV">
                                                                                  <field name="ATTR">val</field>
                                                                                  <field name="OID">wled.0.483fda1f760b.on</field>
                                                                                </block>
                                                                              </value>
                                                                              <value name="B">
                                                                                <block type="logic_boolean" id="H}10RM45R([Bv5g:X%B_">
                                                                                  <field name="BOOL">FALSE</field>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </value>
                                                                          <statement name="DO0">
                                                                            <block type="control" id="!,ORhu{DRJ,:@Dg$WU3g">
                                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                              <field name="OID">wled.0.483fda1f760b.on</field>
                                                                              <field name="WITH_DELAY">FALSE</field>
                                                                              <value name="VALUE">
                                                                                <block type="logic_boolean" id="U$3yR+![0@o,:K{7,O?/">
                                                                                  <field name="BOOL">TRUE</field>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </statement>
                                                                          <next>
                                                                            <block type="timeouts_wait" id="$,0`.OOVP=Wsw66K.tcy">
                                                                              <field name="DELAY">1100</field>
                                                                              <field name="UNIT">ms</field>
                                                                              <next>
                                                                                <block type="control" id="If;s4`o^,`Sp:G^@luy5">
                                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                  <field name="OID">wled.0.483fda1f760b.on</field>
                                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                                  <value name="VALUE">
                                                                                    <block type="logic_boolean" id="q6.j$PFPj9H{Y}=Mhf9u">
                                                                                      <field name="BOOL">FALSE</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <next>
                                                                                    <block type="timeouts_wait" id="xT`%AfhFz7!*PXJOg9AP">
                                                                                      <field name="DELAY">1500</field>
                                                                                      <field name="UNIT">ms</field>
                                                                                      <next>
                                                                                        <block type="control" id="!5p,b]Bu7i=.Z?Z(b.l`">
                                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                          <field name="OID">wled.0.483fda1f760b.on</field>
                                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                                          <value name="VALUE">
                                                                                            <block type="logic_boolean" id="3;FW`C#}$GZgTrZJ.|$m">
                                                                                              <field name="BOOL">TRUE</field>
                                                                                            </block>
                                                                                          </value>
                                                                                          <next>
                                                                                            <block type="control" id="z@(ZP]rCe2G8j]=DtX8N">
                                                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                              <field name="OID">wled.0.483fda1f760b.seg.0.fx</field>
                                                                                              <field name="WITH_DELAY">FALSE</field>
                                                                                              <value name="VALUE">
                                                                                                <block type="math_number" id="*%*rQSWaK:Sxyov6_@*c">
                                                                                                  <field name="NUM">85</field>
                                                                                                </block>
                                                                                              </value>
                                                                                              <next>
                                                                                                <block type="control" id="1VMyaT*=-Cn9e+.e}a9#">
                                                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                  <field name="OID">wled.0.483fda1f760b.seg.0.ix</field>
                                                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                                                  <value name="VALUE">
                                                                                                    <block type="math_number" id="m`mj-gryZ)I:NyG?IMg8">
                                                                                                      <field name="NUM">45</field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                  <next>
                                                                                                    <block type="controls_if" id="%8R%;/|7UyU?$8Oiib:T">
                                                                                                      <value name="IF0">
                                                                                                        <block type="logic_compare" id="?RBPE-HYI?xC|eN8etCM">
                                                                                                          <field name="OP">EQ</field>
                                                                                                          <value name="A">
                                                                                                            <block type="get_value" id="##2OhQR(MJHmcjFT+U]w">
                                                                                                              <field name="ATTR">val</field>
                                                                                                              <field name="OID">wled.0.483fda1f760b.on</field>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                          <value name="B">
                                                                                                            <block type="logic_boolean" id="94/]T380=bfq*Mg%D}:L">
                                                                                                              <field name="BOOL">FALSE</field>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                      <statement name="DO0">
                                                                                                        <block type="control" id="KJa:doxU@uo**WW6vrsR">
                                                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                          <field name="OID">wled.0.483fda1f760b.on</field>
                                                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                                                          <value name="VALUE">
                                                                                                            <block type="logic_boolean" id="EM?0zJubqjv#[!6ImWtB">
                                                                                                              <field name="BOOL">TRUE</field>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                        </block>
                                                                                                      </statement>
                                                                                                    </block>
                                                                                                  </next>
                                                                                                </block>
                                                                                              </next>
                                                                                            </block>
                                                                                          </next>
                                                                                        </block>
                                                                                      </next>
                                                                                    </block>
                                                                                  </next>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </statement>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </xml>
              

              MOD-Edit: Code in code-tags und spoiler gesetzt!

              1 Reply Last reply Reply Quote 0
              • M
                Miokoeln @paul53 last edited by

                @paul53 Sorry andersrum

                Meross= 0-garagenDoor = Garagentor ist geschlossen
                Bosch Fensterkontakt= All Open count = Garagentor ist geöffnet

                paul53 1 Reply Last reply Reply Quote 0
                • paul53
                  paul53 @Miokoeln last edited by

                  @miokoeln sagte: Meross= 0-garagenDoor = Garagentor ist geschlossen
                  Bosch Fensterkontakt= All Open count = Garagentor ist geöffnet

                  Also wie Endlagen-Schalter?
                  "0-garagenDoor" = wahr: geschlossen?
                  "All Open count" = wahr: offen?
                  Beide = false: Zwischenstellung / in Bewegung?

                  Es können also nicht beide gleichzeitig wahr sein?

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    Miokoeln @paul53 last edited by

                    @paul53
                    "0-garagenDoor" = wahr: geschlossen?
                    "All Open count" = wahr: offen?
                    Beide = false: Zwischenstellung / in Bewegung?
                    genau

                    paul53 1 Reply Last reply Reply Quote 0
                    • paul53
                      paul53 @Miokoeln last edited by

                      @miokoeln sagte: genau

                      In Deiner ersten Abfrage (Farbe rot) werden beide Schalter auf wahr geprüft?

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        Miokoeln @paul53 last edited by

                        @paul53 Das wir ein Fehler sein. Seit gestern macht das Script auch nichts mehr. Hab mich sicher verklickt. Sorry bin noch sehr neu aber lehrfähig 😉

                        paul53 1 Reply Last reply Reply Quote 0
                        • paul53
                          paul53 @Miokoeln last edited by paul53

                          @miokoeln
                          Wann soll rot, wann aus (oder Nachtlicht?) und wann die zeitliche Abfolge sein?

                          M 2 Replies Last reply Reply Quote 0
                          • M
                            Miokoeln @paul53 last edited by

                            @paul53
                            Rot bei Öffnung
                            Grün wenn Tor oben ist.
                            Weiß nachdem das Tor oben ist danach kommen die Spots
                            Rot bei Schließung

                            Spots zwischen Sonnenuntergang und Sonnenaufgang.

                            Hammer du bist echt klasse.
                            Danke für deine Hilfe

                            1 Reply Last reply Reply Quote 0
                            • M
                              Miokoeln @paul53 last edited by

                              @paul53 so soll es aussehen:
                              https://youtu.be/M8xCgQUihd8

                              paul53 1 Reply Last reply Reply Quote 0
                              • paul53
                                paul53 @Miokoeln last edited by paul53

                                @miokoeln
                                Versuche es mal so:

                                Blockly_temp.JPG

                                <xml xmlns="https://developers.google.com/blockly/xml">
                                 <variables>
                                   <variable id="o_[g^[@LJ)qp1=k8AQE2">geschlossen</variable>
                                   <variable id="`mgKAe:N}B}P`.ggEx)r">offen</variable>
                                 </variables>
                                 <block type="variables_set" id="P(^f`H91mcxyB@8lqo3D" x="-1012" y="-662">
                                   <field name="VAR" id="o_[g^[@LJ)qp1=k8AQE2">geschlossen</field>
                                   <value name="VALUE">
                                     <block type="get_value" id="gLe?#Z@XRDEj$lX+XppL">
                                       <field name="ATTR">val</field>
                                       <field name="OID">meross.0.2103163135837436101148e1e962858f.0-garageDoor</field>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="on_ext" id="A!)W?v,:5*bwI2+^q)N7">
                                       <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="UMnETXt:fKEhj.3~k,[(">
                                           <field name="oid">bshb.0.openDoorsAndWindows.all.openCount</field>
                                         </shadow>
                                       </value>
                                       <value name="OID1">
                                         <shadow type="field_oid" id="inhCpVq=Q+r/mmLRMP:3">
                                           <field name="oid">meross.0.2103163135837436101148e1e962858f.0-garageDoor</field>
                                         </shadow>
                                       </value>
                                       <statement name="STATEMENT">
                                         <block type="variables_set" id="#]6b@B~}:2LYqTPiZp$Q">
                                           <field name="VAR" id="o_[g^[@LJ)qp1=k8AQE2">geschlossen</field>
                                           <value name="VALUE">
                                             <block type="get_value" id="_@9e|MxOftEo|7p[r(bk">
                                               <field name="ATTR">val</field>
                                               <field name="OID">meross.0.2103163135837436101148e1e962858f.0-garageDoor</field>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="variables_set" id="t8-vee:XxNF]L!7aQxoy">
                                               <field name="VAR" id="`mgKAe:N}B}P`.ggEx)r">offen</field>
                                               <value name="VALUE">
                                                 <block type="get_value" id="Ao5Z}PxiYOq13H8C;|]">
                                                   <field name="ATTR">val</field>
                                                   <field name="OID">bshb.0.openDoorsAndWindows.all.openCount</field>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="control" id="RIPtfY~oq3y(%+v5)pZk">
                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                   <field name="OID">wled.0.483fda1f760b.seg.0.bri</field>
                                                   <field name="WITH_DELAY">FALSE</field>
                                                   <value name="VALUE">
                                                     <block type="math_number" id="~]wEzg76@I/q~L1@VAz[">
                                                       <field name="NUM">255</field>
                                                     </block>
                                                   </value>
                                                   <next>
                                                     <block type="controls_if" id=".}Cg8b:JmpcFTqmt^wJ2">
                                                       <value name="IF0">
                                                         <block type="logic_operation" id="J?$,Om}:U6CmQ0|-if;#">
                                                           <field name="OP">AND</field>
                                                           <value name="A">
                                                             <block type="logic_negate" id="t75yG|p]pYVg~kTq,k{|">
                                                               <value name="BOOL">
                                                                 <block type="variables_get" id="(,{qCCMma;;T0l-(OIM$">
                                                                   <field name="VAR" id="o_[g^[@LJ)qp1=k8AQE2">geschlossen</field>
                                                                 </block>
                                                               </value>
                                                             </block>
                                                           </value>
                                                           <value name="B">
                                                             <block type="logic_negate" id="+eiv`,BWB8Q!j[Q,`fZ!">
                                                               <value name="BOOL">
                                                                 <block type="variables_get" id="tNUzK`}bi$KdyeCSa}(|">
                                                                   <field name="VAR" id="`mgKAe:N}B}P`.ggEx)r">offen</field>
                                                                 </block>
                                                               </value>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </value>
                                                       <statement name="DO0">
                                                         <block type="control" id="jV:2xZgK%NYR]5TRg+5">
                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                           <field name="OID">wled.0.483fda1f760b.on</field>
                                                           <field name="WITH_DELAY">FALSE</field>
                                                           <value name="VALUE">
                                                             <block type="logic_boolean" id="leYOKCSrROnPCtg#tvRk">
                                                               <field name="BOOL">TRUE</field>
                                                             </block>
                                                           </value>
                                                           <next>
                                                             <block type="control" id="L|.DzV.SXl/:SK*N|$x">
                                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                               <field name="OID">wled.0.483fda1f760b.seg.0.col.0_HEX</field>
                                                               <field name="WITH_DELAY">FALSE</field>
                                                               <value name="VALUE">
                                                                 <block type="colour_picker" id="5.OBUor:c,2FIMH5qqj)">
                                                                   <field name="COLOUR">#ff0000</field>
                                                                 </block>
                                                               </value>
                                                               <next>
                                                                 <block type="control" id="8xeN8[M^AZIjr092,F{=">
                                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                   <field name="OID">wled.0.483fda1f760b.seg.0.sx</field>
                                                                   <field name="WITH_DELAY">FALSE</field>
                                                                   <value name="VALUE">
                                                                     <block type="math_number" id="*9Z9k/W~1=9QCx(Hvmp_">
                                                                       <field name="NUM">120</field>
                                                                     </block>
                                                                   </value>
                                                                   <next>
                                                                     <block type="control" id="Sb8y7O}:3XXxIEutMw!7">
                                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                       <field name="OID">wled.0.483fda1f760b.seg.0.fx</field>
                                                                       <field name="WITH_DELAY">FALSE</field>
                                                                       <value name="VALUE">
                                                                         <block type="math_number" id="NtTQ^s@tD^M3!!GeP.Y!">
                                                                           <field name="NUM">60</field>
                                                                         </block>
                                                                       </value>
                                                                       <next>
                                                                         <block type="control" id="dTsh8L$I(hC#@Nn7*K5">
                                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                           <field name="OID">wled.0.483fda1f760b.seg.0.ix</field>
                                                                           <field name="WITH_DELAY">FALSE</field>
                                                                           <value name="VALUE">
                                                                             <block type="math_number" id="(bD?v96D)g|ZTGv$4$6">
                                                                               <field name="NUM">240</field>
                                                                             </block>
                                                                           </value>
                                                                         </block>
                                                                       </next>
                                                                     </block>
                                                                   </next>
                                                                 </block>
                                                               </next>
                                                             </block>
                                                           </next>
                                                         </block>
                                                       </statement>
                                                       <next>
                                                         <block type="controls_if" id="Vjsm^Peer)Ci3!N+Rg?">
                                                           <value name="IF0">
                                                             <block type="variables_get" id="VI4Bb@fNWfipt*)/H~rN">
                                                               <field name="VAR" id="`mgKAe:N}B}P`.ggEx)r">offen</field>
                                                             </block>
                                                           </value>
                                                           <statement name="DO0">
                                                             <block type="control" id="a^(K+XmmS.6{z[x)P$H">
                                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                               <field name="OID">wled.0.483fda1f760b.seg.0.col.0_HEX</field>
                                                               <field name="WITH_DELAY">FALSE</field>
                                                               <value name="VALUE">
                                                                 <block type="colour_picker" id="a|Xd9a,+wHWVSiDIcZQl">
                                                                   <field name="COLOUR">#33ff33</field>
                                                                 </block>
                                                               </value>
                                                               <next>
                                                                 <block type="control" id=":GzpeOYCB2J]oH|Rmnfi">
                                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                   <field name="OID">wled.0.483fda1f760b.seg.0.fx</field>
                                                                   <field name="WITH_DELAY">FALSE</field>
                                                                   <value name="VALUE">
                                                                     <block type="math_number" id="g9|K@K40@%b1r3,N.]b1">
                                                                       <field name="NUM">0</field>
                                                                     </block>
                                                                   </value>
                                                                   <next>
                                                                     <block type="control" id="t:bq{.vA!#.V|9/or*J">
                                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                       <field name="OID">wled.0.483fda1f760b.on</field>
                                                                       <field name="WITH_DELAY">FALSE</field>
                                                                       <value name="VALUE">
                                                                         <block type="logic_boolean" id=".7lJO.Y|qes|pxU.JZ$x">
                                                                           <field name="BOOL">TRUE</field>
                                                                         </block>
                                                                       </value>
                                                                       <next>
                                                                         <block type="timeouts_wait" id="mgPAq=$Lye$4q8dRX%:9">
                                                                           <field name="DELAY">1100</field>
                                                                           <field name="UNIT">ms</field>
                                                                           <next>
                                                                             <block type="control" id="=OWt|S|Vx$9C3OH5LnI">
                                                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                               <field name="OID">wled.0.483fda1f760b.seg.0.col.0_HEX</field>
                                                                               <field name="WITH_DELAY">FALSE</field>
                                                                               <value name="VALUE">
                                                                                 <block type="colour_picker" id="wF0kt1v%6*6;vT.(nhH^">
                                                                                   <field name="COLOUR">#ffffff</field>
                                                                                 </block>
                                                                               </value>
                                                                               <next>
                                                                                 <block type="control" id="zS{J)aSZlwu4h{Rb^5t%">
                                                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                   <field name="OID">wled.0.483fda1f760b.seg.0.sx</field>
                                                                                   <field name="WITH_DELAY">FALSE</field>
                                                                                   <value name="VALUE">
                                                                                     <block type="math_number" id="k}ZL4+NTJAMp0y6wxlHS">
                                                                                       <field name="NUM">215</field>
                                                                                     </block>
                                                                                   </value>
                                                                                   <next>
                                                                                     <block type="control" id="{vv5DZQ-dic?/_*k7jqM">
                                                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                       <field name="OID">wled.0.483fda1f760b.seg.0.fx</field>
                                                                                       <field name="WITH_DELAY">FALSE</field>
                                                                                       <value name="VALUE">
                                                                                         <block type="math_number" id="3Q)POWY*7zpkfoBc;NWj">
                                                                                           <field name="NUM">60</field>
                                                                                         </block>
                                                                                       </value>
                                                                                       <next>
                                                                                         <block type="timeouts_wait" id="$,0.OOVP=Wsw66K.tcy">
                                                                                           <field name="DELAY">1100</field>
                                                                                           <field name="UNIT">ms</field>
                                                                                           <next>
                                                                                             <block type="control" id="If;s4o^,Sp:G^@luy5">
                                                                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                               <field name="OID">wled.0.483fda1f760b.on</field>
                                                                                               <field name="WITH_DELAY">FALSE</field>
                                                                                               <value name="VALUE">
                                                                                                 <block type="logic_boolean" id="q6.j$PFPj9H{Y}=Mhf9u">
                                                                                                   <field name="BOOL">FALSE</field>
                                                                                                 </block>
                                                                                               </value>
                                                                                               <next>
                                                                                                 <block type="timeouts_wait" id="xT%AfhFz7!PXJOg9AP">
                                                                                                   <field name="DELAY">1500</field>
                                                                                                   <field name="UNIT">ms</field>
                                                                                                   <next>
                                                                                                     <block type="control" id="KJa:doxU@uo**WW6vrsR">
                                                                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                       <field name="OID">wled.0.483fda1f760b.on</field>
                                                                                                       <field name="WITH_DELAY">FALSE</field>
                                                                                                       <value name="VALUE">
                                                                                                         <block type="logic_boolean" id="EM?0zJubqjv#[!6ImWtB">
                                                                                                           <field name="BOOL">TRUE</field>
                                                                                                         </block>
                                                                                                       </value>
                                                                                                       <next>
                                                                                                         <block type="control" id="z@(ZP]rCe2G8j]=DtX8N">
                                                                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                           <field name="OID">wled.0.483fda1f760b.seg.0.fx</field>
                                                                                                           <field name="WITH_DELAY">FALSE</field>
                                                                                                           <value name="VALUE">
                                                                                                             <block type="math_number" id="%rQSWaK:Sxyov6_@c">
                                                                                                               <field name="NUM">85</field>
                                                                                                             </block>
                                                                                                           </value>
                                                                                                           <next>
                                                                                                             <block type="control" id="1VMyaT=-Cn9e+.e}a9#">
                                                                                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                               <field name="OID">wled.0.483fda1f760b.seg.0.ix</field>
                                                                                                               <field name="WITH_DELAY">FALSE</field>
                                                                                                               <value name="VALUE">
                                                                                                                 <block type="math_number" id="m`mj-gryZ)I:NyG?IMg8">
                                                                                                                   <field name="NUM">45</field>
                                                                                                                 </block>
                                                                                                               </value>
                                                                                                             </block>
                                                                                                           </next>
                                                                                                         </block>
                                                                                                       </next>
                                                                                                     </block>
                                                                                                   </next>
                                                                                                 </block>
                                                                                               </next>
                                                                                             </block>
                                                                                           </next>
                                                                                         </block>
                                                                                       </next>
                                                                                     </block>
                                                                                   </next>
                                                                                 </block>
                                                                               </next>
                                                                             </block>
                                                                           </next>
                                                                         </block>
                                                                       </next>
                                                                     </block>
                                                                   </next>
                                                                 </block>
                                                               </next>
                                                             </block>
                                                           </statement>
                                                           <next>
                                                             <block type="controls_if" id="_L544)G0~KwLcjIy5^17">
                                                               <value name="IF0">
                                                                 <block type="variables_get" id="OAaniJ2`AT/E{6$I6cp8">
                                                                   <field name="VAR" id="o_[g^[@LJ)qp1=k8AQE2">geschlossen</field>
                                                                 </block>
                                                               </value>
                                                               <statement name="DO0">
                                                                 <block type="controls_if" id="GEBng,3LjBVDkIW5Ga^X">
                                                                   <mutation else="1"></mutation>
                                                                   <value name="IF0">
                                                                     <block type="time_compare_ex" id="?XF46(tCar1%-Z^SayaO">
                                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                                                       <field name="USE_ACTUAL_TIME">TRUE</field>
                                                                       <field name="OPTION">between</field>
                                                                       <value name="START_TIME">
                                                                         <shadow type="text" id="/$~a`;/HJs8I-VzMdna*">
                                                                           <field name="TEXT">12:00</field>
                                                                         </shadow>
                                                                         <block type="time_astro" id="@7+mR2fZNXH~$6=Ver-2">
                                                                           <field name="TYPE">sunrise</field>
                                                                           <field name="OFFSET">0</field>
                                                                         </block>
                                                                       </value>
                                                                       <value name="END_TIME">
                                                                         <shadow type="text" id="(;bE(uE-2g$rk24_f]z_">
                                                                           <field name="TEXT">18:00</field>
                                                                         </shadow>
                                                                         <block type="time_astro" id="t)#5;`afn4DjB%IREdI%">
                                                                           <field name="TYPE">sunset</field>
                                                                           <field name="OFFSET">0</field>
                                                                         </block>
                                                                       </value>
                                                                     </block>
                                                                   </value>
                                                                   <statement name="DO0">
                                                                     <block type="control" id="|n$#]5t;)qGk=TM9cQj">
                                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                       <field name="OID">wled.0.483fda1f760b.on</field>
                                                                       <field name="WITH_DELAY">FALSE</field>
                                                                       <value name="VALUE">
                                                                         <block type="logic_boolean" id="I,CcyVa,T*@^8f,P:^Ha">
                                                                           <field name="BOOL">FALSE</field>
                                                                         </block>
                                                                       </value>
                                                                     </block>
                                                                   </statement>
                                                                   <statement name="ELSE">
                                                                     <block type="procedures_callnoreturn" id="gn~^BB13_1X4;e|yB,#z">
                                                                       <mutation name="nachtlicht"></mutation>
                                                                     </block>
                                                                   </statement>
                                                                 </block>
                                                               </statement>
                                                             </block>
                                                           </next>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </statement>
                                     </block>
                                   </next>
                                 </block>
                                 <block type="procedures_defnoreturn" id="Ct_=C;I]NhPMhsN5Wt#$" x="-213" y="-687">
                                   <field name="NAME">nachtlicht</field>
                                   <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                                   <statement name="STACK">
                                     <block type="comment" id="X_KifM+(gW_a)e+8okbC">
                                       <field name="COMMENT">Nachtlicht einschalten</field>
                                       <next>
                                         <block type="control" id="xd_tsU8}4{aJ?tM,tNSU">
                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                           <field name="OID">wled.0.483fda1f760b.on</field>
                                           <field name="WITH_DELAY">FALSE</field>
                                           <value name="VALUE">
                                             <block type="logic_boolean" id="%OJn,.akGx$V1sJ[f=|^">
                                               <field name="BOOL">TRUE</field>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="email" id="httG8c$}ZV]pW}q0obX">
                                               <field name="INSTANCE"></field>
                                               <field name="IS_HTML">FALSE</field>
                                               <field name="LOG"></field>
                                               <value name="TO">
                                                 <shadow type="text" id="e=xk[ZT}$P+V|7k^-wM|">
                                                   <field name="TEXT">mario.bittner@icloud.com</field>
                                                 </shadow>
                                               </value>
                                               <value name="TEXT">
                                                 <shadow type="text" id="S?6SJ#;(4vpyBv7X,/a">
                                                   <field name="TEXT"></field>
                                                 </shadow>
                                               </value>
                                               <value name="SUBJECT">
                                                 <shadow type="text" id="a;Ox)Us}@K;C0^JueQY}">
                                                   <field name="TEXT">Garagenlicht eingeschaltet</field>
                                                 </shadow>
                                               </value>
                                               <next>
                                                 <block type="control" id="D3)wp2GlU?DFDiQ/=*J[">
                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                   <field name="OID">wled.0.483fda1f760b.bri</field>
                                                   <field name="WITH_DELAY">FALSE</field>
                                                   <value name="VALUE">
                                                     <block type="math_number" id="le1[^)H@ptDg#$@*.?R.">
                                                       <field name="NUM">255</field>
                                                     </block>
                                                   </value>
                                                   <next>
                                                     <block type="control" id="v1wQzn#G)oHvK[DE-bFP">
                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                       <field name="OID">wled.0.483fda1f760b.seg.0.col.0</field>
                                                       <field name="WITH_DELAY">FALSE</field>
                                                       <value name="VALUE">
                                                         <block type="text" id="udvA[PnJ93;SYO4U49+#">
                                                           <field name="TEXT">255,226,202,0</field>
                                                         </block>
                                                       </value>
                                                       <next>
                                                         <block type="control" id="s{.uN-P~AwkIx^joP3zI">
                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                           <field name="OID">wled.0.483fda1f760b.seg.0.ix</field>
                                                           <field name="WITH_DELAY">FALSE</field>
                                                           <value name="VALUE">
                                                             <block type="math_number" id="!qAovQ9m._LBj*LG)k^q">
                                                               <field name="NUM">45</field>
                                                             </block>
                                                           </value>
                                                           <next>
                                                             <block type="control" id="YLd-?~YufpS98GOW/~UQ">
                                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                               <field name="OID">wled.0.483fda1f760b.seg.0.fx</field>
                                                               <field name="WITH_DELAY">FALSE</field>
                                                               <value name="VALUE">
                                                                 <block type="math_number" id="rFJfh)31@r[:0rt!vE84">
                                                                   <field name="NUM">85</field>
                                                                 </block>
                                                               </value>
                                                             </block>
                                                           </next>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </statement>
                                 </block>
                                 <block type="astro" id="Q]3K{8C8qW(aJ$Zk9?`q" x="-212" y="-163">
                                   <field name="TYPE">sunset</field>
                                   <field name="OFFSET">0</field>
                                   <statement name="STATEMENT">
                                     <block type="controls_if" id="NM*Q,.8vD`:n)B=VCxh#">
                                       <value name="IF0">
                                         <block type="variables_get" id="(}/6lAc}Wcrxg-v:xVT6">
                                           <field name="VAR" id="o_[g^[@LJ)qp1=k8AQE2">geschlossen</field>
                                         </block>
                                       </value>
                                       <statement name="DO0">
                                         <block type="procedures_callnoreturn" id="jnb?$;Tcp3ptmVOiS#kt">
                                           <mutation name="nachtlicht"></mutation>
                                         </block>
                                       </statement>
                                     </block>
                                   </statement>
                                   <next>
                                     <block type="astro" id="w-fZ3kBtV1e]!P[h,nmY">
                                       <field name="TYPE">sunrise</field>
                                       <field name="OFFSET">0</field>
                                       <statement name="STATEMENT">
                                         <block type="controls_if" id="P=jW`-5OoZa9tug]C(ct">
                                           <value name="IF0">
                                             <block type="variables_get" id="=i|9I972/:)E6OCI`UDa">
                                               <field name="VAR" id="o_[g^[@LJ)qp1=k8AQE2">geschlossen</field>
                                             </block>
                                           </value>
                                           <statement name="DO0">
                                             <block type="control" id=";6ao#gg,CdyOA1qfQg">
                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                               <field name="OID">wled.0.483fda1f760b.on</field>
                                               <field name="WITH_DELAY">FALSE</field>
                                               <value name="VALUE">
                                                 <block type="logic_boolean" id="^LPo:1Q.q2C3~V@|*xtE">
                                                   <field name="BOOL">FALSE</field>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="email" id="z1{F[JiJN/3!l,i$L,_o">
                                                   <field name="INSTANCE"></field>
                                                   <field name="IS_HTML">FALSE</field>
                                                   <field name="LOG"></field>
                                                   <value name="TO">
                                                     <shadow type="text" id="~8q[xiL5$kpD6[sZxgHV">
                                                       <field name="TEXT">mario.bittner@icloud.com</field>
                                                     </shadow>
                                                   </value>
                                                   <value name="TEXT">
                                                     <shadow type="text" id="J%(~zHj_br;*u].^91]!">
                                                       <field name="TEXT"></field>
                                                     </shadow>
                                                   </value>
                                                   <value name="SUBJECT">
                                                     <shadow type="text" id="Z6*(t?K29V@gs~L;Nn}s">
                                                       <field name="TEXT">Garagenlicht ausgeschaltet</field>
                                                     </shadow>
                                                   </value>
                                                 </block>
                                               </next>
                                             </block>
                                           </statement>
                                         </block>
                                       </statement>
                                     </block>
                                   </next>
                                 </block>
                                </xml>
                                

                                Die Ausgaben an die WLED-Datenpunkte habe ich übernommen, denn davon habe ich keine Ahnung.

                                M 1 Reply Last reply Reply Quote 0
                                • M
                                  Miokoeln @paul53 last edited by

                                  @paul53 Mach mich vielen Dank ich melde mich morgen mal mit dem Ergebnis

                                  M 1 Reply Last reply Reply Quote 0
                                  • M
                                    Miokoeln @Miokoeln last edited by

                                    @paul53 Hab jetzt noch einmal überprüft. Da jetzt nichts kommt.
                                    Hatte mich vertan. Könntest du nochmals anpassen?

                                    "0-garagenDoor" = flase: geschlossen bei true: geht es auf und bleibt offen
                                    "All Open count" = 1: geschlossen 0: geht es auf und bleibt offen

                                    paul53 1 Reply Last reply Reply Quote 0
                                    • paul53
                                      paul53 @Miokoeln last edited by paul53

                                      @miokoeln sagte:
                                      "0-garagenDoor" = flase: geschlossen bei true: geht es auf und bleibt offen
                                      "All Open count" = 1: geschlossen 0: geht es auf und bleibt offen

                                      Das würde bedeuten, dass beide Kontakte den Zustand "geschlossen" signalisieren?

                                      Reagieren beide Kontakte "falsch herum", muss man nur negieren:

                                      Bild_2021-09-18_124217.png

                                      M 1 Reply Last reply Reply Quote 0
                                      • M
                                        Miokoeln @paul53 last edited by

                                        @paul53 Alles Klar gehe es durch. Nochmals vielen Dank für deine Hilfe

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

                                        Support us

                                        ioBroker
                                        Community Adapters
                                        Donate

                                        851
                                        Online

                                        32.0k
                                        Users

                                        80.3k
                                        Topics

                                        1.3m
                                        Posts

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