<xml xmlns="http://www.w3.org/1999/xhtml">
<variables>
<variable type="" id="Ahul5uoSv4t1z3+7zi[v">Aussen_Temperatur_alt</variable>
<variable type="" id="~,=K)~mm]VUdsQmlv6Wq">Aussen_Temperatur_mit_Komma</variable>
<variable type="" id="7#f^7Cs[eBJt8tprt8lO">Aussen_Temperatur_dezimal</variable>
<variable type="" id="x:erI[h?xVu9r|?3nRke">Aussen_Temperaturwert_nach_dem_Punkt</variable>
</variables>
<block type="procedures_defcustomnoreturn" id="eZsGA^2r{c%G,YpuLp]K" x="13" y="13">
<mutation statements="false"></mutation>
<field name="NAME">dp_erstellen</field>
<field name="SCRIPT">Ly9EYXRlbnB1bmt0IFRlbXBlcmF0dXIgZXJzdGVsbGVuCmNyZWF0ZVN0YXRlKCJFaWdlbmVfRGF0ZW5wdW5rdGUuMDFBbGV4YTJBbnNhZ2VuLlRlbXBlcmF0dXJlbi4wMUF1c3NlbnRlbXBlcmF0dXIiLCB7CiAgICBuYW1lOiAnMDFBdXNzZW50ZW1wZXJhdHVyJywgCiAgICByb2xlOiAndmFsdWUudGVtcGVyYXR1cmUnLAogICAgcmVhZDogIHRydWUsIAogICAgd3JpdGU6IHRydWUsCiAgICB0eXBlOiAic3RyaW5nIiwKICAgIHVuaXQ6ICKwQyIsCiAgICAic21hcnROYW1lIjogewogICAgImRlIjogIiIsCiAgICAic21hcnRUeXBlIjogIlNXSVRDSCIKfQp9KTs=</field>
<comment pinned="false" h="80" w="160">Datenpunkte erstellen</comment>
</block>
<block type="comment" id="v.Z}}Ayr(n^7*c6_|`X7" x="13" y="63">
<field name="COMMENT">Muss durch eigenen Temperatursensor ersetzt werden</field>
<next>
<block type="on_ext" id="^L]L$|=M1t[YXYt4i^cx">
<mutation items="1"></mutation>
<field name="CONDITION">any</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="`]!$;Y!iOG(_-/nU6Sw@">
<field name="oid">hm-rpc.0.xxx.1.ACTUAL_TEMPERATURE</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="comment" id="2eIdM#}2*Ld6Y+!PI,}*">
<field name="COMMENT">Muss durch eigenen Temperatursensor ersetzt werden</field>
<next>
<block type="variables_set" id="C,Q+vt~R4N,O_cg4%jIz">
<field name="VAR" id="Ahul5uoSv4t1z3+7zi[v" variabletype="">Aussen_Temperatur_alt</field>
<value name="VALUE">
<block type="get_value" id="N~,PW5}_38t3Mm9Zgl2T">
<field name="ATTR">val</field>
<field name="OID">hm-rpc.0.xxx.1.ACTUAL_TEMPERATURE</field>
</block>
</value>
<next>
<block type="comment" id="2ZZJVs6H?5hpH]:W;(mf">
<field name="COMMENT">Prüfung ob es eine Zahl mit Punkt ist</field>
<next>
<block type="controls_if" id="E|*.CXy#U7.!~f%[Z3uX">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="5g_Q,60ArWyOy_gm!v%#">
<field name="OP">GT</field>
<value name="A">
<block type="text_indexOf" id="Dvv.ng}8+nXc~6Wc,0LN">
<field name="END">FIRST</field>
<value name="VALUE">
<block type="convert_tostring" id="8w@[eSuHw(Xj^W%Q-ie}">
<value name="VALUE">
<block type="variables_get" id="PQJ5651lB#ho,m8)N]OS">
<field name="VAR" id="Ahul5uoSv4t1z3+7zi[v" variabletype="">Aussen_Temperatur_alt</field>
</block>
</value>
</block>
</value>
<value name="FIND">
<shadow type="text" id=":~m1t|7:+{3sN??Qg8k3">
<field name="TEXT">.</field>
</shadow>
</value>
</block>
</value>
<value name="B">
<block type="math_number" id="~Q?DphZBPZ*yd?,jn{K1">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="comment" id="kQ|L%IbCckL,*QIeVv,a">
<field name="COMMENT">Reduzierung auf eine Nachkommastelle</field>
<next>
<block type="variables_set" id="kyb53p6qG0y2b+i?ZE7)">
<field name="VAR" id="~,=K)~mm]VUdsQmlv6Wq" variabletype="">Aussen_Temperatur_mit_Komma</field>
<value name="VALUE">
<block type="convert_tostring" id="`i)}aCg[}[,3X4gI,Lo`">
<value name="VALUE">
<block type="math_arithmetic" id="[U9o@^8Shy:a6SaT5Y./" inline="false">
<field name="OP">DIVIDE</field>
<value name="A">
<shadow type="math_number" id=":m83B^ocMuWT[1)v5r!%">
<field name="NUM">1</field>
</shadow>
<block type="math_round" id="zJyC;7])I;^RP#:0zUtL">
<field name="OP">ROUND</field>
<value name="NUM">
<shadow type="math_number" id=":8im043{@komE:.%No`-">
<field name="NUM">0.16666</field>
</shadow>
<block type="math_arithmetic" id=".Rnz%lC3jhowi^0j^*T|">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow type="math_number" id="3v;V[EwqL{E|VWc[:[/R">
<field name="NUM">22</field>
</shadow>
<block type="variables_get" id="IP78,/ZpG{g55_,9*^Wk">
<field name="VAR" id="Ahul5uoSv4t1z3+7zi[v" variabletype="">Aussen_Temperatur_alt</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="I!IH0LjtSJ`@WRLpxh{s">
<field name="NUM">10</field>
</shadow>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="fQ(lV5hwk:WZ^LF}Oaml">
<field name="NUM">10</field>
</shadow>
</value>
</block>
</value>
</block>
</value>
<next>
<block type="comment" id="%kjM4z}uI?/:u+bB-fl;">
<field name="COMMENT">Ziffern vor dem Punkt</field>
<next>
<block type="variables_set" id="~^dN*J*MO0M,BnSlKPB(">
<field name="VAR" id="7#f^7Cs[eBJt8tprt8lO" variabletype="">Aussen_Temperatur_dezimal</field>
<value name="VALUE">
<block type="text_getSubstring" id="yTtA,qJ@9f2@/AE-EpH=" inline="false">
<mutation at1="false" at2="true"></mutation>
<field name="WHERE1">FIRST</field>
<field name="WHERE2">FROM_START</field>
<value name="STRING">
<block type="variables_get" id="%5K/d!^is(kk{u3TJgen">
<field name="VAR" id="~,=K)~mm]VUdsQmlv6Wq" variabletype="">Aussen_Temperatur_mit_Komma</field>
</block>
</value>
<value name="AT2">
<block type="math_arithmetic" id="0+BL`~d.~kH^C=k@HbO!" inline="false">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="dqeWj1g.3?|/lv}BP28V">
<field name="NUM">1</field>
</shadow>
<block type="text_indexOf" id="XbWz9i#c36fba:=@H*j_" inline="false">
<field name="END">FIRST</field>
<value name="VALUE">
<block type="variables_get" id="99(),.-1pJX7*,9?t3I~">
<field name="VAR" id="~,=K)~mm]VUdsQmlv6Wq" variabletype="">Aussen_Temperatur_mit_Komma</field>
</block>
</value>
<value name="FIND">
<shadow type="text" id="j)wFGK{!g)T|QCszFSHZ">
<field name="TEXT">.</field>
</shadow>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="ZU2@}SbCt;iamp+7P2*.">
<field name="NUM">1</field>
</shadow>
</value>
</block>
</value>
</block>
</value>
<next>
<block type="comment" id="ue7mbc`1B!WmfluN^;=`">
<field name="COMMENT">Ziffern nach dem Punkt</field>
<next>
<block type="variables_set" id="}(0k)T9PMz@e7Vo_QA;V">
<field name="VAR" id="x:erI[h?xVu9r|?3nRke" variabletype="">Aussen_Temperaturwert_nach_dem_Punkt</field>
<value name="VALUE">
<block type="text_getSubstring" id="ecCC;B,m}V|:=)eIl2QG" inline="false">
<mutation at1="true" at2="false"></mutation>
<field name="WHERE1">FROM_START</field>
<field name="WHERE2">LAST</field>
<value name="STRING">
<block type="variables_get" id="0GBG5_WP3Hsm(7P9m-oE">
<field name="VAR" id="~,=K)~mm]VUdsQmlv6Wq" variabletype="">Aussen_Temperatur_mit_Komma</field>
</block>
</value>
<value name="AT1">
<block type="math_arithmetic" id="^@GB;i3GWjqi^2zyONdM" inline="false">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number" id="dqeWj1g.3?|/lv}BP28V">
<field name="NUM">1</field>
</shadow>
<block type="text_indexOf" id="5p_F3nLTLg1!K!8:S%{I" inline="false">
<field name="END">FIRST</field>
<value name="VALUE">
<block type="variables_get" id="+=Y9BpNCNVLUcE]yJ3Td">
<field name="VAR" id="~,=K)~mm]VUdsQmlv6Wq" variabletype="">Aussen_Temperatur_mit_Komma</field>
</block>
</value>
<value name="FIND">
<shadow type="text" id="VWNL?q]xtow,d?J25::s">
<field name="TEXT">.</field>
</shadow>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="]7tSw`Q/}s[9o(NItFiv">
<field name="NUM">1</field>
</shadow>
</value>
</block>
</value>
</block>
</value>
<next>
<block type="comment" id="4jE+y/^DQva`GSs;e)Rn">
<field name="COMMENT">Zusammensetzen der Teile mit Komma</field>
<next>
<block type="variables_set" id="xX,UYQmi60v(!7AU!B@_">
<field name="VAR" id="~,=K)~mm]VUdsQmlv6Wq" variabletype="">Aussen_Temperatur_mit_Komma</field>
<value name="VALUE">
<block type="text_join" id="2}A5i;,3I!,2VWW[0@XT">
<mutation items="3"></mutation>
<value name="ADD0">
<block type="variables_get" id=".@!5JN@V5IOwh-[_BOtH">
<field name="VAR" id="7#f^7Cs[eBJt8tprt8lO" variabletype="">Aussen_Temperatur_dezimal</field>
</block>
</value>
<value name="ADD1">
<block type="text" id="!Qrz934?1,~IDf9]y1_w">
<field name="TEXT">,</field>
</block>
</value>
<value name="ADD2">
<block type="variables_get" id="Am2qU)J3KMvAlHUMXoT@">
<field name="VAR" id="x:erI[h?xVu9r|?3nRke" variabletype="">Aussen_Temperaturwert_nach_dem_Punkt</field>
</block>
</value>
</block>
</value>
<next>
<block type="comment" id="y9{kU2Ds5=Y=u%|7q-o}">
<field name="COMMENT">neu erstellten Datenpunkt 01Aussentemperatur auswählen</field>
<next>
<block type="update" id="w^N#%P]e37U9myavk*xp">
<mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Eigene_Datenpunkte.01Alexa2Ansagen.Temperaturen.01Aussentemperatur</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="ZveObU+ni5(4(TlSr3he">
<field name="VAR" id="~,=K)~mm]VUdsQmlv6Wq" variabletype="">Aussen_Temperatur_mit_Komma</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
<statement name="ELSE">
<block type="variables_set" id="So@qIYE1vO-Y){NX,I}%">
<field name="VAR" id="~,=K)~mm]VUdsQmlv6Wq" variabletype="">Aussen_Temperatur_mit_Komma</field>
<value name="VALUE">
<block type="variables_get" id=".k:xdbO+#)HDsyAEaGaD">
<field name="VAR" id="Ahul5uoSv4t1z3+7zi[v" variabletype="">Aussen_Temperatur_alt</field>
</block>
</value>
<next>
<block type="comment" id="h]4!LoNWrAasQ]81y2OQ">
<field name="COMMENT">Falls kein Punkt bzw. Nachkommastelle vorhanden</field>
<next>
<block type="comment" id="/)$xY!`@p#{bn4:5y#0g">
<field name="COMMENT">neu erstellten Datenpunkt 01Aussentemperatur auswählen</field>
<next>
<block type="update" id="vvf*N5IjTi$xke/BM+;`">
<mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Eigene_Datenpunkte.01Alexa2Ansagen.Temperaturen.01Aussentemperatur</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="convert_tostring" id="Evz@+#-1Yyt$z:D;(tOB">
<value name="VALUE">
<block type="variables_get" id="}_A2KmH#zS[L+2XGXv;f">
<field name="VAR" id="Ahul5uoSv4t1z3+7zi[v" variabletype="">Aussen_Temperatur_alt</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</xml>