<xml xmlns="http://www.w3.org/1999/xhtml">
<variables>
<variable type="" id="3Eu!3bSQeipPK#4r!G0o">id</variable>
<variable type="" id=",CKGwqCVMH?=oFfDM}">arry</variable>
<variable type="" id="9,LX9Q_^1Zm.XL]5L%Y">trenner</variable>
<variable type="" id="8;Dav(G.=;Ty+lQ4~[UN">offen</variable>
<variable type="" id="MGbjhMo,|OE]bTX6R79;">offeneFenster</variable>
<variable type="" id="nr)=!dz]y4urXFQ{8{y-">fensterstatus</variable>
</variables>
<block type="procedures_defcustomreturn" id="!N6;}kSECsPgA~=}mQv" x="13" y="13">
<mutation statements="false">
<arg name="id" varid="3Eu!3bSQeipPK#4r!G0o"></arg>
</mutation>
<field name="NAME">getParentName</field>
<field name="SCRIPT">aWYoZ2V0T2JqZWN0KGlkLnN1YnN0cmluZygwLCBpZC5sYXN0SW5kZXhPZignLicpKSkpIHJldHVybiBnZXRPYmplY3QoaWQuc3Vic3RyaW5nKDAsIGlkLmxhc3RJbmRleE9mKCcuJykpKS5jb21tb24ubmFtZTsNCmVsc2UgcmV0dXJuIG51bGw7</field>
<comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
</block>
<block type="procedures_defcustomreturn" id="_(a~5[lFS^_b-QSlk(!i" x="13" y="63">
<mutation statements="false">
<arg name="arry" varid=",CKGwqCVMH?=oFfDM}"></arg>
<arg name="trenner" varid="9,LX9Q_^1Zm.XL]5L%Y"></arg>
</mutation>
<field name="NAME">arry, trenner</field>
<field name="SCRIPT">cmV0dXJuIGFycnkuam9pbih0cmVubmVyKTs=</field>
<comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
</block>
<block type="create" id="OIg#fLBB[3H,hL$]=i6" collapsed="true" disabled="true" x="13" y="113">
<field name="NAME">Fenster.01 Namen Fenster gesamt</field>
<value name="VALUE">
<block type="text" id="0uGx;.-|FIUY~T[9RE">
<field name="TEXT"></field>
</block>
</value>
<value name="COMMON">
<block type="text" id="Gb=2XLFi$IRAgg70dQPQ">
<field name="TEXT">{ "role" : "javascript" , "type" : "string" , "name" : "01 Namen Fenster gesamt"}</field>
</block>
</value>
<next>
<block type="create" id="c.bD4g5uIt~)RNi!X?)=" collapsed="true" disabled="true">
<field name="NAME">Fenster.02 Namen Fenster geoeffnet</field>
<value name="VALUE">
<block type="text" id="9I=!#0aHIo,fsYL+yq{^">
<field name="TEXT"></field>
</block>
</value>
<value name="COMMON">
<block type="text" id="cxAx7%$szNcl]0K_v.MX">
<field name="TEXT">{ "role" : "javascript" , "type" : "string" , "name" : "02 Namen Fenster geoffnet"}</field>
</block>
</value>
<next>
<block type="create" id="0qiGN9NF-oRvp8wFQM~" collapsed="true" disabled="true">
<field name="NAME">Fenster.03 Anzahl Fenster gesamt</field>
<value name="VALUE">
<block type="math_number" id="{%|1/FlMsXeirmo3lSW">
<field name="NUM">0</field>
</block>
</value>
<value name="COMMON">
<block type="text" id="!:l5@]a6d}y%WV+%8gS~">
<field name="TEXT">{ "role" : "javascript" , "type" : "number" , "name" : "03 Anzahl Fenster gesamt"}</field>
</block>
</value>
<next>
<block type="create" id="Z#r!5]]x^7b@iR79;qbo" collapsed="true" disabled="true">
<field name="NAME">Fenster.04 Anzahl Fenster geöffnet</field>
<value name="VALUE">
<block type="math_number" id=";iw1Jw/N}]Gyb.fp[y;!">
<field name="NUM">0</field>
</block>
</value>
<value name="COMMON">
<block type="text" id="a=Q@EL=n5b2cAy4z(gTX">
<field name="TEXT">{ "role" : "javascript" , "type" : "number" , "name" : "04 Anzahl Fenster geöffnet"}</field>
</block>
</value>
<next>
<block type="on_ext" id="q8A38W=#;PI{7f/}3pqI">
<mutation items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="5Y$(^lu{[^5]ux3oE+(">
<field name="oid">default</field>
</shadow>
<block type="selector" id="lhBGb7A6n[vUm1?Q#tC+">
<field name="TEXT">channel[state.id=*.STATE](functions="Fenster")</field>
</block>
</value>
<statement name="STATEMENT">
<block type="variables_set" id="M^)J@MhBGJS!N;hY,^tc">
<field name="VAR" id="8;Dav(G.=;Ty+lQ4~[UN" variabletype="">offen</field>
<value name="VALUE">
<block type="math_number" id="=2`ow)6XfsM-n)E]yDzR">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="variables_set" id="V76SnD(J:]StsJEtbVz1">
<field name="VAR" id="MGbjhMo,|OE]bTX6R79;" variabletype="">offeneFenster</field>
<value name="VALUE">
<block type="lists_create_with" id="b8ioqn=SAEc1o-rN,2;w">
<mutation items="0"></mutation>
</block>
</value>
<next>
<block type="comment" id="x)cdqU;pSNia.p)MHeL~">
<field name="COMMENT">channelstate.id=.STATE</field>
<next>
<block type="controls_forEach" id="Eb!ly!|dTn,Zqy9edjG$">
<field name="VAR" id="nr)=!dz]y4urXFQ{8{y-" variabletype="">fensterstatus</field>
<value name="LIST">
<block type="selector" id="W^U2V|c!N.-9APmp;}zj">
<field name="TEXT">channel[state.id=*.STATE](functions="Fenster")</field>
</block>
</value>
<statement name="DO">
<block type="controls_if" id="tq_Th[d(pZtxt2T-LrO">
<value name="IF0">
<block type="logic_compare" id="FYP=~;)uQu!a5|]KMNd/">
<field name="OP">NEQ</field>
<value name="A">
<block type="get_value_var" id="j,y|JnaJz:sb,i(9oe^C">
<field name="ATTR">val</field>
<value name="OID">
<shadow type="text" id="pmOdHJq595YI/$n-u^$">
<field name="TEXT"></field>
</shadow>
<block type="variables_get" id=";=A)49}3Eqx{}^5CS[z">
<field name="VAR" id="nr)=!dz]y4urXFQ{8{y-" variabletype="">fensterstatus</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="math_number" id="HQSbp;V,L:xNvI$lI=t!">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="lists_setIndex" id="F!KR3Rxr/RH5YL}J~$T">
<mutation at="true"></mutation>
<field name="MODE">SET</field>
<field name="WHERE">FROM_START</field>
<value name="LIST">
<block type="variables_get" id="H2NstO2,gntow{QM%=|x">
<field name="VAR" id="MGbjhMo,|OE]bTX6R79;" variabletype="">offeneFenster</field>
</block>
</value>
<value name="AT">
<block type="math_arithmetic" id="TMNFe_GH3BtOrEKv0F">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number" id=")43ylUFXJ=jhc.9$m7Oo">
<field name="NUM">1</field>
</shadow>
<block type="lists_length" id="z-3zZ!%o$CO(mZ|w%1">
<value name="VALUE">
<block type="variables_get" id="S+LKJSv_LdS?FEs=^M.]">
<field name="VAR" id="MGbjhMo,|OE]bTX6R79;" variabletype="">offeneFenster</field>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="Z8e6TaXp%{0QY4q4f!Ys">
<field name="NUM">1</field>
</shadow>
</value>
</block>
</value>
<value name="TO">
<block type="procedures_callcustomreturn" id="ToXniOfG/14/-A[2WP[s">
<mutation name="getParentName">
<arg name="id"></arg>
</mutation>
<value name="ARG0">
<block type="variables_get" id=":c,lS[6P:[gP#El9/bp+">
<field name="VAR" id="nr)=!dz]y4urXFQ{8{y-" variabletype="">fensterstatus</field>
</block>
</value>
</block>
</value>
<next>
<block type="math_change" id="bFhp9q/}?hTL~xKCD7Hg">
<field name="VAR" id="8;Dav(G.=;Ty+lQ4~[UN" variabletype="">offen</field>
<value name="DELTA">
<shadow type="math_number" id="X|[O^LD`;2L%%Pxc`GHG">
<field name="NUM">1</field>
</shadow>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
<next>
<block type="comment" id="rKl;D1t@2R1Q5B_at,qe">
<field name="COMMENT">Telegram Block</field>
<next>
<block type="controls_if" id="k=c@dd%t(al[|eGKV2lq">
<mutation elseif="2"></mutation>
<value name="IF0">
<block type="logic_compare" id="$Lr~g!sPrDD]U#xE5e8c">
<field name="OP">EQ</field>
<value name="A">
<block type="lists_length" id="bKDrS3vksWj,gJD_M_Kf">
<value name="VALUE">
<block type="variables_get" id=".6oPn_hEeUJB?16^9a{">
<field name="VAR" id="MGbjhMo,|OE]bTX6R79;" variabletype="">offeneFenster</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="math_number" id="9VJhYUb/ECM?6Havyv$Q">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="telegram" id="D8xCB2b:9I#Q!|WofLFh">
<field name="INSTANCE"></field>
<field name="LOG"></field>
<field name="SILENT">FALSE</field>
<field name="PARSEMODE">default</field>
<value name="MESSAGE">
<shadow type="text" id="#Woh%x_kVf$RDE3.50nO">
<field name="TEXT">text</field>
</shadow>
<block type="text_join" id="%CH?lT]|q4-]#r:W_ib@">
<mutation items="6"></mutation>
<value name="ADD0">
<block type="text" id="0JmYk15,VjTA5jDTGZyr">
<field name="TEXT">☝️ aktuell ist: </field>
</block>
</value>
<value name="ADD1">
<block type="variables_get" id="({Awi[4sRPc:Ub,gd.">
<field name="VAR" id="8;Dav(G.=;Ty+lQ4~[UN" variabletype="">offen</field>
</block>
</value>
<value name="ADD2">
<block type="text" id="5m+yQjTJDs:#U:rpyvZ">
<field name="TEXT"> Fenster geöffnet ☝️</field>
</block>
</value>
<value name="ADD3">
<block type="text_newline" id="%CsT:=)P~HPzY9fgrWkS">
<field name="Type">\n</field>
</block>
</value>
<value name="ADD4">
<block type="text_newline" id="puqhDLJGe3===^fovay">
<field name="Type">\n</field>
</block>
</value>
<value name="ADD5">
<block type="procedures_callcustomreturn" id="-sZVA9Z2QD=LjYtAE^QY">
<mutation name="arry, trenner">
<arg name="arry"></arg>
<arg name="trenner"></arg>
</mutation>
<value name="ARG0">
<block type="lists_sort" id="79ivE:8LLowj:VGR|cv" inline="false">
<field name="TYPE">TEXT</field>
<field name="DIRECTION">1</field>
<value name="LIST">
<block type="variables_get" id="~JA:S%RDqagjIPoV$@ss">
<field name="VAR" id="MGbjhMo,|OE]bTX6R79;" variabletype="">offeneFenster</field>
</block>
</value>
</block>
</value>
<value name="ARG1">
<block type="text_newline" id="H|K0hoa6=#UlT=gIE1:b">
<field name="Type">\n</field>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="USERNAME">
<block type="text" id="pwh7XK+e$)YJB,;Q%`^8">
<field name="TEXT">Heiko</field>
</block>
</value>
</block>
</statement>
<value name="IF1">
<block type="logic_compare" id="^r7vSJWGyr@A_e%Vy)eM">
<field name="OP">GT</field>
<value name="A">
<block type="lists_length" id="q91QnyC0C,YCweq:bGvK">
<value name="VALUE">
<block type="variables_get" id="^VX@dVPVuEA]:M8zsSFi">
<field name="VAR" id="MGbjhMo,|OE]bTX6R79;" variabletype="">offeneFenster</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="math_number" id="|Gv6ALNA2zPwNZ/AGR/}">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="telegram" id="a6N@ooKI;-.C4z;klL4u">
<field name="INSTANCE"></field>
<field name="LOG"></field>
<field name="SILENT">FALSE</field>
<field name="PARSEMODE">default</field>
<value name="MESSAGE">
<shadow type="text" id="#Woh%x_kVf$RDE3.50nO">
<field name="TEXT">text</field>
</shadow>
<block type="text_join" id="MhdNjpC#a4uSQS*(=gh:" inline="false">
<mutation items="6"></mutation>
<value name="ADD0">
<block type="text" id="[Y%DCO!6SPg_UsZQlbT">
<field name="TEXT">☝️ aktuell sind: </field>
</block>
</value>
<value name="ADD1">
<block type="variables_get" id="xoAV1[0_}d+ejdZoWPz">
<field name="VAR" id="8;Dav(G.=;Ty+lQ4~[UN" variabletype="">offen</field>
</block>
</value>
<value name="ADD2">
<block type="text" id="6x]03ZP8/omCs:)*EV">
<field name="TEXT"> Fenster geöffnet ☝️</field>
</block>
</value>
<value name="ADD3">
<block type="text_newline" id="3hIEATq;%U?|b^nPOqR">
<field name="Type">\n</field>
</block>
</value>
<value name="ADD4">
<block type="text_newline" id="yC+/W5y[sm53$:s_Zf">
<field name="Type">\n</field>
</block>
</value>
<value name="ADD5">
<block type="procedures_callcustomreturn" id="gu;dy_omfas#mbVJ^Yab">
<mutation name="arry, trenner">
<arg name="arry"></arg>
<arg name="trenner"></arg>
</mutation>
<value name="ARG0">
<block type="lists_sort" id="T2[T)|{(Upaupaqhth:u" inline="false">
<field name="TYPE">TEXT</field>
<field name="DIRECTION">1</field>
<value name="LIST">
<block type="variables_get" id=":h!Z$fs-MDD4Qo7)!f^N">
<field name="VAR" id="MGbjhMo,|OE]bTX6R79;" variabletype="">offeneFenster</field>
</block>
</value>
</block>
</value>
<value name="ARG1">
<block type="text_newline" id="QP[i~W5vbJUwelId|WL8">
<field name="Type">\n</field>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="USERNAME">
<block type="text" id="*~4%jz;f4QfvecOMERz`">
<field name="TEXT">Heiko</field>
</block>
</value>
</block>
</statement>
<value name="IF2">
<block type="logic_compare" id="xV,7Iiu2SeB,7Z`@ubuC">
<field name="OP">EQ</field>
<value name="A">
<block type="lists_length" id="BTD)uUCWQ;$poZ?oECc]">
<value name="VALUE">
<block type="variables_get" id="L3x/b?ZyRWYI^bjl:nlj">
<field name="VAR" id="MGbjhMo,|OE]bTX6R79;" variabletype="">offeneFenster</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="math_number" id="%6}|t(IYG+i,3yhzZyoz">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<statement name="DO2">
<block type="telegram" id="MRPV=Xqhfy)x]0x)vkxc">
<field name="INSTANCE"></field>
<field name="LOG"></field>
<field name="SILENT">FALSE</field>
<field name="PARSEMODE">default</field>
<value name="MESSAGE">
<shadow type="text" id="#Woh%x_kVf$RDE3.50nO">
<field name="TEXT">text</field>
</shadow>
<block type="text" id=":#rPqk#wb+Si.uPfI+xg">
<field name="TEXT"> 🔒 alle Fenster im Haus sind geschlossen 🔒</field>
</block>
</value>
<value name="USERNAME">
<block type="text" id="6Wifx}FP`TDI,]UWSGaV">
<field name="TEXT">Heiko</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</xml>