<xml xmlns="http://www.w3.org/1999/xhtml">
<variables>
<variable type="" id="E-2Ms[EQ*lEe7IRh*cIa">id</variable>
<variable type="" id=",CKGwqCVMH?=oFfDM}">arry</variable>
<variable type="" id="9,LX9Q_^1Zm.XL]5L%Y">trenner</variable>
<variable type="" id="s^g_cd%U/.iiN#+uA0!:">Anzahl_Licht_aktiv</variable>
<variable type="" id="rtfLle*]f_K|%$KK)r9i">Anzahl_Licht_gesamt</variable>
<variable type="" id="kf.|gUBRrt]]ET/7VV`i">Licht_eingeschaltet_Liste</variable>
<variable type="" id="?Iruv;}=6m-+T=![x@`H">Licht_gesamt_Liste</variable>
<variable type="" id="M#.~fDd[/KAfhHH%W2-K">Licht_html_Liste</variable>
<variable type="" id="HYyl#n^=-9$2h^y`Y;N?">htmlText</variable>
<variable type="" id="6iOe8s0aT$XGy[cfPo]I">Licht</variable>
</variables>
<block type="procedures_defcustomreturn" id="!N6;}kSECsPgA~=}mQv" x="13" y="13">
<mutation statements="false">
<arg name="id" varid="E-2Ms[EQ*lEe7IRh*cIa"></arg>
</mutation>
<field name="NAME">getParentName</field>
<field name="SCRIPT">dmFyIG9iaiA9IGdldE9iamVjdChpZCk7DQp2YXIgbmFtZSA9IGdldE9iamVjdChpZCkuY29tbW9uLm5hbWU7DQp2YXIgZGV2aWNlbmFtZSA9IG5hbWUuc3Vic3RyaW5nKDAsIG5hbWUuaW5kZXhPZigiLnN0YXR1cyIpKTsgLy8uc3RhdHVzIGF1cyBUZXh0IGVudGZlcm5lbg0KcmV0dXJuIGdldE9iamVjdChpZCkuY29tbW9uLm5hbWU7KDAsIG5hbWUuaW5kZXhPZigiLnN0YXR1cyIpKTsNCg0KDQovL2lmKGdldE9iamVjdChpZC5zdWJzdHJpbmcoMCwgaWQubGFzdEluZGV4T2YoJy4nKSkpKSByZXR1cm4gZ2V0T2JqZWN0KGlkLnN1YnN0cmluZygwLCBpZC5sYXN0SW5kZXhPZignLicpKSkuY29tbW9uLm5hbWU7DQovL2Vsc2UgcmV0dXJuIG51bGw7DQovL2lmKGV4aXN0c09iamVjdChpZCkpIHJldHVybiBnZXRPYmplY3QoaWQpLmNvbW1vbi5uYW1lOw==</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="procedures_defcustomnoreturn" id="EJhG@Zv:/.r@(DzIU,:6" x="13" y="113">
<mutation statements="false"></mutation>
<field name="NAME">Datenpunkte_erstellen</field>
<field name="SCRIPT">LyoqCiAqIENyZWF0ZSBzdGF0ZXMgdW5kZXIgMF91c2VyZGF0YS4wIG9yIGphdmFzY3JpcHQueAogKiBDdXJyZW50IFZlcnNpb246ICAgICBodHRwczovL2dpdGh1Yi5jb20vTWljLU0vaW9icm9rZXIuY3JlYXRlVXNlclN0YXRlcwogKiBTdXBwb3J0OiAgICAgICAgICAgICBodHRwczovL2ZvcnVtLmlvYnJva2VyLm5ldC90b3BpYy8yNjgzOS8KICogQXV0b3I6ICAgICAgICAgICAgICAgTWljIChpb0Jyb2tlcikgfCBNaWMtTSAoZ2l0aHViKQogKiBWZXJzaW9uOiAgICAgICAgICAgICAxLjAgKDE3IEphbnVhcnkgMjAyMCkKICogRXhhbXBsZToKICogLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0KICAgIGxldCBzdGF0ZXNUb0NyZWF0ZSA9IFsKICAgICAgICBbJ1Rlc3QuVGVzdDEnLCB7J25hbWUnOidUZXN0IDEnLCAndHlwZSc6J3N0cmluZycsICd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gICAgaWYoIWZvcmNlKSB7CiAgICAgICAgICAgICAgICAvLyBTdGF0ZSBleGlzdHMgYW5kIHNoYWxsIG5vdCBiZSBvdmVyd3JpdHRlbiBzaW5jZSBmb3JjZT1mYWxzZQogICAgICAgICAgICAgICAgLy8gU28sIHdlIGRvIG5vdCBwcm9jZWVkLgogICAgICAgICAgICAgICAgbnVtU3RhdGVzLS07CiAgICAgICAgICAgICAgICBpZiAobnVtU3RhdGVzID09PSAwKSB7CiAgICAgICAgICAgICAgICAgICAgaWYgKExPR19ERUJVRykgbG9nKCdbRGVidWddIEFsbCBzdGF0ZXMgc3VjY2Vzc2Z1bGx5IHByb2Nlc3NlZCEnKTsKICAgICAgICAgICAgICAgICAgICBpZiAodHlwZW9mIGNhbGxiYWNrID09PSAnZnVuY3Rpb24nKSB7IC8vIGV4ZWN1dGUgaWYgYSBmdW5jdGlvbiB3YXMgcHJvdmlkZWQgdG8gcGFyYW1ldGVyIGNhbGxiYWNrCiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChMT0dfREVCVUcpIGxvZygnW0RlYnVnXSBBbiBvcHRpb25hbCBjYWxsYmFjayBmdW5jdGlvbiB3YXMgcHJvdmlkZWQsIHdoaWNoIHdlIGFyZSBnb2luZyB0byBleGVjdXRlIG5vdy4nKTsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGNhbGxiYWNrKCk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICAvLyBXZSBuZWVkIHRvIGdvIG91dCBhbmQgY29udGludWUgd2l0aCBuZXh0IGVsZW1lbnQgaW4gbG9vcC4KICAgICAgICAgICAgICAgICAgICByZXR1cm47IC8vIGh0dHBzOi8vc3RhY2tvdmVyZmxvdy5jb20vcXVlc3Rpb25zLzE4NDUyOTIwL2NvbnRpbnVlLWluLWN1cnNvci1mb3JlYWNoCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0gLy8gaWYoIWZvcmNlKQogICAgICAgIH0KCiAgICAgICAgLyoqKioqKioqKioqKgogICAgICAgICAqIFN0YXRlIGlzIG5vdCBleGlzdGluZyBvciBmb3JjZSA9IHRydWUsIHNvIHdlIGFyZSBjb250aW51aW5nIHRvIGNyZWF0ZSB0aGUgc3RhdGUgdGhyb3VnaCBzZXRPYmplY3QoKS4KICAgICAgICAgKioqKioqKioqKioqLwogICAgICAgIGxldCBvYmogPSB7fTsKICAgICAgICBvYmoudHlwZSA9ICdzdGF0ZSc7CiAgICAgICAgb2JqLm5hdGl2ZSA9IHt9OwogICAgICAgIG9iai5jb21tb24gPSBwYXJhbVsxXTsKICAgICAgICBzZXRPYmplY3QoRlVMTF9TVEFURV9JRCwgb2JqLCBmdW5jdGlvbiAoZXJyKSB7CiAgICAgICAgICAgIGlmIChlcnIpIHsKICAgICAgICAgICAgICAgIGxvZygnQ2Fubm90IHdyaXRlIG9iamVjdCBmb3Igc3RhdGUgWycgKyBGVUxMX1NUQVRFX0lEICsgJ106ICcgKyBlcnIpOwogICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgaWYgKExPR19ERUJVRykgbG9nKCdbRGVidWddIE5vdyB3ZSBhcmUgY3JlYXRpbmcgbmV3IHN0YXRlIFsnICsgRlVMTF9TVEFURV9JRCArICddJykKICAgICAgICAgICAgICAgIGxldCBpbml0ID0gbnVsbDsKICAgICAgICAgICAgICAgIGlmKHBhcmFtWzFdLmRlZiA9PT0gdW5kZWZpbmVkKSB7CiAgICAgICAgICAgICAgICAgICAgaWYocGFyYW1bMV0udHlwZSA9PT0gJ251bWJlcicpIGluaXQgPSAwOwogICAgICAgICAgICAgICAgICAgIGlmKHBhcmFtWzFdLnR5cGUgPT09ICdib29sZWFuJykgaW5pdCA9IGZhbHNlOwogICAgICAgICAgICAgICAgICAgIGlmKHBhcmFtWzFdLnR5cGUgPT09ICdzdHJpbmcnKSBpbml0ID0gJyc7CiAgICAgICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgICAgIGluaXQgPSBwYXJhbVsxXS5kZWY7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICBzZXRUaW1lb3V0KGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgICAgIHNldFN0YXRlKEZVTExfU1RBVEVfSUQsIGluaXQsIHRydWUsIGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgICAgICAgICBpZiAoTE9HX0RFQlVHKSBsb2coJ1tEZWJ1Z10gc2V0U3RhdGUgZHVyY2hnZWbDvGhydDogJyArIEZVTExfU1RBVEVfSUQpOwogICAgICAgICAgICAgICAgICAgICAgICBudW1TdGF0ZXMtLTsKICAgICAgICAgICAgICAgICAgICAgICAgaWYgKG51bVN0YXRlcyA9PT0gMCkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKExPR19ERUJVRykgbG9nKCdbRGVidWddIEFsbCBzdGF0ZXMgcHJvY2Vzc2VkLicpOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHR5cGVvZiBjYWxsYmFjayA9PT0gJ2Z1bmN0aW9uJykgeyAvLyBleGVjdXRlIGlmIGEgZnVuY3Rpb24gd2FzIHByb3ZpZGVkIHRvIHBhcmFtZXRlciBjYWxsYmFjawogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChMT0dfREVCVUcpIGxvZygnW0RlYnVnXSBGdW5jdGlvbiB0byBjYWxsYmFjayBwYXJhbWV0ZXIgd2FzIHByb3ZpZGVkJyk7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGNhbGxiYWNrKCk7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgIH0sIERFTEFZICsgKDIwICogY291bnRlcikgKTsKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgfSk7Cn0KCmxldCBzdGF0Z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OicwNUxpY2h0X2h0bWxfTGlzdGUnLCAndHlwZSc6J3N0cmluZycsICdyZWFkJzp0cnVlLCAnd3JpdGUnOmZhbHNlLCAncm9sZSc6J3N0cmluZycsICdkZWYnOidub2NoIGxlZXInIH1dLAogICAgCl07ICAgIApjcmVhdGVVc2VyU3RhdGVzKCcwX3VzZXJkYXRhLjAnLCB0cnVlLCBzdGF0ZXNUb0NyZWF0ZSk7Cg==</field>
<comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
</block>
<block type="variables_set" id="m{3CIJBGWgyR970.R?.8" x="13" y="163">
<field name="VAR" id="s^g_cd%U/.iiN#+uA0!:" variabletype="">Anzahl_Licht_aktiv</field>
<value name="VALUE">
<block type="math_number" id="@{xLucodgvjj5zwTIk+E">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="variables_set" id="e??qlY4^1C,ST6I3@3Oo">
<field name="VAR" id="rtfLle*]f_K|%$KK)r9i" variabletype="">Anzahl_Licht_gesamt</field>
<value name="VALUE">
<block type="math_number" id="_sj},NBYrXSWN8fg!cTK">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="variables_set" id="|:0:NXviBH3ts|PxK|E[">
<field name="VAR" id="kf.|gUBRrt]]ET/7VV`i" variabletype="">Licht_eingeschaltet_Liste</field>
<value name="VALUE">
<block type="lists_create_with" id="Bqe9#!`.vRu+(AZe8J2#">
<mutation items="0"></mutation>
</block>
</value>
<next>
<block type="variables_set" id="ch;k==7_X11LA3[*__@n">
<field name="VAR" id="?Iruv;}=6m-+T=![x@`H" variabletype="">Licht_gesamt_Liste</field>
<value name="VALUE">
<block type="lists_create_with" id="Ps*.9B^QUD?wJtCnX8jL">
<mutation items="0"></mutation>
</block>
</value>
<next>
<block type="variables_set" id="Ze3P{Jv`0,K34)]|4A8x">
<field name="VAR" id="M#.~fDd[/KAfhHH%W2-K" variabletype="">Licht_html_Liste</field>
<value name="VALUE">
<block type="lists_create_with" id="PnK._4y#V:}^D10q36@I">
<mutation items="0"></mutation>
</block>
</value>
<next>
<block type="procedures_callcustomnoreturn" id="X+4?!FV=R(MUJl~Yi2L.">
<mutation name="Datenpunkte_erstellen"></mutation>
<next>
<block type="on_ext" id="hafx;Y{*x?Xn(,sMW.+n">
<mutation items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="#4w([E@;X_!loV@[Dy]:">
<field name="oid">default</field>
</shadow>
<block type="selector" id="+{AR;_jRS67rU:cIQl%?">
<field name="TEXT">[state.id=status](functions='Licht')</field>
</block>
</value>
<statement name="STATEMENT">
<block type="procedures_callnoreturn" id="QJuBUpjNYuwQ!8_Znd@2">
<mutation name="zaehlen"></mutation>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
<block type="procedures_defnoreturn" id="wVnH5gPZuaAiu?7AnlcP" x="13" y="588">
<field name="NAME">zaehlen</field>
<comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
<statement name="STACK">
<block type="variables_set" id="p=KHiUK+Y+|fQ)HcFDyO">
<field name="VAR" id="s^g_cd%U/.iiN#+uA0!:" variabletype="">Anzahl_Licht_aktiv</field>
<value name="VALUE">
<block type="math_number" id="[jU@VEbQfpj$4AXB1Hf1">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="variables_set" id="P.1UaFjJOJP+NHRlsqPK">
<field name="VAR" id="rtfLle*]f_K|%$KK)r9i" variabletype="">Anzahl_Licht_gesamt</field>
<value name="VALUE">
<block type="math_number" id=".Bxds~9rDXplhV2C)}x.">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="variables_set" id=",I)$oiHDlf!``82c}Jr8">
<field name="VAR" id="kf.|gUBRrt]]ET/7VV`i" variabletype="">Licht_eingeschaltet_Liste</field>
<value name="VALUE">
<block type="lists_create_with" id="|uw:aJhFPc}JD~rwG#f?">
<mutation items="0"></mutation>
</block>
</value>
<next>
<block type="variables_set" id="[(`mc9Ts+WbCoPlHiF2}">
<field name="VAR" id="?Iruv;}=6m-+T=![x@`H" variabletype="">Licht_gesamt_Liste</field>
<value name="VALUE">
<block type="lists_create_with" id="Vh0bIxSdFaUUrynRZ^fa">
<mutation items="0"></mutation>
</block>
</value>
<next>
<block type="variables_set" id="kj9)qx1[rc,_^tzUf|k8">
<field name="VAR" id="M#.~fDd[/KAfhHH%W2-K" variabletype="">Licht_html_Liste</field>
<value name="VALUE">
<block type="lists_create_with" id="G9[si:i3V3IM8S=on#ga">
<mutation items="0"></mutation>
</block>
</value>
<next>
<block type="variables_set" id="Bee!z}f_8!1s@cHV4/Vm">
<field name="VAR" id="HYyl#n^=-9$2h^y`Y;N?" variabletype="">htmlText</field>
<value name="VALUE">
<block type="text_join" id="p$RrX883u4,oKT*ew?jR">
<mutation items="8"></mutation>
<value name="ADD0">
<block type="text" id="a:Ub=w1b*t!t_e`7!OUc">
<field name="TEXT"><!DOCTYPE html><html lang="de"><head><title>Licht</title><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body></field>
</block>
</value>
<value name="ADD1">
<block type="text" id="vQ4-VDa*5hb|sv6:[@7#">
<field name="TEXT"><p style="color:#0000FF; font-family:Helvetica; font-weight: bold">Lichtstatus</p> </field>
</block>
</value>
<value name="ADD2">
<block type="text" id="|F2=N*fP,:1#E[E:nzx]">
<field name="TEXT"><p style="color:#ff0000; font-family:Helvetica; font-weight: bold">letze Änderung: </field>
</block>
</value>
<value name="ADD3">
<block type="time_get" id="!O)qFVPd9F4Y{c7sQqW/">
<mutation format="true" language="false"></mutation>
<field name="OPTION">custom</field>
<field name="FORMAT">TT.MM.JJJJ SS:mm:ss</field>
</block>
</value>
<value name="ADD4">
<block type="text" id="|*GsEfGV1J*d`ZFXlDi,">
<field name="TEXT"> </p> </field>
</block>
</value>
<value name="ADD5">
<block type="text" id="=2d-n1(V^qS_)EYA]f=_">
<field name="TEXT"><table border="8" cellspacing="10" cellpadding="20" style="color:black; font-family:Helvetica;background-image: linear-gradient(42deg,transparent,lightblue);"></field>
</block>
</value>
<value name="ADD6">
<block type="text" id="fRZ.!bM#xY$BL?#_JkD.">
<field name="TEXT"><tr style="color:#0000FF"; font-weight: bold"><td>HUE-Shelly&ensp;&ensp;&ensp;</td><td>Status</td></tr></field>
</block>
</value>
<value name="ADD7">
<block type="text" id="n#g5W5tqsLc{jJ@V#!wm">
<field name="TEXT"><tr><td></field>
</block>
</value>
</block>
</value>
<next>
<block type="controls_forEach" id="%8)**B:7sQay};J[-.nF">
<field name="VAR" id="6iOe8s0aT$XGy[cfPo]I" variabletype="">Licht</field>
<value name="LIST">
<block type="selector" id="A,,JA4$XiZJ)OUbZ]XAf">
<field name="TEXT">[state.id=status](functions='Licht')</field>
</block>
</value>
<statement name="DO">
<block type="math_change" id="R]{#Ir]9cng@V0^ti4|a">
<field name="VAR" id="rtfLle*]f_K|%$KK)r9i" variabletype="">Anzahl_Licht_gesamt</field>
<value name="DELTA">
<shadow type="math_number" id="~gBX9jq59:fIKpBGXk8o">
<field name="NUM">1</field>
</shadow>
</value>
<next>
<block type="controls_if" id="LW%/+n9-DuoX(CcI;Nkc">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="bi8Ld?HJ69l1*XBC)Z`i">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value_var" id="6MZ!x^Seinc4%iJ%Ne`b">
<field name="ATTR">val</field>
<value name="OID">
<shadow type="text" id="H+Si!dLFm_55HjmGoqp+">
<field name="TEXT"></field>
</shadow>
<block type="variables_get" id="3RrMBy07f?+%zCFlyowj">
<field name="VAR" id="6iOe8s0aT$XGy[cfPo]I" variabletype="">Licht</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="8pfoUn$u+rP7G0o[iZpr">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="math_change" id="3fv?{5{l5t]i.jF*8;uC">
<field name="VAR" id="s^g_cd%U/.iiN#+uA0!:" variabletype="">Anzahl_Licht_aktiv</field>
<value name="DELTA">
<shadow type="math_number" id=")^Nk+[J4b@a6lSmiyQ{E">
<field name="NUM">1</field>
</shadow>
</value>
<next>
<block type="lists_setIndex" id="G-@G69A,wi;4_%*E9OGo">
<mutation at="false"></mutation>
<field name="MODE">INSERT</field>
<field name="WHERE">LAST</field>
<value name="LIST">
<block type="variables_get" id="y376$v=D=_9G`@UwX2+c">
<field name="VAR" id="kf.|gUBRrt]]ET/7VV`i" variabletype="">Licht_eingeschaltet_Liste</field>
</block>
</value>
<value name="TO">
<block type="text_join" id="8Ij_SdK~!Dka1~v-4,YP">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="procedures_callcustomreturn" id="X++LpB!I6f*JaQ+8L5PY">
<mutation name="getParentName">
<arg name="id"></arg>
</mutation>
<value name="ARG0">
<block type="variables_get" id="1{;%^qnR.063Cx~wi%ZI">
<field name="VAR" id="6iOe8s0aT$XGy[cfPo]I" variabletype="">Licht</field>
</block>
</value>
</block>
</value>
<value name="ADD1">
<block type="text" id="2ndr7n:_Le@8Fd*w}_Pu">
<field name="TEXT"> an</field>
</block>
</value>
</block>
</value>
<next>
<block type="lists_setIndex" id="B?YV%hcX7it)?Z#y0b9R">
<mutation at="false"></mutation>
<field name="MODE">INSERT</field>
<field name="WHERE">LAST</field>
<value name="LIST">
<block type="variables_get" id="FC+Y(G*@G0H*Pvf(C8zB">
<field name="VAR" id="?Iruv;}=6m-+T=![x@`H" variabletype="">Licht_gesamt_Liste</field>
</block>
</value>
<value name="TO">
<block type="text_join" id="rey#$u?Sh/7e;bU7jTak">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="procedures_callcustomreturn" id="b8UFcuV/6;m@II$WCYdA">
<mutation name="getParentName">
<arg name="id"></arg>
</mutation>
<value name="ARG0">
<block type="variables_get" id="MmN],9YiPSXVk7WWT)vB">
<field name="VAR" id="6iOe8s0aT$XGy[cfPo]I" variabletype="">Licht</field>
</block>
</value>
</block>
</value>
<value name="ADD1">
<block type="text" id="o}[!%w*v#]Pa;#;vSpw#">
<field name="TEXT"> an</field>
</block>
</value>
</block>
</value>
<next>
<block type="lists_setIndex" id="hsrzrQOPBh7SPCnzyk3p">
<mutation at="false"></mutation>
<field name="MODE">INSERT</field>
<field name="WHERE">LAST</field>
<value name="LIST">
<block type="variables_get" id="ZsGn,gViq|kS~(!IzkgR">
<field name="VAR" id="M#.~fDd[/KAfhHH%W2-K" variabletype="">Licht_html_Liste</field>
</block>
</value>
<value name="TO">
<block type="text_join" id="(PQsd:?6L$zi~z85i{^:">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="procedures_callcustomreturn" id="W@]U%JrC1h.O!V1fT*CG">
<mutation name="getParentName">
<arg name="id"></arg>
</mutation>
<value name="ARG0">
<block type="variables_get" id="Xw{ddsW9:_5BQml/1#={">
<field name="VAR" id="6iOe8s0aT$XGy[cfPo]I" variabletype="">Licht</field>
</block>
</value>
</block>
</value>
<value name="ADD1">
<block type="text" id="V~O{@n2veh6LnyX_)Z:A">
<field name="TEXT"><td><span style="color:#FF0000"> an </span></field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
<statement name="ELSE">
<block type="lists_setIndex" id=".UfR#=ePLJcP{%z?bU7T">
<mutation at="false"></mutation>
<field name="MODE">INSERT</field>
<field name="WHERE">LAST</field>
<value name="LIST">
<block type="variables_get" id="dG4@/xG4EZrSchP!]}fI">
<field name="VAR" id="?Iruv;}=6m-+T=![x@`H" variabletype="">Licht_gesamt_Liste</field>
</block>
</value>
<value name="TO">
<block type="text_join" id="r+92={b{Z^0v48?Z0c~:">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="procedures_callcustomreturn" id="eu7Hm{-Frf#+o~w}]r71">
<mutation name="getParentName">
<arg name="id"></arg>
</mutation>
<value name="ARG0">
<block type="variables_get" id="K3XjiKyYFr=an|?22-W[">
<field name="VAR" id="6iOe8s0aT$XGy[cfPo]I" variabletype="">Licht</field>
</block>
</value>
</block>
</value>
<value name="ADD1">
<block type="text" id="O*Z5VF96NUQ2i~g9:xOw">
<field name="TEXT"> aus</field>
</block>
</value>
</block>
</value>
<next>
<block type="lists_setIndex" id="j/i3.YJd*vvIoR_0m;@~">
<mutation at="false"></mutation>
<field name="MODE">INSERT</field>
<field name="WHERE">LAST</field>
<value name="LIST">
<block type="variables_get" id="#dUtMKNy2SH^y:}1Om?t">
<field name="VAR" id="M#.~fDd[/KAfhHH%W2-K" variabletype="">Licht_html_Liste</field>
</block>
</value>
<value name="TO">
<block type="text_join" id="n^hjv@;@y~S5f!8=F,eY">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="procedures_callcustomreturn" id="Fyzb!BW2D~-`P0Wd@RK2">
<mutation name="getParentName">
<arg name="id"></arg>
</mutation>
<value name="ARG0">
<block type="variables_get" id="SZH$dy8:seb,cOmv3NB%">
<field name="VAR" id="6iOe8s0aT$XGy[cfPo]I" variabletype="">Licht</field>
</block>
</value>
</block>
</value>
<value name="ADD1">
<block type="text" id="vxLHv-Jo:s0-M{CYT$[i">
<field name="TEXT"><td>aus</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</statement>
<next>
<block type="update" id="BRUEt{SxHthj,HJC;u0g">
<mutation delay_input="false"></mutation>
<field name="OID">0_userdata.0.Geraete_zaehlen.Licht.01Licht_Anzahl_eingeschaltet</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="X`BV[yZwgx}QT2(f~3;a">
<field name="VAR" id="s^g_cd%U/.iiN#+uA0!:" variabletype="">Anzahl_Licht_aktiv</field>
</block>
</value>
<next>
<block type="update" id="VnZud=~v2I?UkrzwyRSG">
<mutation delay_input="false"></mutation>
<field name="OID">0_userdata.0.Geraete_zaehlen.Licht.02Licht_Anzahl_gesamt</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="2=ru[-MFb,Qz]kN(m_jT">
<field name="VAR" id="rtfLle*]f_K|%$KK)r9i" variabletype="">Anzahl_Licht_gesamt</field>
</block>
</value>
<next>
<block type="controls_if" id="7a03/(m4w0_5{)7++!j`">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="}oljbU;u0-Ps]?[zmt%e">
<field name="OP">NEQ</field>
<value name="A">
<block type="variables_get" id="Avxax[9?4idcrZ{~*O?_">
<field name="VAR" id="s^g_cd%U/.iiN#+uA0!:" variabletype="">Anzahl_Licht_aktiv</field>
</block>
</value>
<value name="B">
<block type="math_number" id="46}8y9!,uL/F[[#z)pD$">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="update" id="J+;HlsED3i(E5[nA;XMT">
<mutation delay_input="false"></mutation>
<field name="OID">0_userdata.0.Geraete_zaehlen.Licht.03Licht_text_eingeschaltet_Liste</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="$O/s~t^RpSUk4HOEA@`7">
<field name="VAR" id="kf.|gUBRrt]]ET/7VV`i" variabletype="">Licht_eingeschaltet_Liste</field>
</block>
</value>
</block>
</statement>
<statement name="ELSE">
<block type="update" id="NIq@Ep$O[G`:%h2gi38x">
<mutation delay_input="false"></mutation>
<field name="OID">0_userdata.0.Geraete_zaehlen.Licht.03Licht_text_eingeschaltet_Liste</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="iCsJ:OXCcTlm(T%|m/Py">
<field name="TEXT">Das Licht ist überall aus.</field>
</block>
</value>
</block>
</statement>
<next>
<block type="update" id="SkC8k@_ho!#A[{if#9S/">
<mutation delay_input="false"></mutation>
<field name="OID">0_userdata.0.Geraete_zaehlen.Licht.04Licht_text_Gesamt_Liste</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="vZ8nkQ~MvkvFUv2Df:lK">
<field name="VAR" id="?Iruv;}=6m-+T=![x@`H" variabletype="">Licht_gesamt_Liste</field>
</block>
</value>
<next>
<block type="update" id="WLR!ze5](]Hs8TX{|[rn">
<mutation delay_input="false"></mutation>
<field name="OID">0_userdata.0.Geraete_zaehlen.Licht.05Licht_html_Liste</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text_join" id="qL)/)8Bp!XNXrDry%D:F">
<mutation items="3"></mutation>
<value name="ADD0">
<block type="variables_get" id="1Gd,]P|0}C0@DLdfn55B">
<field name="VAR" id="HYyl#n^=-9$2h^y`Y;N?" variabletype="">htmlText</field>
</block>
</value>
<value name="ADD1">
<block type="procedures_callcustomreturn" id="eF2,7Unb/X#+~r8bZeD4">
<mutation name="arry, trenner">
<arg name="arry"></arg>
<arg name="trenner"></arg>
</mutation>
<value name="ARG0">
<block type="lists_sort" id="=/=@acPfwmEq7N`XE!Fo">
<field name="TYPE">TEXT</field>
<field name="DIRECTION">1</field>
<value name="LIST">
<block type="variables_get" id="An8=VpH]rZw}lll!_LSI">
<field name="VAR" id="M#.~fDd[/KAfhHH%W2-K" variabletype="">Licht_html_Liste</field>
</block>
</value>
</block>
</value>
<value name="ARG1">
<block type="text" id="+j[Pf^94lrYLPiIrtxm=">
<field name="TEXT"><tr><td></field>
</block>
</value>
</block>
</value>
<value name="ADD2">
<block type="text" id="z1d/zrdGPfBiu+dF{!_=">
<field name="TEXT"></table></body></field>
</block>
</value>
</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>
</xml>