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

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

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. 2 BWM/5 Lichtquellen/Speer-&Zeit-Datenpunkt

NEWS

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

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

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

2 BWM/5 Lichtquellen/Speer-&Zeit-Datenpunkt

Geplant Angeheftet Gesperrt Verschoben Skripten / Logik
3 Beiträge 3 Kommentatoren 226 Aufrufe 2 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • B Offline
    B Offline
    Bacado
    schrieb am zuletzt editiert von
    #1

    Hallo zusammen, ich hab nun schon verschiedene Sachen probiert aber irgendwie hab ich scheinbar immer Konflikte in meinen Skripten.
    Wichtige info: Die OpenKNX Datenpunkte BadezimmerBad und Duschnische sind vertauscht! Also Nische ist Bad und Bad ist Nische.

    Das Problem die indirekte Beleuchtung geht an oder bleibt an ohne das sie es soll und die Wled-Duschnische bleibt nicht an wenn sie es soll.

    So da es eine sehr umfangreiche Sache ist: Folgendes ist gewünscht:

    1. Wenn jemand ins Bad geht, soll wenn Nachtlicht true ist (Datenpunkt der für bestimmte Uhrzeiten auf true/false gesetzt wird, weil das mit Datum/Zeit immer Probleme gab) die indirekte Beleuchtung an gehen (Badewanne/Duschnische/Waschtisch).
    2. Wenn eins der Hauptlichter (BadzimmerBad/Dusche) an ist soll Wärend die indirekte Beleuchtung an ist ebenfalls anbleiben wenn Nachtlicht Aktiv (in der Dusche/Badewanne wird man von den BWM´s nicht gesehen (hier werden die Hauptleuchten später auch gedimmt)).
    3. Wenn ich ZentralAus kurz Trigger soll alles ausgehen
    4. Wenn Nachtlich false soll Wled-Duschenische geschaltet werden wenn Badezimmer Bad angehen.

    Hier mal der Aktuellestand.

    BlocklyBadezimmer.png

    <xml xmlns="https://developers.google.com/blockly/xml">
      <variables>
        <variable type="timeout" id="timeout">timeout</variable>
      </variables>
      <block type="on" id=";e10N:$!._|KL!|-n%#{" x="-312" y="1863">
        <field name="OID">openknx.0.Obergeschoss.Leuchten_Status.Badezimmer_Bad_Ein_aus</field>
        <field name="CONDITION">ne</field>
        <field name="ACK_CONDITION"></field>
        <statement name="STATEMENT">
          <block type="control" id="Uw0-e$4%5eih^,73Been">
            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
            <field name="OID">wled.0.40915144e793.seg.0.on</field>
            <field name="WITH_DELAY">FALSE</field>
            <value name="VALUE">
              <block type="get_value" id="ObFFNp?9f0@rVymkqvof">
                <field name="ATTR">val</field>
                <field name="OID">openknx.0.Obergeschoss.Leuchten_Schalten.Badezimmer_Bad_Ein_aus</field>
              </block>
            </value>
            <next>
              <block type="control" id="l2gqONaT+G6!{96)3p(Q">
                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                <field name="OID">wled.0.40915144e793.ps</field>
                <field name="WITH_DELAY">FALSE</field>
                <value name="VALUE">
                  <block type="math_number" id="%CMsxp(UGLlbKrfo[id.">
                    <field name="NUM">1</field>
                  </block>
                </value>
                <next>
                  <block type="control" id="rw{oJ]ak)48udAU}YNl?">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">wled.0.40915144e793.bri</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="math_number" id="L:$kF@=~yo0ns/[V60{R">
                        <field name="NUM">200</field>
                      </block>
                    </value>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
        <next>
          <block type="on" id="a[0,K7vQk)?uxvvavMSr">
            <field name="OID">openknx.0.Obergeschoss.Leuchten_Schalten.BadZentralAus</field>
            <field name="CONDITION">any</field>
            <field name="ACK_CONDITION"></field>
            <statement name="STATEMENT">
              <block type="timeouts_wait" id="kmMD+~GSnI|P#viawdZ9">
                <field name="DELAY">2</field>
                <field name="UNIT">sec</field>
                <next>
                  <block type="control" id="Nw(yY0SbQ{}8II}u-Z,V">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">wled.0.40915144e793.seg.0.on</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="3.PLQ;uktwQzK!wJ7{GV">
                        <field name="BOOL">FALSE</field>
                      </block>
                    </value>
                    <next>
                      <block type="control" id="BO*UyMBg)8v[J]KQ7s~8">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">wled.0.58bf25d755ca.seg.0.on</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="y)cCUb(hF6l4XqXx6wIP">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                        <next>
                          <block type="control" id="C#?#h`s!/~}~.?}]kr-I">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.state</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="GiJ/y4BpN72?-Nzj!F3*">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
            <next>
              <block type="on_ext" id="5NROZ2ogdfnre9OGiQLj" disabled="true">
                <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                <field name="CONDITION">false</field>
                <field name="ACK_CONDITION"></field>
                <value name="OID0">
                  <shadow type="field_oid" id="Rm,b,s8RBf*[:)V,D#/z">
                    <field name="oid">openknx.0.Obergeschoss.Leuchten_Schalten.Badezimmer_Bad_Ein_aus</field>
                  </shadow>
                </value>
                <value name="OID1">
                  <shadow type="field_oid" id="gXG7N:PVaT,1DM6@8[nF">
                    <field name="oid">openknx.0.Obergeschoss.Leuchten_Schalten.Badezimmer_Dusche_Ein_aus</field>
                  </shadow>
                </value>
                <statement name="STATEMENT">
                  <block type="controls_if" id="6]zG0nZmqksw)KXss(uF">
                    <value name="IF0">
                      <block type="logic_operation" id="U;/OHL5:;VG}mgP;ycjv" inline="false">
                        <field name="OP">AND</field>
                        <value name="A">
                          <block type="logic_compare" id="H;m=8;D%8No---r:U7oI">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="get_value" id="9z%H}x.LDxSu%PuME.~)">
                                <field name="ATTR">val</field>
                                <field name="OID">openknx.0.Obergeschoss.Leuchten_Status.Badezimmer_Bad_Ein_aus</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_boolean" id=":S7d_Z1]ED$KbHen4vcN">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_compare" id="A^l2.STp-1$[)dc=j}]|">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="get_value" id="3(6c/{Brvkxi5obj0#Ya">
                                <field name="ATTR">val</field>
                                <field name="OID">openknx.0.Obergeschoss.Leuchten_Status.Badezimmer_Dusche_Ein_aus</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_boolean" id="bnYpo%`(ow`.Z:bLEI4;">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="control" id="!hw.7k?]oy)oRTk3*h5C">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">wled.0.40915144e793.on</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="rm@wRJyaFRMJF}zAQu+F">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                        <next>
                          <block type="control" id="k^h2DZmt[LY?3CG1-VFV">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.state</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="I3+*zR}[%i]2?Vy4cG35">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </statement>
                <next>
                  <block type="on_ext" id="]tl|pI^Zy14-K9!@Iaok">
                    <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="7),$o:5!ozN1WSxlV#Tw">
                        <field name="oid">zigbee.0.a4c1388f02e12050.occupancy</field>
                      </shadow>
                    </value>
                    <value name="OID1">
                      <shadow type="field_oid" id="o^|0q5]U`2?^iqQ@jTIy">
                        <field name="oid">zigbee.0.00124b002508d3eb.occupancy</field>
                      </shadow>
                    </value>
                    <statement name="STATEMENT">
                      <block type="controls_if" id="!5:*;E=DoNK[_bk;@Wai">
                        <mutation elseif="1"></mutation>
                        <value name="IF0">
                          <block type="logic_compare" id="kmpFl}fxn*T{!d^^|9Gh">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="get_value" id="3_.[tN$7uzx6ItGm:CK{">
                                <field name="ATTR">val</field>
                                <field name="OID">0_userdata.0.Zeithilfe.Nachtlicht</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_boolean" id="DGl+ffT,o~/+CeF,GS$x">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="controls_if" id="k#ljA},8~6yz*F((;wmY">
                            <mutation else="1"></mutation>
                            <value name="IF0">
                              <block type="logic_operation" id="d8*dsIQob;fuktj47_bF" inline="false">
                                <field name="OP">OR</field>
                                <value name="A">
                                  <block type="logic_compare" id="kN/u$7:*|a7+;PdzO`$o">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id=")y]prKI~2rckQq9,R)(.">
                                        <field name="ATTR">val</field>
                                        <field name="OID">zigbee.0.00124b002508d3eb.occupancy</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="Ko%vGtyOtyS-r*-JUY7U">
                                        <field name="BOOL">TRUE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_compare" id="0_TE^E%5KC.qt3}wZQt6">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id="Uaf*xd*W.o**nrIyf=Rs">
                                        <field name="ATTR">val</field>
                                        <field name="OID">zigbee.0.a4c1388f02e12050.occupancy</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="dVWUBc~xp1rEHYPS~)6R">
                                        <field name="BOOL">TRUE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="timeouts_cleartimeout" id="5dJFB4A9K%3!Yc6Ggo_J">
                                <field name="NAME">timeout</field>
                                <next>
                                  <block type="comment" id="Z%a?UBi^j~KNs2nQOY$*">
                                    <field name="COMMENT">Wled Dusche</field>
                                    <next>
                                      <block type="control" id="nF:y6{O~,-7o,LYlP1hu">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">wled.0.40915144e793.seg.0.on</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="=FHp_H!+%TD*r+s$wcn1">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="control" id="{y;-AaPonj%HO.$CochM">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">wled.0.40915144e793.ps</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="math_number" id=",Z*@~I*HxVF~u9Xo?PJA">
                                                <field name="NUM">1</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="control" id="OE6CHy@M|(6-0;{BrG`h">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">wled.0.40915144e793.bri</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="math_number" id="C|x4hmzZbewM5%I#53{3">
                                                    <field name="NUM">200</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="comment" id="pd61e/P=*$qJUQi{?Fjc">
                                                    <field name="COMMENT">Badezimmerschrank</field>
                                                    <next>
                                                      <block type="control" id="%X{hE3sFXP6l;q`}%/sR">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                        <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.state</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="logic_boolean" id="TpbT,_(x0vpQq_zcm;C@">
                                                            <field name="BOOL">TRUE</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="control" id="VHOa=9Z2%7kMu:DLrwj$">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                            <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.colortemp</field>
                                                            <field name="WITH_DELAY">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="math_number" id="g)[f1U]Y8%5Og,pgSocz">
                                                                <field name="NUM">2200</field>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="control" id="9j^wMSxRhQ9rrt!VX([r">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.brightness</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="math_number" id="ngt!{os6yB(.Qy-cN9cK">
                                                                    <field name="NUM">30</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="comment" id="b5N:p5UR`u%`]Ea1}Ajv">
                                                                    <field name="COMMENT">Badewanne</field>
                                                                    <next>
                                                                      <block type="control" id="Wa_UUjmCDr:yop^[OWVI">
                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                        <field name="OID">wled.0.58bf25d755ca.seg.0.on</field>
                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                        <value name="VALUE">
                                                                          <block type="logic_boolean" id="GW/qG+gB3Pj4.,g6dPL_">
                                                                            <field name="BOOL">TRUE</field>
                                                                          </block>
                                                                        </value>
                                                                        <next>
                                                                          <block type="control" id="]UV+%]3KtV|;O[2a=k0P">
                                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                            <field name="OID">wled.0.58bf25d755ca.ps</field>
                                                                            <field name="WITH_DELAY">FALSE</field>
                                                                            <value name="VALUE">
                                                                              <block type="math_number" id="!KbL$(26t6EDwEHmtizC">
                                                                                <field name="NUM">1</field>
                                                                              </block>
                                                                            </value>
                                                                            <next>
                                                                              <block type="control" id="v_?KW6ExjY}U8WF.?+aR">
                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                <field name="OID">wled.0.58bf25d755ca.bri</field>
                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                <value name="VALUE">
                                                                                  <block type="math_number" id="oLT(I;!S./N4Wzl)S^I[">
                                                                                    <field name="NUM">200</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>
                            <statement name="ELSE">
                              <block type="timeouts_settimeout" id=".m-G8rv8F(f]?*9LY}$e">
                                <field name="NAME">timeout</field>
                                <field name="DELAY">70</field>
                                <field name="UNIT">sec</field>
                                <statement name="STATEMENT">
                                  <block type="controls_if" id="g3kb{`G*%`lxLZF}2x%I">
                                    <value name="IF0">
                                      <block type="logic_operation" id="z6@6UTVPv_XP,fAZ`,rf" inline="false">
                                        <field name="OP">AND</field>
                                        <value name="A">
                                          <block type="logic_operation" id="F2S#N:Z}(ai]7:}Zu)vp" inline="false">
                                            <field name="OP">AND</field>
                                            <value name="A">
                                              <block type="logic_operation" id="LTQ8SWg,q.IPcK+bFJ*y" inline="false">
                                                <field name="OP">AND</field>
                                                <value name="A">
                                                  <block type="logic_compare" id="0.6yFOrpe+ip|WFjGid}">
                                                    <field name="OP">EQ</field>
                                                    <value name="A">
                                                      <block type="get_value" id="`sro,qFQy:nDJdGe8Pw-">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">openknx.0.Obergeschoss.Leuchten_Status.Badezimmer_Dusche_Ein_aus</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="logic_boolean" id="K6`0:h^Asu@,+w6Pt#c{">
                                                        <field name="BOOL">FALSE</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_compare" id="jS^Ivjzuwml9u:=j+D[|">
                                                    <field name="OP">EQ</field>
                                                    <value name="A">
                                                      <block type="get_value" id="]3*ZZ)mptXvY=ow+x8Uq">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">openknx.0.Obergeschoss.Leuchten_Status.Badezimmer_Bad_Ein_aus</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="logic_boolean" id="#~%^c5pxn+(p3jT~zrti">
                                                        <field name="BOOL">FALSE</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="logic_compare" id="OV6Z9O;]xk6_E]iF4#%U">
                                                <field name="OP">EQ</field>
                                                <value name="A">
                                                  <block type="get_value" id="bESNKiU:lTN7}nyn87}#">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">zigbee.0.a4c1388f02e12050.occupancy</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_boolean" id="oF$xbEVuJJuL):wiR8jA">
                                                    <field name="BOOL">FALSE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_compare" id="7g74|fVsq_Km?yiQ+Ua4">
                                            <field name="OP">EQ</field>
                                            <value name="A">
                                              <block type="get_value" id="3Og$J92x0RCJ^kJ33wB:">
                                                <field name="ATTR">val</field>
                                                <field name="OID">zigbee.0.00124b002508d3eb.occupancy</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="logic_boolean" id="%aNp(q]/H#dt-F_8{7jt">
                                                <field name="BOOL">FALSE</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="control" id="*4O%$GAV@8_fDBLc+Eo2">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">wled.0.40915144e793.seg.0.on</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="r%H?8n)*3tq2$fp8]L|E">
                                            <field name="BOOL">FALSE</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="control" id="|;Py7aP(.`[b)u`HG/3,">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">wled.0.58bf25d755ca.seg.0.on</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="logic_boolean" id="9=vb?K[zByzEQEr_(H/]">
                                                <field name="BOOL">FALSE</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="control" id="P*,m-JZh+Tg66=2HVgR:">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.state</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="logic_boolean" id="uV_`7;#RFG3p$A?,dQ[/">
                                                    <field name="BOOL">FALSE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                              </block>
                            </statement>
                          </block>
                        </statement>
                        <value name="IF1">
                          <block type="logic_compare" id="n8Q3)[,~!,e^O!Tm0RKk">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="get_value" id="uuzu=k7,((!e@Egism8e">
                                <field name="ATTR">val</field>
                                <field name="OID">0_userdata.0.Zeithilfe.Nachtlicht</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_boolean" id="PR~8Ec4K*FA43%)NkINC">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO1">
                          <block type="control" id="~hEm/K=gb_];n(41`G5*">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">wled.0.40915144e793.seg.0.on</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="XFNAM~kW=neDxK/$=gi-">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="control" id="t:AlYGa?G8;{9nwXAv$b">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">wled.0.58bf25d755ca.seg.0.on</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="FgS24eoUA=Dgher|1=H;">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="control" id="eEoHg(;,`|GU[i?n.#?H">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.state</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="logic_boolean" id="$z9zm|0oKt~E^.=;liq9">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </statement>
                      </block>
                    </statement>
                    <next>
                      <block type="on" id="ym3sQ8a-q/XTHHF1Y88{">
                        <field name="OID">0_userdata.0.Zeithilfe.Nachtlicht</field>
                        <field name="CONDITION">false</field>
                        <field name="ACK_CONDITION"></field>
                        <statement name="STATEMENT">
                          <block type="control" id="RK7,;6s_ya[@MJ7vpUYE">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">wled.0.40915144e793.on</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="f8b`vpNoSSw/Rv[5!v=v">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="control" id="1Y8XX/*TX*qe]CF1pn][">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">wled.0.58bf25d755ca.seg.0.on</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="u$I].1S[Py#JqRA|ZT:P">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="control" id="phP;OhP1N1{#Ekk+]6}^">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.state</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="logic_boolean" id="lR$F5+~OboM2){9[2jj.">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </xml>```
    CinimodC paul53P 2 Antworten Letzte Antwort
    0
    • B Bacado

      Hallo zusammen, ich hab nun schon verschiedene Sachen probiert aber irgendwie hab ich scheinbar immer Konflikte in meinen Skripten.
      Wichtige info: Die OpenKNX Datenpunkte BadezimmerBad und Duschnische sind vertauscht! Also Nische ist Bad und Bad ist Nische.

      Das Problem die indirekte Beleuchtung geht an oder bleibt an ohne das sie es soll und die Wled-Duschnische bleibt nicht an wenn sie es soll.

      So da es eine sehr umfangreiche Sache ist: Folgendes ist gewünscht:

      1. Wenn jemand ins Bad geht, soll wenn Nachtlicht true ist (Datenpunkt der für bestimmte Uhrzeiten auf true/false gesetzt wird, weil das mit Datum/Zeit immer Probleme gab) die indirekte Beleuchtung an gehen (Badewanne/Duschnische/Waschtisch).
      2. Wenn eins der Hauptlichter (BadzimmerBad/Dusche) an ist soll Wärend die indirekte Beleuchtung an ist ebenfalls anbleiben wenn Nachtlicht Aktiv (in der Dusche/Badewanne wird man von den BWM´s nicht gesehen (hier werden die Hauptleuchten später auch gedimmt)).
      3. Wenn ich ZentralAus kurz Trigger soll alles ausgehen
      4. Wenn Nachtlich false soll Wled-Duschenische geschaltet werden wenn Badezimmer Bad angehen.

      Hier mal der Aktuellestand.

      BlocklyBadezimmer.png

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable type="timeout" id="timeout">timeout</variable>
        </variables>
        <block type="on" id=";e10N:$!._|KL!|-n%#{" x="-312" y="1863">
          <field name="OID">openknx.0.Obergeschoss.Leuchten_Status.Badezimmer_Bad_Ein_aus</field>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <statement name="STATEMENT">
            <block type="control" id="Uw0-e$4%5eih^,73Been">
              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
              <field name="OID">wled.0.40915144e793.seg.0.on</field>
              <field name="WITH_DELAY">FALSE</field>
              <value name="VALUE">
                <block type="get_value" id="ObFFNp?9f0@rVymkqvof">
                  <field name="ATTR">val</field>
                  <field name="OID">openknx.0.Obergeschoss.Leuchten_Schalten.Badezimmer_Bad_Ein_aus</field>
                </block>
              </value>
              <next>
                <block type="control" id="l2gqONaT+G6!{96)3p(Q">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">wled.0.40915144e793.ps</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="math_number" id="%CMsxp(UGLlbKrfo[id.">
                      <field name="NUM">1</field>
                    </block>
                  </value>
                  <next>
                    <block type="control" id="rw{oJ]ak)48udAU}YNl?">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">wled.0.40915144e793.bri</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="math_number" id="L:$kF@=~yo0ns/[V60{R">
                          <field name="NUM">200</field>
                        </block>
                      </value>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </statement>
          <next>
            <block type="on" id="a[0,K7vQk)?uxvvavMSr">
              <field name="OID">openknx.0.Obergeschoss.Leuchten_Schalten.BadZentralAus</field>
              <field name="CONDITION">any</field>
              <field name="ACK_CONDITION"></field>
              <statement name="STATEMENT">
                <block type="timeouts_wait" id="kmMD+~GSnI|P#viawdZ9">
                  <field name="DELAY">2</field>
                  <field name="UNIT">sec</field>
                  <next>
                    <block type="control" id="Nw(yY0SbQ{}8II}u-Z,V">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">wled.0.40915144e793.seg.0.on</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="3.PLQ;uktwQzK!wJ7{GV">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                      <next>
                        <block type="control" id="BO*UyMBg)8v[J]KQ7s~8">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">wled.0.58bf25d755ca.seg.0.on</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="y)cCUb(hF6l4XqXx6wIP">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="C#?#h`s!/~}~.?}]kr-I">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.state</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="GiJ/y4BpN72?-Nzj!F3*">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
              <next>
                <block type="on_ext" id="5NROZ2ogdfnre9OGiQLj" disabled="true">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                  <field name="CONDITION">false</field>
                  <field name="ACK_CONDITION"></field>
                  <value name="OID0">
                    <shadow type="field_oid" id="Rm,b,s8RBf*[:)V,D#/z">
                      <field name="oid">openknx.0.Obergeschoss.Leuchten_Schalten.Badezimmer_Bad_Ein_aus</field>
                    </shadow>
                  </value>
                  <value name="OID1">
                    <shadow type="field_oid" id="gXG7N:PVaT,1DM6@8[nF">
                      <field name="oid">openknx.0.Obergeschoss.Leuchten_Schalten.Badezimmer_Dusche_Ein_aus</field>
                    </shadow>
                  </value>
                  <statement name="STATEMENT">
                    <block type="controls_if" id="6]zG0nZmqksw)KXss(uF">
                      <value name="IF0">
                        <block type="logic_operation" id="U;/OHL5:;VG}mgP;ycjv" inline="false">
                          <field name="OP">AND</field>
                          <value name="A">
                            <block type="logic_compare" id="H;m=8;D%8No---r:U7oI">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="9z%H}x.LDxSu%PuME.~)">
                                  <field name="ATTR">val</field>
                                  <field name="OID">openknx.0.Obergeschoss.Leuchten_Status.Badezimmer_Bad_Ein_aus</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id=":S7d_Z1]ED$KbHen4vcN">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_compare" id="A^l2.STp-1$[)dc=j}]|">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="3(6c/{Brvkxi5obj0#Ya">
                                  <field name="ATTR">val</field>
                                  <field name="OID">openknx.0.Obergeschoss.Leuchten_Status.Badezimmer_Dusche_Ein_aus</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="bnYpo%`(ow`.Z:bLEI4;">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="control" id="!hw.7k?]oy)oRTk3*h5C">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">wled.0.40915144e793.on</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="rm@wRJyaFRMJF}zAQu+F">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="k^h2DZmt[LY?3CG1-VFV">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.state</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="I3+*zR}[%i]2?Vy4cG35">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </statement>
                  <next>
                    <block type="on_ext" id="]tl|pI^Zy14-K9!@Iaok">
                      <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="7),$o:5!ozN1WSxlV#Tw">
                          <field name="oid">zigbee.0.a4c1388f02e12050.occupancy</field>
                        </shadow>
                      </value>
                      <value name="OID1">
                        <shadow type="field_oid" id="o^|0q5]U`2?^iqQ@jTIy">
                          <field name="oid">zigbee.0.00124b002508d3eb.occupancy</field>
                        </shadow>
                      </value>
                      <statement name="STATEMENT">
                        <block type="controls_if" id="!5:*;E=DoNK[_bk;@Wai">
                          <mutation elseif="1"></mutation>
                          <value name="IF0">
                            <block type="logic_compare" id="kmpFl}fxn*T{!d^^|9Gh">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="3_.[tN$7uzx6ItGm:CK{">
                                  <field name="ATTR">val</field>
                                  <field name="OID">0_userdata.0.Zeithilfe.Nachtlicht</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="DGl+ffT,o~/+CeF,GS$x">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="controls_if" id="k#ljA},8~6yz*F((;wmY">
                              <mutation else="1"></mutation>
                              <value name="IF0">
                                <block type="logic_operation" id="d8*dsIQob;fuktj47_bF" inline="false">
                                  <field name="OP">OR</field>
                                  <value name="A">
                                    <block type="logic_compare" id="kN/u$7:*|a7+;PdzO`$o">
                                      <field name="OP">EQ</field>
                                      <value name="A">
                                        <block type="get_value" id=")y]prKI~2rckQq9,R)(.">
                                          <field name="ATTR">val</field>
                                          <field name="OID">zigbee.0.00124b002508d3eb.occupancy</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_boolean" id="Ko%vGtyOtyS-r*-JUY7U">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_compare" id="0_TE^E%5KC.qt3}wZQt6">
                                      <field name="OP">EQ</field>
                                      <value name="A">
                                        <block type="get_value" id="Uaf*xd*W.o**nrIyf=Rs">
                                          <field name="ATTR">val</field>
                                          <field name="OID">zigbee.0.a4c1388f02e12050.occupancy</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_boolean" id="dVWUBc~xp1rEHYPS~)6R">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="timeouts_cleartimeout" id="5dJFB4A9K%3!Yc6Ggo_J">
                                  <field name="NAME">timeout</field>
                                  <next>
                                    <block type="comment" id="Z%a?UBi^j~KNs2nQOY$*">
                                      <field name="COMMENT">Wled Dusche</field>
                                      <next>
                                        <block type="control" id="nF:y6{O~,-7o,LYlP1hu">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">wled.0.40915144e793.seg.0.on</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id="=FHp_H!+%TD*r+s$wcn1">
                                              <field name="BOOL">TRUE</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="control" id="{y;-AaPonj%HO.$CochM">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">wled.0.40915144e793.ps</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="math_number" id=",Z*@~I*HxVF~u9Xo?PJA">
                                                  <field name="NUM">1</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="control" id="OE6CHy@M|(6-0;{BrG`h">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">wled.0.40915144e793.bri</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="math_number" id="C|x4hmzZbewM5%I#53{3">
                                                      <field name="NUM">200</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="comment" id="pd61e/P=*$qJUQi{?Fjc">
                                                      <field name="COMMENT">Badezimmerschrank</field>
                                                      <next>
                                                        <block type="control" id="%X{hE3sFXP6l;q`}%/sR">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                          <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.state</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="logic_boolean" id="TpbT,_(x0vpQq_zcm;C@">
                                                              <field name="BOOL">TRUE</field>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="control" id="VHOa=9Z2%7kMu:DLrwj$">
                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                              <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.colortemp</field>
                                                              <field name="WITH_DELAY">FALSE</field>
                                                              <value name="VALUE">
                                                                <block type="math_number" id="g)[f1U]Y8%5Og,pgSocz">
                                                                  <field name="NUM">2200</field>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="control" id="9j^wMSxRhQ9rrt!VX([r">
                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                  <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.brightness</field>
                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                  <value name="VALUE">
                                                                    <block type="math_number" id="ngt!{os6yB(.Qy-cN9cK">
                                                                      <field name="NUM">30</field>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="comment" id="b5N:p5UR`u%`]Ea1}Ajv">
                                                                      <field name="COMMENT">Badewanne</field>
                                                                      <next>
                                                                        <block type="control" id="Wa_UUjmCDr:yop^[OWVI">
                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                          <field name="OID">wled.0.58bf25d755ca.seg.0.on</field>
                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                          <value name="VALUE">
                                                                            <block type="logic_boolean" id="GW/qG+gB3Pj4.,g6dPL_">
                                                                              <field name="BOOL">TRUE</field>
                                                                            </block>
                                                                          </value>
                                                                          <next>
                                                                            <block type="control" id="]UV+%]3KtV|;O[2a=k0P">
                                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                              <field name="OID">wled.0.58bf25d755ca.ps</field>
                                                                              <field name="WITH_DELAY">FALSE</field>
                                                                              <value name="VALUE">
                                                                                <block type="math_number" id="!KbL$(26t6EDwEHmtizC">
                                                                                  <field name="NUM">1</field>
                                                                                </block>
                                                                              </value>
                                                                              <next>
                                                                                <block type="control" id="v_?KW6ExjY}U8WF.?+aR">
                                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                  <field name="OID">wled.0.58bf25d755ca.bri</field>
                                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                                  <value name="VALUE">
                                                                                    <block type="math_number" id="oLT(I;!S./N4Wzl)S^I[">
                                                                                      <field name="NUM">200</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>
                              <statement name="ELSE">
                                <block type="timeouts_settimeout" id=".m-G8rv8F(f]?*9LY}$e">
                                  <field name="NAME">timeout</field>
                                  <field name="DELAY">70</field>
                                  <field name="UNIT">sec</field>
                                  <statement name="STATEMENT">
                                    <block type="controls_if" id="g3kb{`G*%`lxLZF}2x%I">
                                      <value name="IF0">
                                        <block type="logic_operation" id="z6@6UTVPv_XP,fAZ`,rf" inline="false">
                                          <field name="OP">AND</field>
                                          <value name="A">
                                            <block type="logic_operation" id="F2S#N:Z}(ai]7:}Zu)vp" inline="false">
                                              <field name="OP">AND</field>
                                              <value name="A">
                                                <block type="logic_operation" id="LTQ8SWg,q.IPcK+bFJ*y" inline="false">
                                                  <field name="OP">AND</field>
                                                  <value name="A">
                                                    <block type="logic_compare" id="0.6yFOrpe+ip|WFjGid}">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="get_value" id="`sro,qFQy:nDJdGe8Pw-">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">openknx.0.Obergeschoss.Leuchten_Status.Badezimmer_Dusche_Ein_aus</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="logic_boolean" id="K6`0:h^Asu@,+w6Pt#c{">
                                                          <field name="BOOL">FALSE</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_compare" id="jS^Ivjzuwml9u:=j+D[|">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="get_value" id="]3*ZZ)mptXvY=ow+x8Uq">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">openknx.0.Obergeschoss.Leuchten_Status.Badezimmer_Bad_Ein_aus</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="logic_boolean" id="#~%^c5pxn+(p3jT~zrti">
                                                          <field name="BOOL">FALSE</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_compare" id="OV6Z9O;]xk6_E]iF4#%U">
                                                  <field name="OP">EQ</field>
                                                  <value name="A">
                                                    <block type="get_value" id="bESNKiU:lTN7}nyn87}#">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">zigbee.0.a4c1388f02e12050.occupancy</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_boolean" id="oF$xbEVuJJuL):wiR8jA">
                                                      <field name="BOOL">FALSE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="logic_compare" id="7g74|fVsq_Km?yiQ+Ua4">
                                              <field name="OP">EQ</field>
                                              <value name="A">
                                                <block type="get_value" id="3Og$J92x0RCJ^kJ33wB:">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">zigbee.0.00124b002508d3eb.occupancy</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_boolean" id="%aNp(q]/H#dt-F_8{7jt">
                                                  <field name="BOOL">FALSE</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="control" id="*4O%$GAV@8_fDBLc+Eo2">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">wled.0.40915144e793.seg.0.on</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id="r%H?8n)*3tq2$fp8]L|E">
                                              <field name="BOOL">FALSE</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="control" id="|;Py7aP(.`[b)u`HG/3,">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">wled.0.58bf25d755ca.seg.0.on</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="logic_boolean" id="9=vb?K[zByzEQEr_(H/]">
                                                  <field name="BOOL">FALSE</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="control" id="P*,m-JZh+Tg66=2HVgR:">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.state</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="logic_boolean" id="uV_`7;#RFG3p$A?,dQ[/">
                                                      <field name="BOOL">FALSE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                    </block>
                                  </statement>
                                </block>
                              </statement>
                            </block>
                          </statement>
                          <value name="IF1">
                            <block type="logic_compare" id="n8Q3)[,~!,e^O!Tm0RKk">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="uuzu=k7,((!e@Egism8e">
                                  <field name="ATTR">val</field>
                                  <field name="OID">0_userdata.0.Zeithilfe.Nachtlicht</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="PR~8Ec4K*FA43%)NkINC">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO1">
                            <block type="control" id="~hEm/K=gb_];n(41`G5*">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">wled.0.40915144e793.seg.0.on</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="XFNAM~kW=neDxK/$=gi-">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                              <next>
                                <block type="control" id="t:AlYGa?G8;{9nwXAv$b">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">wled.0.58bf25d755ca.seg.0.on</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="FgS24eoUA=Dgher|1=H;">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="control" id="eEoHg(;,`|GU[i?n.#?H">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.state</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="$z9zm|0oKt~E^.=;liq9">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </statement>
                      <next>
                        <block type="on" id="ym3sQ8a-q/XTHHF1Y88{">
                          <field name="OID">0_userdata.0.Zeithilfe.Nachtlicht</field>
                          <field name="CONDITION">false</field>
                          <field name="ACK_CONDITION"></field>
                          <statement name="STATEMENT">
                            <block type="control" id="RK7,;6s_ya[@MJ7vpUYE">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">wled.0.40915144e793.on</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="f8b`vpNoSSw/Rv[5!v=v">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                              <next>
                                <block type="control" id="1Y8XX/*TX*qe]CF1pn][">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">wled.0.58bf25d755ca.seg.0.on</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="u$I].1S[Py#JqRA|ZT:P">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="control" id="phP;OhP1N1{#Ekk+]6}^">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.state</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="lR$F5+~OboM2){9[2jj.">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </next>
        </block>
      </xml>```
      CinimodC Offline
      CinimodC Offline
      Cinimod
      Most Active
      schrieb am zuletzt editiert von
      #2

      @bacado

      Ich hab mal ein bisschen rum gespielt, probier das mal so wenn du magst :

      Bildschirmfoto 2023-01-27 um 22.43.26.png

      <variables>
         <variable type="timeout" id="timeout">timeout</variable>
       </variables>
       <block type="on_ext" id="j8_`4~cpCPE+u0W{rYf}" x="-1348" y="2170">
         <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="htu}?{I[PQ#tF`*Zl!4T">
             <field name="oid">zigbee.0.a4c1388f02e12050.occupancy</field>
           </shadow>
         </value>
         <value name="OID1">
           <shadow type="field_oid" id="CT{Nn#vgjoy7/T|aMy6n">
             <field name="oid">zigbee.0.00124b002508d3eb.occupancy</field>
           </shadow>
         </value>
         <statement name="STATEMENT">
           <block type="controls_if" id="^j9_h[5E.bS6[a[yegRy">
             <mutation elseif="1"></mutation>
             <value name="IF0">
               <block type="logic_operation" id="%NQi3@+();?mTeB;SjYX" inline="false">
                 <field name="OP">AND</field>
                 <value name="A">
                   <block type="on_source" id="pSnc+t-X-STk)KF]W|c]">
                     <field name="ATTR">state.val</field>
                   </block>
                 </value>
                 <value name="B">
                   <block type="get_value" id="qw1YC7zaYI5;k`2bku;z">
                     <field name="ATTR">val</field>
                     <field name="OID">0_userdata.0.Zeithilfe.Nachtlicht</field>
                   </block>
                 </value>
               </block>
             </value>
             <statement name="DO0">
               <block type="timeouts_cleartimeout" id="!klP8oFYM=%ppG@q.[S~">
                 <field name="NAME">timeout</field>
                 <next>
                   <block type="procedures_callnoreturn" id="Z]l^FiI)iWjGug-tCLMv">
                     <mutation name="Ambiente EIN"></mutation>
                   </block>
                 </next>
               </block>
             </statement>
             <value name="IF1">
               <block type="logic_operation" id="(VRITwTEP3]voS?eC:_E" inline="false">
                 <field name="OP">AND</field>
                 <value name="A">
                   <block type="logic_negate" id="P9Dx^sJI;:6mf0,qkceW">
                     <value name="BOOL">
                       <block type="on_source" id="r:[ujo4W:=AuvlmC,?1_">
                         <field name="ATTR">state.val</field>
                       </block>
                     </value>
                   </block>
                 </value>
                 <value name="B">
                   <block type="logic_operation" id="4iGaa:ZX(8kas3d*}#*A" inline="false">
                     <field name="OP">AND</field>
                     <value name="A">
                       <block type="logic_negate" id="a3^]X?zvuxAWDf3CCCji">
                         <value name="BOOL">
                           <block type="get_value" id="9z%H}x.LDxSu%PuME.~)">
                             <field name="ATTR">val</field>
                             <field name="OID">openknx.0.Obergeschoss.Leuchten_Status.Badezimmer_Bad_Ein_aus</field>
                           </block>
                         </value>
                       </block>
                     </value>
                     <value name="B">
                       <block type="logic_negate" id=";?r(0n[HAf%r]IW{a_lD">
                         <value name="BOOL">
                           <block type="get_value" id="3(6c/{Brvkxi5obj0#Ya">
                             <field name="ATTR">val</field>
                             <field name="OID">openknx.0.Obergeschoss.Leuchten_Status.Badezimmer_Dusche_Ein_aus</field>
                           </block>
                         </value>
                       </block>
                     </value>
                   </block>
                 </value>
               </block>
             </value>
             <statement name="DO1">
               <block type="timeouts_settimeout" id="ii+~%6MeoV.Y)bh;gf]P">
                 <field name="NAME">timeout</field>
                 <field name="DELAY">70</field>
                 <field name="UNIT">sec</field>
                 <statement name="STATEMENT">
                   <block type="procedures_callnoreturn" id="hb}j}I5sD|x^mzgy*1tP">
                     <mutation name="Ambiente AUS"></mutation>
                   </block>
                 </statement>
               </block>
             </statement>
           </block>
         </statement>
         <next>
           <block type="on" id=";e10N:$!._|KL!|-n%#{">
             <field name="OID">openknx.0.Obergeschoss.Leuchten_Status.Badezimmer_Bad_Ein_aus</field>
             <field name="CONDITION">ne</field>
             <field name="ACK_CONDITION"></field>
             <statement name="STATEMENT">
               <block type="controls_if" id="L@W#3WFzk#5S6..DLJIv">
                 <mutation elseif="1"></mutation>
                 <value name="IF0">
                   <block type="logic_negate" id="mt%@+y|hv[P|NZfVZ|1*">
                     <value name="BOOL">
                       <block type="get_value" id="q];(=zlvVuX/m]-bQO/;">
                         <field name="ATTR">val</field>
                         <field name="OID">0_userdata.0.Zeithilfe.Nachtlicht</field>
                       </block>
                     </value>
                   </block>
                 </value>
                 <statement name="DO0">
                   <block type="control" id="Uw0-e$4%5eih^,73Been">
                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                     <field name="OID">wled.0.40915144e793.seg.0.on</field>
                     <field name="WITH_DELAY">FALSE</field>
                     <value name="VALUE">
                       <block type="on_source" id="pyy@nGHyR:8ty%P4+7X-">
                         <field name="ATTR">state.val</field>
                       </block>
                     </value>
                     <next>
                       <block type="control" id="l2gqONaT+G6!{96)3p(Q">
                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                         <field name="OID">wled.0.40915144e793.ps</field>
                         <field name="WITH_DELAY">FALSE</field>
                         <value name="VALUE">
                           <block type="math_number" id="%CMsxp(UGLlbKrfo[id.">
                             <field name="NUM">1</field>
                           </block>
                         </value>
                         <next>
                           <block type="control" id="rw{oJ]ak)48udAU}YNl?">
                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                             <field name="OID">wled.0.40915144e793.bri</field>
                             <field name="WITH_DELAY">FALSE</field>
                             <value name="VALUE">
                               <block type="math_number" id="L:$kF@=~yo0ns/[V60{R">
                                 <field name="NUM">200</field>
                               </block>
                             </value>
                           </block>
                         </next>
                       </block>
                     </next>
                   </block>
                 </statement>
                 <value name="IF1">
                   <block type="logic_negate" id="AqLF8~=oZ.q?@)D1g-0`">
                     <value name="BOOL">
                       <block type="on_source" id="899W0[a*LO]pIaAbSv$B">
                         <field name="ATTR">state.val</field>
                       </block>
                     </value>
                   </block>
                 </value>
                 <statement name="DO1">
                   <block type="procedures_callnoreturn" id="d6kV$cbNhkj?au``E^m.">
                     <mutation name="Ambiente AUS"></mutation>
                   </block>
                 </statement>
               </block>
             </statement>
             <next>
               <block type="on" id="a[0,K7vQk)?uxvvavMSr">
                 <field name="OID">openknx.0.Obergeschoss.Leuchten_Schalten.BadZentralAus</field>
                 <field name="CONDITION">any</field>
                 <field name="ACK_CONDITION"></field>
                 <statement name="STATEMENT">
                   <block type="timeouts_wait" id="kmMD+~GSnI|P#viawdZ9">
                     <field name="DELAY">2000</field>
                     <field name="UNIT">ms</field>
                     <next>
                       <block type="procedures_callnoreturn" id="m;^@@mJ*Sf9~NjG_hPad">
                         <mutation name="Ambiente AUS"></mutation>
                       </block>
                     </next>
                   </block>
                 </statement>
               </block>
             </next>
           </block>
         </next>
       </block>
       <block type="procedures_defnoreturn" id="DCPHd_HcE+DbJuNWvLEB" x="-437" y="2288">
         <field name="NAME">Ambiente AUS</field>
         <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
         <statement name="STACK">
           <block type="control" id="6Cp)01IrhyG*9kfo^-w/">
             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
             <field name="OID">wled.0.40915144e793.seg.0.on</field>
             <field name="WITH_DELAY">FALSE</field>
             <value name="VALUE">
               <block type="logic_boolean" id="`.$rJ?@.6|7%BT]#V)NU">
                 <field name="BOOL">FALSE</field>
               </block>
             </value>
             <next>
               <block type="control" id="6`KIB/WR;OS/a=|+AX%W">
                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                 <field name="OID">wled.0.58bf25d755ca.seg.0.on</field>
                 <field name="WITH_DELAY">FALSE</field>
                 <value name="VALUE">
                   <block type="logic_boolean" id="r+rb|nvA6Kf0+.u)UZ?j">
                     <field name="BOOL">FALSE</field>
                   </block>
                 </value>
                 <next>
                   <block type="control" id=")#Fc1X.R9#P5Hh8;;ksa">
                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                     <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.state</field>
                     <field name="WITH_DELAY">FALSE</field>
                     <value name="VALUE">
                       <block type="logic_boolean" id="~;C;h$Y!eR6hNBBytAKt">
                         <field name="BOOL">FALSE</field>
                       </block>
                     </value>
                   </block>
                 </next>
               </block>
             </next>
           </block>
         </statement>
       </block>
       <block type="procedures_defnoreturn" id="[;x+re}Ph?Yr_TH-XolI" x="-438" y="2512">
         <field name="NAME">Ambiente EIN</field>
         <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
         <statement name="STACK">
           <block type="comment" id="co+2(_;K/[dDF~grP4(4">
             <field name="COMMENT">Wled Dusche</field>
             <next>
               <block type="control" id="7dEf?4KK1tFJOo?O?+X5">
                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                 <field name="OID">wled.0.40915144e793.seg.0.on</field>
                 <field name="WITH_DELAY">FALSE</field>
                 <value name="VALUE">
                   <block type="logic_boolean" id="_gRB_/UXc`]J^}/Ddm?A">
                     <field name="BOOL">TRUE</field>
                   </block>
                 </value>
                 <next>
                   <block type="control" id="@rKRRuM+d?%jN[;//zSx">
                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                     <field name="OID">wled.0.40915144e793.ps</field>
                     <field name="WITH_DELAY">FALSE</field>
                     <value name="VALUE">
                       <block type="math_number" id="Wun$}w5P)0;,1?U;gjm*">
                         <field name="NUM">1</field>
                       </block>
                     </value>
                     <next>
                       <block type="control" id="HH+(D=g)hI[FDuzmuW$d">
                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                         <field name="OID">wled.0.40915144e793.bri</field>
                         <field name="WITH_DELAY">FALSE</field>
                         <value name="VALUE">
                           <block type="math_number" id="J.RXP:9LW%CT_:fYXt$W">
                             <field name="NUM">200</field>
                           </block>
                         </value>
                         <next>
                           <block type="comment" id=";y.qcH=cB)UWEwqC]l)p">
                             <field name="COMMENT">Badezimmerschrank</field>
                             <next>
                               <block type="control" id="Fbs,7Fd5A5XdGd8*Mt^/">
                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                 <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.state</field>
                                 <field name="WITH_DELAY">FALSE</field>
                                 <value name="VALUE">
                                   <block type="logic_boolean" id="g?Jc#fQ~)?Up73refUWq">
                                     <field name="BOOL">TRUE</field>
                                   </block>
                                 </value>
                                 <next>
                                   <block type="control" id="a(-d=DpUBR$51wzDtfLm">
                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                     <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.colortemp</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="math_number" id="?rPq(7XzOBIMxtRx.+2=">
                                         <field name="NUM">2200</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="control" id="[MgE]}`#bYRD+b5=4Hv~">
                                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                         <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.brightness</field>
                                         <field name="WITH_DELAY">FALSE</field>
                                         <value name="VALUE">
                                           <block type="math_number" id=";o,)Hz=hSuE_4}3r[rQp">
                                             <field name="NUM">30</field>
                                           </block>
                                         </value>
                                         <next>
                                           <block type="comment" id="=Gf|UnU+9nw+ux]sP1bW">
                                             <field name="COMMENT">Badewanne</field>
                                             <next>
                                               <block type="control" id="yH?_aT7,[4#svD#-cn0#">
                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                 <field name="OID">wled.0.58bf25d755ca.seg.0.on</field>
                                                 <field name="WITH_DELAY">FALSE</field>
                                                 <value name="VALUE">
                                                   <block type="logic_boolean" id="m(-9PeHxW]92oWRjNE5a">
                                                     <field name="BOOL">TRUE</field>
                                                   </block>
                                                 </value>
                                                 <next>
                                                   <block type="control" id=".29gho6J4M7+Yl8vemWb">
                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                     <field name="OID">wled.0.58bf25d755ca.ps</field>
                                                     <field name="WITH_DELAY">FALSE</field>
                                                     <value name="VALUE">
                                                       <block type="math_number" id="3xi]3FlEe{u3Jp.P{]:,">
                                                         <field name="NUM">1</field>
                                                       </block>
                                                     </value>
                                                     <next>
                                                       <block type="control" id="F5Xa#@aVO5;Kkh]:.|d/">
                                                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                         <field name="OID">wled.0.58bf25d755ca.bri</field>
                                                         <field name="WITH_DELAY">FALSE</field>
                                                         <value name="VALUE">
                                                           <block type="math_number" id="?sTmlSqsg?5,9]E=`fft">
                                                             <field name="NUM">200</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>
         </statement>
       </block>
      

      Synology DS918+, Fritzbox 6690 Cable, #Docker #Blockly #Vis2 #Deconz #Tasmota

      1 Antwort Letzte Antwort
      0
      • B Bacado

        Hallo zusammen, ich hab nun schon verschiedene Sachen probiert aber irgendwie hab ich scheinbar immer Konflikte in meinen Skripten.
        Wichtige info: Die OpenKNX Datenpunkte BadezimmerBad und Duschnische sind vertauscht! Also Nische ist Bad und Bad ist Nische.

        Das Problem die indirekte Beleuchtung geht an oder bleibt an ohne das sie es soll und die Wled-Duschnische bleibt nicht an wenn sie es soll.

        So da es eine sehr umfangreiche Sache ist: Folgendes ist gewünscht:

        1. Wenn jemand ins Bad geht, soll wenn Nachtlicht true ist (Datenpunkt der für bestimmte Uhrzeiten auf true/false gesetzt wird, weil das mit Datum/Zeit immer Probleme gab) die indirekte Beleuchtung an gehen (Badewanne/Duschnische/Waschtisch).
        2. Wenn eins der Hauptlichter (BadzimmerBad/Dusche) an ist soll Wärend die indirekte Beleuchtung an ist ebenfalls anbleiben wenn Nachtlicht Aktiv (in der Dusche/Badewanne wird man von den BWM´s nicht gesehen (hier werden die Hauptleuchten später auch gedimmt)).
        3. Wenn ich ZentralAus kurz Trigger soll alles ausgehen
        4. Wenn Nachtlich false soll Wled-Duschenische geschaltet werden wenn Badezimmer Bad angehen.

        Hier mal der Aktuellestand.

        BlocklyBadezimmer.png

        <xml xmlns="https://developers.google.com/blockly/xml">
          <variables>
            <variable type="timeout" id="timeout">timeout</variable>
          </variables>
          <block type="on" id=";e10N:$!._|KL!|-n%#{" x="-312" y="1863">
            <field name="OID">openknx.0.Obergeschoss.Leuchten_Status.Badezimmer_Bad_Ein_aus</field>
            <field name="CONDITION">ne</field>
            <field name="ACK_CONDITION"></field>
            <statement name="STATEMENT">
              <block type="control" id="Uw0-e$4%5eih^,73Been">
                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                <field name="OID">wled.0.40915144e793.seg.0.on</field>
                <field name="WITH_DELAY">FALSE</field>
                <value name="VALUE">
                  <block type="get_value" id="ObFFNp?9f0@rVymkqvof">
                    <field name="ATTR">val</field>
                    <field name="OID">openknx.0.Obergeschoss.Leuchten_Schalten.Badezimmer_Bad_Ein_aus</field>
                  </block>
                </value>
                <next>
                  <block type="control" id="l2gqONaT+G6!{96)3p(Q">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">wled.0.40915144e793.ps</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="math_number" id="%CMsxp(UGLlbKrfo[id.">
                        <field name="NUM">1</field>
                      </block>
                    </value>
                    <next>
                      <block type="control" id="rw{oJ]ak)48udAU}YNl?">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">wled.0.40915144e793.bri</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="math_number" id="L:$kF@=~yo0ns/[V60{R">
                            <field name="NUM">200</field>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
            <next>
              <block type="on" id="a[0,K7vQk)?uxvvavMSr">
                <field name="OID">openknx.0.Obergeschoss.Leuchten_Schalten.BadZentralAus</field>
                <field name="CONDITION">any</field>
                <field name="ACK_CONDITION"></field>
                <statement name="STATEMENT">
                  <block type="timeouts_wait" id="kmMD+~GSnI|P#viawdZ9">
                    <field name="DELAY">2</field>
                    <field name="UNIT">sec</field>
                    <next>
                      <block type="control" id="Nw(yY0SbQ{}8II}u-Z,V">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">wled.0.40915144e793.seg.0.on</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="3.PLQ;uktwQzK!wJ7{GV">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                        <next>
                          <block type="control" id="BO*UyMBg)8v[J]KQ7s~8">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">wled.0.58bf25d755ca.seg.0.on</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="y)cCUb(hF6l4XqXx6wIP">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="control" id="C#?#h`s!/~}~.?}]kr-I">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.state</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="GiJ/y4BpN72?-Nzj!F3*">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
                <next>
                  <block type="on_ext" id="5NROZ2ogdfnre9OGiQLj" disabled="true">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                    <field name="CONDITION">false</field>
                    <field name="ACK_CONDITION"></field>
                    <value name="OID0">
                      <shadow type="field_oid" id="Rm,b,s8RBf*[:)V,D#/z">
                        <field name="oid">openknx.0.Obergeschoss.Leuchten_Schalten.Badezimmer_Bad_Ein_aus</field>
                      </shadow>
                    </value>
                    <value name="OID1">
                      <shadow type="field_oid" id="gXG7N:PVaT,1DM6@8[nF">
                        <field name="oid">openknx.0.Obergeschoss.Leuchten_Schalten.Badezimmer_Dusche_Ein_aus</field>
                      </shadow>
                    </value>
                    <statement name="STATEMENT">
                      <block type="controls_if" id="6]zG0nZmqksw)KXss(uF">
                        <value name="IF0">
                          <block type="logic_operation" id="U;/OHL5:;VG}mgP;ycjv" inline="false">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="logic_compare" id="H;m=8;D%8No---r:U7oI">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="9z%H}x.LDxSu%PuME.~)">
                                    <field name="ATTR">val</field>
                                    <field name="OID">openknx.0.Obergeschoss.Leuchten_Status.Badezimmer_Bad_Ein_aus</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id=":S7d_Z1]ED$KbHen4vcN">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_compare" id="A^l2.STp-1$[)dc=j}]|">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="3(6c/{Brvkxi5obj0#Ya">
                                    <field name="ATTR">val</field>
                                    <field name="OID">openknx.0.Obergeschoss.Leuchten_Status.Badezimmer_Dusche_Ein_aus</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="bnYpo%`(ow`.Z:bLEI4;">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="control" id="!hw.7k?]oy)oRTk3*h5C">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">wled.0.40915144e793.on</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="rm@wRJyaFRMJF}zAQu+F">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="control" id="k^h2DZmt[LY?3CG1-VFV">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.state</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="I3+*zR}[%i]2?Vy4cG35">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </statement>
                      </block>
                    </statement>
                    <next>
                      <block type="on_ext" id="]tl|pI^Zy14-K9!@Iaok">
                        <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="7),$o:5!ozN1WSxlV#Tw">
                            <field name="oid">zigbee.0.a4c1388f02e12050.occupancy</field>
                          </shadow>
                        </value>
                        <value name="OID1">
                          <shadow type="field_oid" id="o^|0q5]U`2?^iqQ@jTIy">
                            <field name="oid">zigbee.0.00124b002508d3eb.occupancy</field>
                          </shadow>
                        </value>
                        <statement name="STATEMENT">
                          <block type="controls_if" id="!5:*;E=DoNK[_bk;@Wai">
                            <mutation elseif="1"></mutation>
                            <value name="IF0">
                              <block type="logic_compare" id="kmpFl}fxn*T{!d^^|9Gh">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="3_.[tN$7uzx6ItGm:CK{">
                                    <field name="ATTR">val</field>
                                    <field name="OID">0_userdata.0.Zeithilfe.Nachtlicht</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="DGl+ffT,o~/+CeF,GS$x">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="controls_if" id="k#ljA},8~6yz*F((;wmY">
                                <mutation else="1"></mutation>
                                <value name="IF0">
                                  <block type="logic_operation" id="d8*dsIQob;fuktj47_bF" inline="false">
                                    <field name="OP">OR</field>
                                    <value name="A">
                                      <block type="logic_compare" id="kN/u$7:*|a7+;PdzO`$o">
                                        <field name="OP">EQ</field>
                                        <value name="A">
                                          <block type="get_value" id=")y]prKI~2rckQq9,R)(.">
                                            <field name="ATTR">val</field>
                                            <field name="OID">zigbee.0.00124b002508d3eb.occupancy</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_boolean" id="Ko%vGtyOtyS-r*-JUY7U">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_compare" id="0_TE^E%5KC.qt3}wZQt6">
                                        <field name="OP">EQ</field>
                                        <value name="A">
                                          <block type="get_value" id="Uaf*xd*W.o**nrIyf=Rs">
                                            <field name="ATTR">val</field>
                                            <field name="OID">zigbee.0.a4c1388f02e12050.occupancy</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_boolean" id="dVWUBc~xp1rEHYPS~)6R">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="timeouts_cleartimeout" id="5dJFB4A9K%3!Yc6Ggo_J">
                                    <field name="NAME">timeout</field>
                                    <next>
                                      <block type="comment" id="Z%a?UBi^j~KNs2nQOY$*">
                                        <field name="COMMENT">Wled Dusche</field>
                                        <next>
                                          <block type="control" id="nF:y6{O~,-7o,LYlP1hu">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">wled.0.40915144e793.seg.0.on</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="logic_boolean" id="=FHp_H!+%TD*r+s$wcn1">
                                                <field name="BOOL">TRUE</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="control" id="{y;-AaPonj%HO.$CochM">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">wled.0.40915144e793.ps</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="math_number" id=",Z*@~I*HxVF~u9Xo?PJA">
                                                    <field name="NUM">1</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="control" id="OE6CHy@M|(6-0;{BrG`h">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                    <field name="OID">wled.0.40915144e793.bri</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="math_number" id="C|x4hmzZbewM5%I#53{3">
                                                        <field name="NUM">200</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="comment" id="pd61e/P=*$qJUQi{?Fjc">
                                                        <field name="COMMENT">Badezimmerschrank</field>
                                                        <next>
                                                          <block type="control" id="%X{hE3sFXP6l;q`}%/sR">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                            <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.state</field>
                                                            <field name="WITH_DELAY">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="logic_boolean" id="TpbT,_(x0vpQq_zcm;C@">
                                                                <field name="BOOL">TRUE</field>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="control" id="VHOa=9Z2%7kMu:DLrwj$">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.colortemp</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="math_number" id="g)[f1U]Y8%5Og,pgSocz">
                                                                    <field name="NUM">2200</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="control" id="9j^wMSxRhQ9rrt!VX([r">
                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                    <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.brightness</field>
                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                    <value name="VALUE">
                                                                      <block type="math_number" id="ngt!{os6yB(.Qy-cN9cK">
                                                                        <field name="NUM">30</field>
                                                                      </block>
                                                                    </value>
                                                                    <next>
                                                                      <block type="comment" id="b5N:p5UR`u%`]Ea1}Ajv">
                                                                        <field name="COMMENT">Badewanne</field>
                                                                        <next>
                                                                          <block type="control" id="Wa_UUjmCDr:yop^[OWVI">
                                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                            <field name="OID">wled.0.58bf25d755ca.seg.0.on</field>
                                                                            <field name="WITH_DELAY">FALSE</field>
                                                                            <value name="VALUE">
                                                                              <block type="logic_boolean" id="GW/qG+gB3Pj4.,g6dPL_">
                                                                                <field name="BOOL">TRUE</field>
                                                                              </block>
                                                                            </value>
                                                                            <next>
                                                                              <block type="control" id="]UV+%]3KtV|;O[2a=k0P">
                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                <field name="OID">wled.0.58bf25d755ca.ps</field>
                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                <value name="VALUE">
                                                                                  <block type="math_number" id="!KbL$(26t6EDwEHmtizC">
                                                                                    <field name="NUM">1</field>
                                                                                  </block>
                                                                                </value>
                                                                                <next>
                                                                                  <block type="control" id="v_?KW6ExjY}U8WF.?+aR">
                                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                    <field name="OID">wled.0.58bf25d755ca.bri</field>
                                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                                    <value name="VALUE">
                                                                                      <block type="math_number" id="oLT(I;!S./N4Wzl)S^I[">
                                                                                        <field name="NUM">200</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>
                                <statement name="ELSE">
                                  <block type="timeouts_settimeout" id=".m-G8rv8F(f]?*9LY}$e">
                                    <field name="NAME">timeout</field>
                                    <field name="DELAY">70</field>
                                    <field name="UNIT">sec</field>
                                    <statement name="STATEMENT">
                                      <block type="controls_if" id="g3kb{`G*%`lxLZF}2x%I">
                                        <value name="IF0">
                                          <block type="logic_operation" id="z6@6UTVPv_XP,fAZ`,rf" inline="false">
                                            <field name="OP">AND</field>
                                            <value name="A">
                                              <block type="logic_operation" id="F2S#N:Z}(ai]7:}Zu)vp" inline="false">
                                                <field name="OP">AND</field>
                                                <value name="A">
                                                  <block type="logic_operation" id="LTQ8SWg,q.IPcK+bFJ*y" inline="false">
                                                    <field name="OP">AND</field>
                                                    <value name="A">
                                                      <block type="logic_compare" id="0.6yFOrpe+ip|WFjGid}">
                                                        <field name="OP">EQ</field>
                                                        <value name="A">
                                                          <block type="get_value" id="`sro,qFQy:nDJdGe8Pw-">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">openknx.0.Obergeschoss.Leuchten_Status.Badezimmer_Dusche_Ein_aus</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="logic_boolean" id="K6`0:h^Asu@,+w6Pt#c{">
                                                            <field name="BOOL">FALSE</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="logic_compare" id="jS^Ivjzuwml9u:=j+D[|">
                                                        <field name="OP">EQ</field>
                                                        <value name="A">
                                                          <block type="get_value" id="]3*ZZ)mptXvY=ow+x8Uq">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">openknx.0.Obergeschoss.Leuchten_Status.Badezimmer_Bad_Ein_aus</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="logic_boolean" id="#~%^c5pxn+(p3jT~zrti">
                                                            <field name="BOOL">FALSE</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_compare" id="OV6Z9O;]xk6_E]iF4#%U">
                                                    <field name="OP">EQ</field>
                                                    <value name="A">
                                                      <block type="get_value" id="bESNKiU:lTN7}nyn87}#">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">zigbee.0.a4c1388f02e12050.occupancy</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="logic_boolean" id="oF$xbEVuJJuL):wiR8jA">
                                                        <field name="BOOL">FALSE</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="logic_compare" id="7g74|fVsq_Km?yiQ+Ua4">
                                                <field name="OP">EQ</field>
                                                <value name="A">
                                                  <block type="get_value" id="3Og$J92x0RCJ^kJ33wB:">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">zigbee.0.00124b002508d3eb.occupancy</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_boolean" id="%aNp(q]/H#dt-F_8{7jt">
                                                    <field name="BOOL">FALSE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="control" id="*4O%$GAV@8_fDBLc+Eo2">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">wled.0.40915144e793.seg.0.on</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="logic_boolean" id="r%H?8n)*3tq2$fp8]L|E">
                                                <field name="BOOL">FALSE</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="control" id="|;Py7aP(.`[b)u`HG/3,">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">wled.0.58bf25d755ca.seg.0.on</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="logic_boolean" id="9=vb?K[zByzEQEr_(H/]">
                                                    <field name="BOOL">FALSE</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="control" id="P*,m-JZh+Tg66=2HVgR:">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                    <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.state</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="logic_boolean" id="uV_`7;#RFG3p$A?,dQ[/">
                                                        <field name="BOOL">FALSE</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                              </block>
                            </statement>
                            <value name="IF1">
                              <block type="logic_compare" id="n8Q3)[,~!,e^O!Tm0RKk">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="uuzu=k7,((!e@Egism8e">
                                    <field name="ATTR">val</field>
                                    <field name="OID">0_userdata.0.Zeithilfe.Nachtlicht</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="PR~8Ec4K*FA43%)NkINC">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO1">
                              <block type="control" id="~hEm/K=gb_];n(41`G5*">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">wled.0.40915144e793.seg.0.on</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="XFNAM~kW=neDxK/$=gi-">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="control" id="t:AlYGa?G8;{9nwXAv$b">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">wled.0.58bf25d755ca.seg.0.on</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="logic_boolean" id="FgS24eoUA=Dgher|1=H;">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="control" id="eEoHg(;,`|GU[i?n.#?H">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.state</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="$z9zm|0oKt~E^.=;liq9">
                                            <field name="BOOL">FALSE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </statement>
                          </block>
                        </statement>
                        <next>
                          <block type="on" id="ym3sQ8a-q/XTHHF1Y88{">
                            <field name="OID">0_userdata.0.Zeithilfe.Nachtlicht</field>
                            <field name="CONDITION">false</field>
                            <field name="ACK_CONDITION"></field>
                            <statement name="STATEMENT">
                              <block type="control" id="RK7,;6s_ya[@MJ7vpUYE">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">wled.0.40915144e793.on</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="f8b`vpNoSSw/Rv[5!v=v">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="control" id="1Y8XX/*TX*qe]CF1pn][">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">wled.0.58bf25d755ca.seg.0.on</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="logic_boolean" id="u$I].1S[Py#JqRA|ZT:P">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="control" id="phP;OhP1N1{#Ekk+]6}^">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.state</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="lR$F5+~OboM2){9[2jj.">
                                            <field name="BOOL">FALSE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </xml>```
        paul53P Offline
        paul53P Offline
        paul53
        schrieb am zuletzt editiert von
        #3

        @bacado sagte: Folgendes ist gewünscht:

        Vorschlag:

        Blockly_temp.JPG

        <xml xmlns="https://developers.google.com/blockly/xml">
         <variables>
           <variable id="?,h:f}.OAF+=$YSwL[!l">ein</variable>
           <variable id="fD`y8)BjvBmZkIjCGMx{">hauptlicht</variable>
           <variable type="timeout" id="timeout">timeout</variable>
         </variables>
         <block type="on" id="ym3sQ8a-q/XTHHF1Y88{" x="-312" y="1762">
           <field name="OID">0_userdata.0.Zeithilfe.Nachtlicht</field>
           <field name="CONDITION">false</field>
           <field name="ACK_CONDITION"></field>
           <statement name="STATEMENT">
             <block type="procedures_callnoreturn" id="h~hZ3xG^YW`?9c_P[3FF" inline="true">
               <mutation name="indirekt">
                 <arg name="ein"></arg>
               </mutation>
               <value name="ARG0">
                 <block type="logic_boolean" id="f8b`vpNoSSw/Rv[5!v=v">
                   <field name="BOOL">FALSE</field>
                 </block>
               </value>
             </block>
           </statement>
           <next>
             <block type="on" id="a[0,K7vQk)?uxvvavMSr">
               <field name="OID">openknx.0.Obergeschoss.Leuchten_Schalten.BadZentralAus</field>
               <field name="CONDITION">any</field>
               <field name="ACK_CONDITION"></field>
               <statement name="STATEMENT">
                 <block type="procedures_callnoreturn" id="8+$*ao{u4Wj#G!z!oUYk" inline="true">
                   <mutation name="indirekt">
                     <arg name="ein"></arg>
                   </mutation>
                   <value name="ARG0">
                     <block type="logic_boolean" id="-X[uhrtK)o!*)iczOc_l">
                       <field name="BOOL">FALSE</field>
                     </block>
                   </value>
                 </block>
               </statement>
               <next>
                 <block type="on_ext" id="5NROZ2ogdfnre9OGiQLj">
                   <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="Rm,b,s8RBf*[:)V,D#/z">
                       <field name="oid">openknx.0.Obergeschoss.Leuchten_Schalten.Badezimmer_Bad_Ein_aus</field>
                     </shadow>
                   </value>
                   <value name="OID1">
                     <shadow type="field_oid" id="gXG7N:PVaT,1DM6@8[nF">
                       <field name="oid">openknx.0.Obergeschoss.Leuchten_Schalten.Badezimmer_Dusche_Ein_aus</field>
                     </shadow>
                   </value>
                   <statement name="STATEMENT">
                     <block type="variables_set" id="(R3,*r;9o4*9ya%(Ox+{">
                       <field name="VAR" id="fD`y8)BjvBmZkIjCGMx{">hauptlicht</field>
                       <value name="VALUE">
                         <block type="logic_operation" id="3Ur#1_WV_~e#|tV3e01l" inline="false">
                           <field name="OP">OR</field>
                           <value name="A">
                             <block type="get_value" id="9z%H}x.LDxSu%PuME.~)">
                               <field name="ATTR">val</field>
                               <field name="OID">openknx.0.Obergeschoss.Leuchten_Status.Badezimmer_Bad_Ein_aus</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="get_value" id="3(6c/{Brvkxi5obj0#Ya">
                               <field name="ATTR">val</field>
                               <field name="OID">openknx.0.Obergeschoss.Leuchten_Status.Badezimmer_Dusche_Ein_aus</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <next>
                         <block type="procedures_callnoreturn" id="A_)6$~d|I+ag?OnlV?f^" inline="true">
                           <mutation name="indirekt">
                             <arg name="ein"></arg>
                           </mutation>
                           <value name="ARG0">
                             <block type="logic_operation" id="#^G(+x[YF,!iimi3TQ6U">
                               <field name="OP">AND</field>
                               <value name="A">
                                 <block type="variables_get" id="@/ZI%]2+(M]T~J2,p.?Q">
                                   <field name="VAR" id="fD`y8)BjvBmZkIjCGMx{">hauptlicht</field>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="get_value" id="i)|[#gQ!1D/oblvmfs*a">
                                   <field name="ATTR">val</field>
                                   <field name="OID">0_userdata.0.Zeithilfe.Nachtlicht</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                         </block>
                       </next>
                     </block>
                   </statement>
                   <next>
                     <block type="on_ext" id="]tl|pI^Zy14-K9!@Iaok">
                       <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="7),$o:5!ozN1WSxlV#Tw">
                           <field name="oid">zigbee.0.a4c1388f02e12050.occupancy</field>
                         </shadow>
                       </value>
                       <value name="OID1">
                         <shadow type="field_oid" id="o^|0q5]U`2?^iqQ@jTIy">
                           <field name="oid">zigbee.0.00124b002508d3eb.occupancy</field>
                         </shadow>
                       </value>
                       <statement name="STATEMENT">
                         <block type="controls_if" id="!5:*;E=DoNK[_bk;@Wai">
                           <value name="IF0">
                             <block type="logic_operation" id="u9T@:){.loez-HMVOClJ" inline="false">
                               <field name="OP">AND</field>
                               <value name="A">
                                 <block type="get_value" id="3_.[tN$7uzx6ItGm:CK{">
                                   <field name="ATTR">val</field>
                                   <field name="OID">0_userdata.0.Zeithilfe.Nachtlicht</field>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="logic_negate" id="lC_L:cY=0A_x.4bi8`.=">
                                   <value name="BOOL">
                                     <block type="variables_get" id="^F^K42WT$Z=[;gLiPY7/">
                                       <field name="VAR" id="fD`y8)BjvBmZkIjCGMx{">hauptlicht</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <statement name="DO0">
                             <block type="controls_if" id="k#ljA},8~6yz*F((;wmY">
                               <mutation else="1"></mutation>
                               <value name="IF0">
                                 <block type="logic_operation" id="d8*dsIQob;fuktj47_bF" inline="false">
                                   <field name="OP">OR</field>
                                   <value name="A">
                                     <block type="get_value" id=")y]prKI~2rckQq9,R)(.">
                                       <field name="ATTR">val</field>
                                       <field name="OID">zigbee.0.00124b002508d3eb.occupancy</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="get_value" id="Uaf*xd*W.o**nrIyf=Rs">
                                       <field name="ATTR">val</field>
                                       <field name="OID">zigbee.0.a4c1388f02e12050.occupancy</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <statement name="DO0">
                                 <block type="procedures_callnoreturn" id="{mLh[m_L*t9,esucYy)#" inline="true">
                                   <mutation name="indirekt">
                                     <arg name="ein"></arg>
                                   </mutation>
                                   <value name="ARG0">
                                     <block type="logic_boolean" id="de(/JP/O*Z:v/0_gd`bo">
                                       <field name="BOOL">TRUE</field>
                                     </block>
                                   </value>
                                 </block>
                               </statement>
                               <statement name="ELSE">
                                 <block type="timeouts_settimeout" id=".m-G8rv8F(f]?*9LY}$e">
                                   <field name="NAME">timeout</field>
                                   <field name="DELAY">70</field>
                                   <field name="UNIT">sec</field>
                                   <statement name="STATEMENT">
                                     <block type="procedures_callnoreturn" id="n;yhcacp`4EUDW!:%r(Z" inline="true">
                                       <mutation name="indirekt">
                                         <arg name="ein"></arg>
                                       </mutation>
                                       <value name="ARG0">
                                         <block type="logic_boolean" id="S*lz`ILNUW-wv0%ToC8U">
                                           <field name="BOOL">FALSE</field>
                                         </block>
                                       </value>
                                     </block>
                                   </statement>
                                 </block>
                               </statement>
                             </block>
                           </statement>
                         </block>
                       </statement>
                     </block>
                   </next>
                 </block>
               </next>
             </block>
           </next>
         </block>
         <block type="procedures_defnoreturn" id="NEip`/m*@B5EXT+aE*!^" x="538" y="1763">
           <mutation>
             <arg name="ein" varid="?,h:f}.OAF+=$YSwL[!l"></arg>
           </mutation>
           <field name="NAME">indirekt</field>
           <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
           <statement name="STACK">
             <block type="control" id="nF:y6{O~,-7o,LYlP1hu">
               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
               <field name="OID">wled.0.40915144e793.seg.0.on</field>
               <field name="WITH_DELAY">FALSE</field>
               <value name="VALUE">
                 <block type="variables_get" id="]oV,_3($m,h.dze$3ic`">
                   <field name="VAR" id="?,h:f}.OAF+=$YSwL[!l">ein</field>
                 </block>
               </value>
               <next>
                 <block type="control" id="%X{hE3sFXP6l;q`}%/sR">
                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                   <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.state</field>
                   <field name="WITH_DELAY">FALSE</field>
                   <value name="VALUE">
                     <block type="variables_get" id="ZD!;u*H/wlYx`A!5;Zv~">
                       <field name="VAR" id="?,h:f}.OAF+=$YSwL[!l">ein</field>
                     </block>
                   </value>
                   <next>
                     <block type="control" id="Wa_UUjmCDr:yop^[OWVI">
                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                       <field name="OID">wled.0.58bf25d755ca.seg.0.on</field>
                       <field name="WITH_DELAY">FALSE</field>
                       <value name="VALUE">
                         <block type="variables_get" id="^7W?EQ3YI/ol(ZdbPA2)">
                           <field name="VAR" id="?,h:f}.OAF+=$YSwL[!l">ein</field>
                         </block>
                       </value>
                       <next>
                         <block type="controls_if" id="SAxk7Uc(dE[TZ$@Q2E?q">
                           <value name="IF0">
                             <block type="variables_get" id="SVV]sWc}W9QV4UmhX2S4">
                               <field name="VAR" id="?,h:f}.OAF+=$YSwL[!l">ein</field>
                             </block>
                           </value>
                           <statement name="DO0">
                             <block type="timeouts_cleartimeout" id="dQvjSEVQ+F1XU`BchX*C">
                               <field name="NAME">timeout</field>
                               <next>
                                 <block type="comment" id="Z%a?UBi^j~KNs2nQOY$*">
                                   <field name="COMMENT">Wled Dusche</field>
                                   <next>
                                     <block type="control" id="{y;-AaPonj%HO.$CochM">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">wled.0.40915144e793.ps</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="math_number" id=",Z*@~I*HxVF~u9Xo?PJA">
                                           <field name="NUM">1</field>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="control" id="OE6CHy@M|(6-0;{BrG`h">
                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                           <field name="OID">wled.0.40915144e793.bri</field>
                                           <field name="WITH_DELAY">FALSE</field>
                                           <value name="VALUE">
                                             <block type="math_number" id="C|x4hmzZbewM5%I#53{3">
                                               <field name="NUM">200</field>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="comment" id="pd61e/P=*$qJUQi{?Fjc">
                                               <field name="COMMENT">Badezimmerschrank</field>
                                               <next>
                                                 <block type="control" id="VHOa=9Z2%7kMu:DLrwj$">
                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                   <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.colortemp</field>
                                                   <field name="WITH_DELAY">FALSE</field>
                                                   <value name="VALUE">
                                                     <block type="math_number" id="g)[f1U]Y8%5Og,pgSocz">
                                                       <field name="NUM">2200</field>
                                                     </block>
                                                   </value>
                                                   <next>
                                                     <block type="control" id="9j^wMSxRhQ9rrt!VX([r">
                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                       <field name="OID">zigbee.0.ec1bbdfffe7f5bc5.brightness</field>
                                                       <field name="WITH_DELAY">FALSE</field>
                                                       <value name="VALUE">
                                                         <block type="math_number" id="ngt!{os6yB(.Qy-cN9cK">
                                                           <field name="NUM">30</field>
                                                         </block>
                                                       </value>
                                                       <next>
                                                         <block type="comment" id="b5N:p5UR`u%`]Ea1}Ajv">
                                                           <field name="COMMENT">Badewanne</field>
                                                           <next>
                                                             <block type="control" id="]UV+%]3KtV|;O[2a=k0P">
                                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                               <field name="OID">wled.0.58bf25d755ca.ps</field>
                                                               <field name="WITH_DELAY">FALSE</field>
                                                               <value name="VALUE">
                                                                 <block type="math_number" id="!KbL$(26t6EDwEHmtizC">
                                                                   <field name="NUM">1</field>
                                                                 </block>
                                                               </value>
                                                               <next>
                                                                 <block type="control" id="v_?KW6ExjY}U8WF.?+aR">
                                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                   <field name="OID">wled.0.58bf25d755ca.bri</field>
                                                                   <field name="WITH_DELAY">FALSE</field>
                                                                   <value name="VALUE">
                                                                     <block type="math_number" id="oLT(I;!S./N4Wzl)S^I[">
                                                                       <field name="NUM">200</field>
                                                                     </block>
                                                                   </value>
                                                                 </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>
        </xml>
        

        Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
        Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

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


        Support us

        ioBroker
        Community Adapters
        Donate

        916

        Online

        32.4k

        Benutzer

        81.5k

        Themen

        1.3m

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

        • Du hast noch kein Konto? Registrieren

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