NEWS
2 BWM/5 Lichtquellen/Speer-&Zeit-Datenpunkt
-
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:
- 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).
- 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)).
- Wenn ich ZentralAus kurz Trigger soll alles ausgehen
- Wenn Nachtlich false soll Wled-Duschenische geschaltet werden wenn Badezimmer Bad angehen.
Hier mal der Aktuellestand.
<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>```
-
-