<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable type="timeout" id="Licht Aus">Licht Aus</variable>
</variables>
<block type="comment" id="es*V;%[=`!uyW37p^P.b" x="-438" y="-112">
<field name="COMMENT">Badezimmerlicht</field>
<next>
<block type="on_ext" id="vgj?29Ue*`+-Htj|w_sS">
<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="71PP(qs[Ge#*$5*?c|Y_">
<field name="oid">deconz.0.Sensors.5.presence</field>
</shadow>
</value>
<value name="OID1">
<shadow type="field_oid" id="KT-k{RM}M8#7*sGgyKp~">
<field name="oid">deconz.0.Sensors.7.open</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="comment" id="L-A(Ry8;LC`7Qi+tdG[M">
<field name="COMMENT">Prüfblock: wenn der BWM</field>
<next>
<block type="comment" id="X,4]S[V}KPax;H16NR$=">
<field name="COMMENT">oder der Türkontakt geschlossen wird soll der</field>
<next>
<block type="comment" id="VepdCD#EyK~J8L.=]0kZ">
<field name="COMMENT">Shelly das Licht einschalten</field>
<next>
<block type="controls_if" id="wiw9bz9,Tc=mN;Hh~Zsg">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_operation" id="~x`]zj|pp;Q3?0.?v4Lu" inline="false">
<field name="OP">OR</field>
<value name="A">
<block type="logic_compare" id="z-q=*5Gg~j3Gn]N~5xBB">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value_var" id=":M{vVdF*a`9TaTB#F{g2">
<field name="ATTR">val</field>
<value name="OID">
<shadow type="text" id="s5@m5.bE9Or#vhwX{K=j">
<field name="TEXT"></field>
</shadow>
<block type="field_oid" id="CbVsy):,F(01tjxKMgX+">
<field name="oid">deconz.0.Sensors.5.presence</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="O5N3:4IX^Tm0y3qs*z@]">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="xfWy?f,*}GqF+*FDLc5w">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value_var" id="uD/%)V)iLyNmpQk:;(EJ">
<field name="ATTR">val</field>
<value name="OID">
<shadow type="text">
<field name="TEXT"></field>
</shadow>
<block type="field_oid" id="co4H+NnWWvFd$XpStQ3U">
<field name="oid">deconz.0.Sensors.7.open</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="iS-i9n[I]=OiKO9#IzA+">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="Q9gK`s6q}ZOjhs9.r3MH">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">shelly.1.shellyplus1#a8032abdb6c0#1.Relay0.Switch</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="TcZ6mK9]DRil!huMM)q7">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="timeouts_cleartimeout" id="oYzzAHTksc:W(Y#d:Cyb">
<field name="NAME">Licht Aus</field>
</block>
</next>
</block>
</statement>
<statement name="ELSE">
<block type="timeouts_settimeout" id="2n:4.indg0]^|P9yq,`j">
<field name="NAME">Licht Aus</field>
<field name="DELAY">40</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="control" id="}/HAt|cjcWM%7PJ}-;57">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">shelly.1.shellyplus1#a8032abdb6c0#1.Relay0.Switch</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="L2Ow#|XO4k|-1t9Aex6E">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</xml>