<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="v[|W}1#ivnSgGvN;6%-5">BL</variable>
<variable id="mp@d,(985+7`ga;e](x{">AINW</variable>
<variable id=")NxPFFKLAPM2~1hZ1/Q[">TO</variable>
<variable type="timeout" id="timeout">timeout</variable>
</variables>
<block type="variables_set" id=".tAJ.SM#4%C=e$}v!TGK" x="387" y="-213">
<field name="VAR" id="v[|W}1#ivnSgGvN;6%-5">BL</field>
<value name="VALUE">
<block type="logic_boolean" id=":?$IEB3U$WbG){,19P{2">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="comment" id="~pbXrcpHb(rW0xJd$Lb]">
<field name="COMMENT">Trigger</field>
<next>
<block type="on_ext" id="`QAQQ=;Mv-!s8Xisv`Q[">
<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 xmlns="http://www.w3.org/1999/xhtml" type="field_oid" id="x3Az;0]0yDfTN#aGm8{3">
<field name="oid">default</field>
</shadow>
<block type="field_oid" id="fJE1{[S|hKT$]p%?%]p%">
<field name="oid">mihome.0.devices.weather_v1_158d00027347cf.temperature</field>
</block>
</value>
<statement name="STATEMENT">
<block type="debug" id="oT;n):)AnZ+:xI~rUI1f">
<field name="Severity">log</field>
<value name="TEXT">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="{bu.{n,(L}xf`/~P_54{">
<field name="TEXT">test</field>
</shadow>
<block type="text" id="}^2MZ${H[EM,3r55F)*v">
<field name="TEXT">Temperatur hat sich geändert, Script startet: </field>
</block>
</value>
<next>
<block type="controls_if" id="o~?pt_u4s*XtqU`Z69`2">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="!dz)#I7Tj(G/:pWOu#op">
<field name="OP">GT</field>
<value name="A">
<block type="get_value" id=";{,(+QkU2IA5ahLhC_BW">
<field name="ATTR">val</field>
<field name="OID">zigbee.0.00158d00025efa37.temperature</field>
</block>
</value>
<value name="B">
<block type="get_value" id=";KO!3;j?JeTL!mICB.}N">
<field name="ATTR">val</field>
<field name="OID">mihome.0.devices.weather_v1_158d00027347cf.temperature</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="comment" id="bFw@l$0Fm!-qk}S{YQ03">
<field name="COMMENT">Wenn der Innen > Außen für X Minuten</field>
<next>
<block type="controls_if" id="{@9RQR`h3S{^4F,u)*cd">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_negate" id="G2-k]hm)8`(hmpxVkVRi">
<value name="BOOL">
<block type="variables_get" id="|gX5jP?PSPld$)zpp5q:">
<field name="VAR" id=")NxPFFKLAPM2~1hZ1/Q[">TO</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="comment" id="bMz^T%zW)}k_)*jj4Ky1">
<field name="COMMENT">Falls noch kein Timer läuft</field>
<next>
<block type="controls_if" id=",.@]!HNMEMI6=2/4D)!O">
<value name="IF0">
<block type="logic_compare" id="C#t.x4*`xL,4$`!sllp)">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="FAvf^;GU26(]G3w/H1Ve">
<field name="VAR" id="v[|W}1#ivnSgGvN;6%-5">BL</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="3ui]rdh([_lUGBGrJU(e">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="debug" id="^z00JlMMNMqWC,Y9CEg0">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="o.hhPSwcRcS#WPV-lTJo">
<field name="TEXT">Timer starten</field>
</shadow>
</value>
<next>
<block type="timeouts_settimeout" id="V5PJ*,eX}qP)$s%TheU~">
<field name="NAME">timeout</field>
<field name="DELAY">10</field>
<field name="UNIT">min</field>
<statement name="STATEMENT">
<block type="debug" id="WvB9$WY;fB=*qM(JGs8m">
<field name="Severity">log</field>
<value name="TEXT">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="Tz~]w[#}$ZiSGnN0GA:*">
<field name="TEXT">Timer Start</field>
</shadow>
<block type="text" id="`m+|3DX[$K6^LNnAay{u">
<field name="TEXT">Timer erstellt</field>
</block>
</value>
<next>
<block type="variables_set" id="qBMEMk#9`MHVln^6NaiI">
<field name="VAR" id="v[|W}1#ivnSgGvN;6%-5">BL</field>
<value name="VALUE">
<block type="logic_boolean" id="A[_;W]rc/aqi6cD3HT9+">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="debug" id="-]3.I`b6DG]%vWL6%QI=">
<field name="Severity">log</field>
<value name="TEXT">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id=",dG*QXcM[^)?4#s+Xl!0">
<field name="TEXT">test</field>
</shadow>
<block type="text_join" id="2vp|$?WeVVMl:RoIN/;G">
<mutation items="7"></mutation>
<value name="ADD0">
<block type="text" id="zke^3|w`m5:$Xl1VCMQ)">
<field name="TEXT">Meldung Telegram: </field>
</block>
</value>
<value name="ADD1">
<block type="text" id="[^K3H1}u~7-8ddZpKJJ{">
<field name="TEXT">Bitte Lüften, </field>
</block>
</value>
<value name="ADD2">
<block type="text" id="!;cPz?icO035_RtA7KeH">
<field name="TEXT">die Innentemperatur beträgt: </field>
</block>
</value>
<value name="ADD3">
<block type="get_value" id="*dYKF)6Mf@UFO^]/=ieP">
<field name="ATTR">val</field>
<field name="OID">zigbee.0.00158d00025efa37.temperature</field>
</block>
</value>
<value name="ADD4">
<block type="text_newline" id="^#i`-=!y4c.6jSzcN-tk">
<field name="Type">\n</field>
</block>
</value>
<value name="ADD5">
<block type="text" id="E6r1Pae=c)]?:memjmd9">
<field name="TEXT">die Außentemperatur beträgt: </field>
</block>
</value>
<value name="ADD6">
<block type="get_value" id="*,r/Cf)KEkYBz;_*w6qn">
<field name="ATTR">val</field>
<field name="OID">mihome.0.devices.weather_v1_158d00027347cf.temperature</field>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set" id="9qI]ul~s2uRa|Z}nIK3z">
<field name="VAR" id="mp@d,(985+7`ga;e](x{">AINW</field>
<value name="VALUE">
<block type="logic_boolean" id="lfo*Enk*sy.AMLs8`y1i">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="telegram" id="|/-TIZT/oIb_+as.0:V)">
<field name="INSTANCE"></field>
<field name="LOG"></field>
<field name="SILENT">FALSE</field>
<field name="PARSEMODE">default</field>
<value name="MESSAGE">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="U@hA8(_QTSFaS!0ujq~b">
<field name="TEXT">text</field>
</shadow>
<block type="text_join" id="S2~-%2clxm)/_Yw[QcN$">
<mutation items="6"></mutation>
<value name="ADD0">
<block type="text" id="Z)Mr42-m7vS#RUqYrE`#">
<field name="TEXT">Bitte Lüften, </field>
</block>
</value>
<value name="ADD1">
<block type="text" id="~XKNIBD9Mk0+1bue?!X#">
<field name="TEXT">die Innentemperatur beträgt: </field>
</block>
</value>
<value name="ADD2">
<block type="get_value" id="^Wm5yamavgzT,M:YKLzc">
<field name="ATTR">val</field>
<field name="OID">zigbee.0.00158d00025efa37.temperature</field>
</block>
</value>
<value name="ADD3">
<block type="text_newline" id="A6nOQUdLG-z^%B:v?{8=">
<field name="Type">\n</field>
</block>
</value>
<value name="ADD4">
<block type="text" id="2K^?WURd@xn5g/D+?O@2">
<field name="TEXT">die Außentemperatur beträgt: </field>
</block>
</value>
<value name="ADD5">
<block type="get_value" id="warmXe8vM?w1/e`bDzWl">
<field name="ATTR">val</field>
<field name="OID">mihome.0.devices.weather_v1_158d00027347cf.temperature</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</statement>
<statement name="ELSE">
<block type="debug" id="7R0Athvq3vh|fA:#0~(L">
<field name="Severity">log</field>
<value name="TEXT">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id=",dG*QXcM[^)?4#s+Xl!0">
<field name="TEXT">test</field>
</shadow>
<block type="text" id="]j^f#+~[;yUk2{,B6Lv}">
<field name="TEXT">Timer läuft schon</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</statement>
<statement name="ELSE">
<block type="controls_if" id="_Pd:hgi%}p$9{([(xH*V">
<value name="IF0">
<block type="logic_compare" id="1:4r$Xa:K!-K:{J5H-NH">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="b5j;N:}fX0h{HH5Lp#t4">
<field name="VAR" id="mp@d,(985+7`ga;e](x{">AINW</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="T7R6LW*LC^T|j6]wh#H@">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="9lYuqps4Uhduuomv/fTU">
<field name="VAR" id="v[|W}1#ivnSgGvN;6%-5">BL</field>
<value name="VALUE">
<block type="logic_boolean" id="WCh]?BUKoRH=Nm%#}[E2">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="telegram" id="9]E;$17Tl/7BT$KnLH.(">
<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="Dr1^bIXGNm$#_RKq6`Ok">
<field name="TEXT">Außen ist es jetzt wieder wärmer. Fenster zu.</field>
</shadow>
</value>
<next>
<block type="variables_set" id="4hL!d2h,CP%DAmJ1{wGU">
<field name="VAR" id="mp@d,(985+7`ga;e](x{">AINW</field>
<value name="VALUE">
<block type="logic_boolean" id="tlbz@++Nyihw2u(/m7BY">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="debug" id="+?~TFH!VN=_6`-kDCfph">
<field name="Severity">log</field>
<value name="TEXT">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id=",dG*QXcM[^)?4#s+Xl!0">
<field name="TEXT">test</field>
</shadow>
<block type="text_join" id="z~mfjen-.E4R|v~Md5I}">
<mutation items="1"></mutation>
<value name="ADD0">
<block type="text" id="0sDKuV6Y7jnxq6bZZXK?">
<field name="TEXT">Außen ist es jetzt wieder wärmer. Fenster Zu!</field>
</block>
</value>
</block>
</value>
<next>
<block type="timeouts_cleartimeout" id="|!MS6zf2yP.||Fu8sVm%">
<field name="NAME">timeout</field>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</xml>