<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="*@#O`4um.(3hbA:(zHv7">rollos</variable>
<variable id="/!l]R_6qje~AC4QCtkJt">Tuer_geschlossen</variable>
<variable id=")z%f,tXn?!GbC|5$y{mm">rollo</variable>
</variables>
<block type="procedures_defnoreturn" id=",yKUl=3lGi+KjS5=;_Y#" x="187" y="-137">
<mutation>
<arg name="rollos" varid="*@#O`4um.(3hbA:(zHv7"></arg>
</mutation>
<field name="NAME">Fenster</field>
<comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
<statement name="STACK">
<block type="control" id="(3@GeX5GEZz|lAd.m$4{">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">hm-rpc.0.OEQ0892796.1.LEVEL</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">5</field>
<field name="UNIT">sec</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="UxT/HO0c!o{kB*(q!Ro4">
<field name="VAR" id="*@#O`4um.(3hbA:(zHv7">rollos</field>
</block>
</value>
<next>
<block type="control" id="?e[?w5,ltw.N-`2SC?s4">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">hm-rpc.0.OEQ0984789.1.LEVEL</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">10</field>
<field name="UNIT">sec</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="bSWRp{e8.#7C|qx$3u$o">
<field name="VAR" id="*@#O`4um.(3hbA:(zHv7">rollos</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
<block type="comment" id="-/:MDED2QW:auM;grBXD" x="63" y="-13">
<field name="COMMENT">Terassentür</field>
<next>
<block type="variables_set" id="D}sjfjpWsoRYQO]|WP!I">
<field name="VAR" id="/!l]R_6qje~AC4QCtkJt">Tuer_geschlossen</field>
<value name="VALUE">
<block type="logic_negate" id="A[dLLmlj+p6?TQGiZ~(4">
<value name="BOOL">
<block type="get_value" id="3HS,N8V{-|s6ijN]Rn{C">
<field name="ATTR">val</field>
<field name="OID">zigbee.0.00158d0002394252.opened</field>
</block>
</value>
</block>
</value>
<next>
<block type="on_ext" id="Fie!sxd/K|0_HFnhBbYh">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="/Iv)*899]Z6.,:_bpq1:">
<field name="oid">zigbee.0.00158d0002394252.opened</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="variables_set" id="U7C~jo=R(O.Q]EHu_|uu">
<field name="VAR" id="/!l]R_6qje~AC4QCtkJt">Tuer_geschlossen</field>
<value name="VALUE">
<block type="logic_negate" id="qJ=6#~`c#a}$R55TP[h{">
<value name="BOOL">
<block type="on_source" id="VG[E-RtgZu*JIL|4|){-">
<field name="ATTR">state.val</field>
</block>
</value>
</block>
</value>
<next>
<block type="procedures_callnoreturn" id="a=6aT_B7e^4fjS*BrfSr">
<mutation name="Terasse"></mutation>
</block>
</next>
</block>
</statement>
<next>
<block type="schedule" id="7qaQ}i:{``qvajje5=iB">
<field name="SCHEDULE">0 0 * * *</field>
<statement name="STATEMENT">
<block type="procedures_callnoreturn" id=")|YAW$Q@6?I9^3N+*[K-">
<mutation name="Terasse"></mutation>
</block>
</statement>
<next>
<block type="astro" id="$4Hlxa1h2e%RB3300)SG">
<field name="TYPE">sunrise</field>
<field name="OFFSET">0</field>
<statement name="STATEMENT">
<block type="procedures_callnoreturn" id="/)KMjI==#):Ad8M)xO(+">
<mutation name="Terasse"></mutation>
<next>
<block type="procedures_callnoreturn" id="0xSwd=wq5)R)5{*X^w_W">
<mutation name="Fenster">
<arg name="rollos"></arg>
</mutation>
<value name="ARG0">
<block type="math_number" id="G3=%sL8e$TU2X{LMl+R@">
<field name="NUM">100</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="astro" id="hr!AEW}qu`Jml+2ZvLk.">
<field name="TYPE">sunset</field>
<field name="OFFSET">0</field>
<statement name="STATEMENT">
<block type="controls_if" id="=?wrUl;5J?$mkZiA8yQ2">
<value name="IF0">
<block type="variables_get" id="W6mJ%^$5A3]AhtY_PHa=">
<field name="VAR" id="/!l]R_6qje~AC4QCtkJt">Tuer_geschlossen</field>
</block>
</value>
<statement name="DO0">
<block type="control" id="SsQHo]fQo/QSLc%#-7X,">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">hm-rpc.0.OEQ0890233.1.LEVEL</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="-J0OO$VB^v.,fu-gZ|W,">
<field name="NUM">50</field>
</block>
</value>
</block>
</statement>
<next>
<block type="procedures_callnoreturn" id="?(e@N)=e]I](Ye)C)E3k">
<mutation name="Fenster">
<arg name="rollos"></arg>
</mutation>
<value name="ARG0">
<block type="math_number" id="(o3sBX/eF)7k=$gUuUId">
<field name="NUM">0</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
<block type="procedures_defnoreturn" id="wo(Y;N%mzX+yCkH]((4j" x="563" y="37">
<field name="NAME">Terasse</field>
<comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
<statement name="STACK">
<block type="controls_if" id="lye}(Uf^OOlR.q_wqODd">
<mutation else="1"></mutation>
<value name="IF0">
<block type="variables_get" id=")wt~2gD21p,,(r)3b/p/">
<field name="VAR" id="/!l]R_6qje~AC4QCtkJt">Tuer_geschlossen</field>
</block>
</value>
<statement name="DO0">
<block type="controls_if" id="apbCYld@f*hNkG!K!9B/">
<mutation elseif="1" else="1"></mutation>
<value name="IF0">
<block type="time_compare_ex" id="+T^/t5E@+miHRsP%5(0C">
<mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
<field name="USE_ACTUAL_TIME">TRUE</field>
<field name="OPTION">between</field>
<value name="START_TIME">
<shadow type="text" id="cmp`:7nDHp#SkiQS9~Vo">
<field name="TEXT">00:00</field>
</shadow>
</value>
<value name="END_TIME">
<shadow type="text" id="eYiS:sH(tR$9:zp:7.xk">
<field name="TEXT">18:00</field>
</shadow>
<block type="time_astro" id="9|X]D;PEAk}pKE[C^*1k">
<field name="TYPE">sunrise</field>
<field name="OFFSET">0</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="cw^sWVV`j/u9-*=%}%g9">
<field name="VAR" id=")z%f,tXn?!GbC|5$y{mm">rollo</field>
<value name="VALUE">
<block type="math_number" id="@mDqzU4[BZ_F/%V6TgT;">
<field name="NUM">0</field>
</block>
</value>
</block>
</statement>
<value name="IF1">
<block type="time_compare_ex" id="-#nKTwO-I/o;7y6`Q%j#">
<mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
<field name="USE_ACTUAL_TIME">TRUE</field>
<field name="OPTION">between</field>
<value name="START_TIME">
<shadow type="text" id=".3t^vi/WEW7X?9qc.%_p">
<field name="TEXT">12:00</field>
</shadow>
<block type="time_astro" id="_tKh1:X/:U34[)!|f-}y">
<field name="TYPE">sunset</field>
<field name="OFFSET">0</field>
</block>
</value>
<value name="END_TIME">
<shadow type="text" id="Xs}+?ybgrq,t5Kzf+fi@">
<field name="TEXT">23:59</field>
</shadow>
</value>
</block>
</value>
<statement name="DO1">
<block type="variables_set" id="+%SZpEO4]z-[rKTPn%qJ">
<field name="VAR" id=")z%f,tXn?!GbC|5$y{mm">rollo</field>
<value name="VALUE">
<block type="math_number" id="vCitva3e^LqNap_e$,_J">
<field name="NUM">50</field>
</block>
</value>
</block>
</statement>
<statement name="ELSE">
<block type="variables_set" id="O)#e{L+{Xxn)0jxLaLJC">
<field name="VAR" id=")z%f,tXn?!GbC|5$y{mm">rollo</field>
<value name="VALUE">
<block type="math_number" id="tbRPn]EoyUx]6s8PVZKn">
<field name="NUM">100</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
<statement name="ELSE">
<block type="variables_set" id="!s`9SPBMy,E$T5UQ%ntN">
<field name="VAR" id=")z%f,tXn?!GbC|5$y{mm">rollo</field>
<value name="VALUE">
<block type="math_number" id="s0rvX,5[7O~77.CLaxjX">
<field name="NUM">100</field>
</block>
</value>
</block>
</statement>
<next>
<block type="controls_if" id="UaT2d8c+20#@j(l-n*m6">
<value name="IF0">
<block type="logic_compare" id="gl_8cIu(2q`4JSC(:^M=">
<field name="OP">NEQ</field>
<value name="A">
<block type="variables_get" id="-QktzY|DANqS52y2rp[]">
<field name="VAR" id=")z%f,tXn?!GbC|5$y{mm">rollo</field>
</block>
</value>
<value name="B">
<block type="get_value" id="w%P1z,02~]Z|gtJfw7Eq">
<field name="ATTR">val</field>
<field name="OID">hm-rpc.0.OEQ0890233.1.LEVEL</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="0yB4wra11;C:BMU+[}_^">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">hm-rpc.0.OEQ0890233.1.LEVEL</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="m]umWgjv;77bN{ls?3Y~">
<field name="VAR" id=")z%f,tXn?!GbC|5$y{mm">rollo</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</xml>