Hallo zusammen,
ich habe das Skript jetzt so gebaut. Konnte es aber noch nicht testen. Kann das so funktionieren? (Kommentare fehlen noch)
2044_az_heizung.jpg
! ````
<xml xmlns="http://www.w3.org/1999/xhtml"><block type="create" id=":zg-)_EIq?4wI^ar^xX!" x="38" y="12"><field name="NAME">AZ_Anzahl_Bewegung</field>
<next><block type="create" id="CFxy|i:Z`!b;-*fc3x?T"><field name="NAME">AZ_Timer_15Min</field>
<next><block type="on_ext" id="i:tQ/iJ#.SLVro0jNI~S"><mutation items="1"></mutation>
<field name="CONDITION">ne</field>
<value name="OID0"><shadow type="field_oid" id=";/!P|B1JE-hF_QZMFBTz"><field name="oid">hm-rpc.2.000C18A98B9342.1.PRESENCE_DETECTION_STATE</field></shadow></value>
<statement name="STATEMENT"><block type="controls_if" id="L(x|T4qvmH86E6_:1mh+"><value name="IF0"><block type="logic_operation" id="=dOVAQzBHNb(DH-[q=pl"><field name="OP">AND</field>
<value name="A"><block type="logic_compare" id="W.KmU1UkXl;z|N64}Eo^"><field name="OP">LT</field>
<value name="A"><block type="get_value" id="*ilW)e`F+WvYDX9f=SnP"><field name="ATTR">val</field>
<field name="OID">hm-rpc.2.000E98A99D9E32.1.ACTUAL_TEMPERATURE</field></block></value>
<value name="B"><block type="math_number" id="6i/reE..}C^J*hd=.m@0"><field name="NUM">20</field></block></value></block></value>
<value name="B"><block type="logic_compare" id="c.VMK;VA8?YrMLjzMC:G"><field name="OP">EQ</field>
<value name="A"><block type="get_value" id="`-V}t|1fgfx%9`q[9Vvy"><field name="ATTR">val</field>
<field name="OID">hm-rpc.2.000C18A98B9342.1.PRESENCE_DETECTION_STATE</field></block></value>
<value name="B"><block type="logic_boolean" id="~_hJbLLcT6[?kiyNiKxX"><field name="BOOL">TRUE</field></block></value></block></value></block></value>
<statement name="DO0"><block type="timeouts_setinterval" id="@3FnQiMM:!-YI^+OfzEU"><field name="NAME">AZ_Anzahl_Bewegung_Intervall</field>
<field name="INTERVAL">1</field>
<field name="UNIT">min</field>
<statement name="STATEMENT"><block type="math_change" id="Yn+*#.#au+moI+M9j=7A"><field name="VAR">AZ_Anzahl_Bewegung</field>
<value name="DELTA"><shadow type="math_number" id="Sd-icO]K}ThE:;uf4?:5"><field name="NUM">1</field></shadow></value></block></statement>
<next><block type="timeouts_setinterval" id="*0XLzl2w95E@9u}:/E{V"><field name="NAME">AZ_Timer_15Min_Intervall</field>
<field name="INTERVAL">1</field>
<field name="UNIT">min</field>
<statement name="STATEMENT"><block type="math_change" id="*I(f-Ymq(efI}?`~!7lU"><field name="VAR">AZ_Timer_15Min</field>
<value name="DELTA"><shadow type="math_number" id="0Key~u2~3nxExQzs#URY"><field name="NUM">1</field></shadow></value></block></statement></block></next></block></statement>
<next><block type="controls_if" id="E{@tupVFuStBC4XjuL7e"><mutation elseif="1"></mutation>
<value name="IF0"><block type="logic_operation" id="Pw|lq]`z,!G4-a:7)u`6"><field name="OP">AND</field>
<value name="A"><block type="logic_compare" id="KoSm6u|@c(xg*!I7/2Q;"><field name="OP">GTE</field>
<value name="A"><block type="get_value" id="tf^uOgdgoYACzHo=Wj)~"><field name="ATTR">val</field>
<field name="OID">javascript.0.AZ_Anzahl_Bewegung</field></block></value>
<value name="B"><block type="math_number" id="}BA@-FWt!WXV1ur,aW5V"><field name="NUM">5</field></block></value></block></value>
<value name="B"><block type="logic_compare" id="k~h@diPm5*iDWnfpu-%o"><field name="OP">LT</field>
<value name="A"><block type="get_value" id=".,)}Bw59qwpL(iyV5T)s"><field name="ATTR">val</field>
<field name="OID">javascript.0.AZ_Timer_15Min</field></block></value>
<value name="B"><block type="math_number" id="J|!-ZkgH6~cQef}zG`08"><field name="NUM">15</field></block></value></block></value></block></value>
<statement name="DO0"><block type="control" id="D%g9su{rG5Mf[=[j^(KF"><mutation delay_input="false"></mutation>
<field name="OID">hm-rpc.0.OEQ1140439.2.STATE</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="vhsB!r:,v5*rq%Bf(V1w"><field name="BOOL">TRUE</field></block></value>
<next><block type="control" id="^@#PQp]eZ`ilrjdPMrZx"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.AZ_Anzahl_Bewegung</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="math_number" id="w%MJ7B+sO6.vxX3O)*mL"><field name="NUM">0</field></block></value>
<next><block type="control" id="X8y36}}+p}-oV4QF3zSj"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.AZ_Timer_15Min</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="math_number" id="o|T.*_=]m5pSsie)xRkE"><field name="NUM">0</field></block></value></block></next></block></next></block></statement>
<value name="IF1"><block type="logic_operation" id="77dV5wje+#fP.~JH{GI|"><field name="OP">AND</field>
<value name="A"><block type="logic_compare" id="?(FH)^J/b?1%?{+ai*BS"><field name="OP">LT</field>
<value name="A"><block type="get_value" id="+Urg1|7oxkH-`7O4ZxT8"><field name="ATTR">val</field>
<field name="OID">javascript.0.AZ_Anzahl_Bewegung</field></block></value>
<value name="B"><block type="math_number" id="nB}Z4ikkqagZo0JQavL!"><field name="NUM">5</field></block></value></block></value>
<value name="B"><block type="logic_compare" id="QlO/@_hJEx^WY9cbSi7M"><field name="OP">GT</field>
<value name="A"><block type="get_value" id="xJ{78z)3?gxU=19;BI+M"><field name="ATTR">val</field>
<field name="OID">javascript.0.AZ_Timer_15Min</field></block></value>
<value name="B"><block type="math_number" id="*K|wTjXdGc(H1_d!)yQO"><field name="NUM">15</field></block></value></block></value></block></value>
<statement name="DO1"><block type="control" id="DItJ{^4r3#L+;(9G54[]"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.AZ_Anzahl_Bewegung</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="math_number" id="y}.|I*hoL1dYs}@[X_)i"><field name="NUM">0</field></block></value>
<next><block type="control" id="n%rm*taT*5Oo)ms3jq9?"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.AZ_Timer_15Min</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="math_number" id="~ZowvHkH_jH%w0#*=|Q3"><field name="NUM">0</field></block></value></block></next></block></statement></block></next></block></statement>
<next><block type="on_ext" id="K%9D@.Nwwf;x}WWqS(l1"><mutation items="1"></mutation>
<field name="CONDITION">ne</field>
<value name="OID0"><shadow type="field_oid" id="o/lIUv0998Q%vk*|2cks"><field name="oid">hm-rpc.2.000E98A99D9E32.1.ACTUAL_TEMPERATURE</field></shadow></value>
<statement name="STATEMENT"><block type="controls_if" id="M5:]JYt5_t]EO*ntsS8p"><value name="IF0"><block type="logic_compare" id="S74=3vIUpyY:Z}`|wCaD"><field name="OP">GTE</field>
<value name="A"><block type="get_value" id="y}]ghcF?0fnBjenl5@KQ"><field name="ATTR">val</field>
<field name="OID">hm-rpc.2.000E98A99D9E32.1.ACTUAL_TEMPERATURE</field></block></value>
<value name="B"><block type="math_number" id="6^{tLMlRoCcoa1@n`@2)"><field name="NUM">21</field></block></value></block></value>
<statement name="DO0"><block type="control" id="O@ezlo_=QVg~{v^!8kp7"><mutation delay_input="false"></mutation>
<field name="OID">hm-rpc.0.OEQ1140439.2.STATE</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="1?W;%KpPj*]b|HpP(p#3"><field name="BOOL">FALSE</field></block></value></block></statement></block></statement>
<next><block type="on_ext" id="m|)dAho,l~=F{Ly?yjc{"><mutation items="1"></mutation>
<field name="CONDITION">ne</field>
<value name="OID0"><shadow type="field_oid" id="A*_/rS(IXa2d6(5GYj+B"><field name="oid">hm-rpc.2.000E98A99D9E32.1.ACTUAL_TEMPERATURE</field></shadow></value>
<statement name="STATEMENT"><block type="controls_if" id="QO].n*_c9^3Is*RY#x0H"><value name="IF0"><block type="logic_compare" id="WYBGS*H1E@XI@2.E;.QU"><field name="OP">LT</field>
<value name="A"><block type="get_value" id="aiTPK+(k6v6C[+bgfSfl"><field name="ATTR">val</field>
<field name="OID">hm-rpc.2.000E98A99D9E32.1.ACTUAL_TEMPERATURE</field></block></value>
<value name="B"><block type="math_number" id="aTsuka1E{@SJaR:1Jo{h"><field name="NUM">19</field></block></value></block></value>
<statement name="DO0"><block type="control" id="Vo::4Nu+;XA8Pq0p66E;"><mutation delay_input="false"></mutation>
<field name="OID">hm-rpc.0.OEQ1140439.2.STATE</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="eecRUdvQ7]cw+~]2T60g"><field name="BOOL">TRUE</field></block></value></block></statement></block></statement></block></next></block></next></block></next></block></next></block></xml>
Ich freue mich auf eure Antworten.
Grüße,
Stefan