- ioBroker Community Home
- Deutsch
- Skripten / Logik
- Blockly
- [Blockly] Zirkulationspumpe über 2 Bewegungsmelder
[Blockly] Zirkulationspumpe über 2 Bewegungsmelder
-
Ich möchte meine Zirkulationspumpe über 2 Bewegungsmelder triggern (Küche und Bad). Sobald Bewegung von einem der beiden erkannt wird, läuft die Pumpe und geht in 2 Minuten wieder aus. Dann soll für 45 Minuten die Pumpe nicht automatisch anspringen wenn Bewegung erkannt wird.
Momentan löse ich das über 2 Blockly Skripte, glaube aber dass es auch mit einem geht?

Objekt Zirkulationspumpe ist hier eine eigene Variable

CC2538+CC2592 PA-Zigbee-Funkmodul
-
Ich möchte meine Zirkulationspumpe über 2 Bewegungsmelder triggern (Küche und Bad). Sobald Bewegung von einem der beiden erkannt wird, läuft die Pumpe und geht in 2 Minuten wieder aus. Dann soll für 45 Minuten die Pumpe nicht automatisch anspringen wenn Bewegung erkannt wird.
Momentan löse ich das über 2 Blockly Skripte, glaube aber dass es auch mit einem geht?

Objekt Zirkulationspumpe ist hier eine eigene Variable

@watcherkb propier es mal hiermit, ist jetzt auf 30 Minuten eingestellt wenn du 45 Minuten brauchst ändere den Zähler auf 45.
<xml xmlns="http://www.w3.org/1999/xhtml">
<variables>
<variable type="" id="Og_^l=QcQR9vdUaE=f*">OB_Zirkulation</variable> <variable type="" id="AQ~ES~RRmL@7Lj]h-uzi">Zaehler</variable> <variable type="undefined" id="timeout">timeout</variable> <variable type="undefined" id="Intervall">Intervall</variable> </variables> <block type="comment" id="aAA1%!J:sOX}UbPl|x9" x="212" y="-62">
<field name="COMMENT">Aktor einfügen</field>
<next>
<block type="variables_set" id="k(x6)$WwKv76PDXkNnfm">
<field name="VAR" id="Og_^l=QcQR9vdUaE=f*" variabletype="">OB_Zirkulation</field> <value name="VALUE"> <block type="field_oid" id="T{8s6j[?|Tzrvu*G)!(x"> <field name="oid">hm-rpc.2.0001D70994E995.3.STATE</field> </block> </value> </block> </next> </block> <block type="comment" id=",la}-mYzKg9qq2.zNbFc" x="212" y="37"> <field name="COMMENT">Badezimmer</field> <next> <block type="variables_set" id="PP#sxKF~@81jMm@3wEi*"> <field name="VAR" id="AQ~ES~RRmL@7Lj]h-uzi" variabletype="">Zaehler</field> <value name="VALUE"> <block type="math_number" id="^sdMRn~V~kIZ}JFEeyg">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="on_ext" id="5-.R-qeEs5[R14D2a34I">
<mutation items="2"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="F-(mmrnT6,XWFSGau(]Q">
<field name="oid">hm-rpc.2.000C18A991E8B6.1.PRESENCE_DETECTION_STATE</field>
</shadow>
</value>
<value name="OID1">
<shadow type="field_oid" id="i:O$?imxUZ%o-gEJ|c+"> <field name="oid">hm-rpc.2.0009156999C1F8.1.MOTION</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="-|=g5L6e_o/4GOQqNsj#"> <value name="IF0"> <block type="logic_operation" id="AA8jz}+PwoTgupeut,%3" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="|1Mg%#1]R(zj184[q[j}" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="QK-/|;J3lY4x?i,xy_%o"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="ija].E3h#ObzJTG7KNx8"> <field name="ATTR">val</field> <field name="OID">hm-rpc.2.000C18A991E8B6.1.PRESENCE_DETECTION_STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="qfnF@:-8$ijab@,qoo/I"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="w:rUj?DMi0ESCzP2G|es"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="-d_X8;(YhS7Kbp/Iax1">
<field name="ATTR">val</field>
<field name="OID">hm-rpc.2.0009156999C1F8.1.MOTION</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id=".K*,@7,lni0CuQ+9([~"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="!OK#I$uytvM6U*fmwcR$" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="CE1h?)LO;F[O%zJx0H.7"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="os;R5SUx:ulFUZXEv5~R"> <field name="VAR" id="AQ~ES~RRmL@7Lj]h-uzi" variabletype="">Zaehler</field> </block> </value> <value name="B"> <block type="math_number" id="?H[XS=FX#rJwmEy^[dsy"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="fN./YAgNK!w$fxhWD*aB"> <field name="OP">EQ</field> <value name="A"> <block type="get_value_var" id="f,t1iLIv-CRwjvrm@.C">
<field name="ATTR">val</field>
<value name="OID">
<shadow type="text" id="J7[/lkHia_}1)Q[z0a/"> <field name="TEXT"></field> </shadow> <block type="variables_get" id=")2MaB-n[/wnox}2GP9.r"> <field name="VAR" id="Og_^l=QcQR9vdUaE=f*" variabletype="">OB_Zirkulation</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="YNBc?m+LFKPL%1,FaJD"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control_ex" id=",_eY(h!NLv^UL)5eC:9k" inline="true"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id=",zLM2dmRm@-|^szF0_)5"> <field name="oid">Object ID</field> </shadow> <block type="variables_get" id="~S0S;1(Q??hp-ujB?kJu"> <field name="VAR" id="Og_^l=QcQR9vdUaE=f*" variabletype="">OB_Zirkulation</field>
</block>
</value>
<value name="VALUE">
<shadow type="logic_boolean" id="!^K0R0|#ljb,~n(I;Rtv">
<field name="BOOL">TRUE</field>
</shadow>
</value>
<value name="DELAY_MS">
<shadow type="math_number" id="A=f510BI_:FXjy6^PUw"> <field name="NUM">0</field> </shadow> </value> <next> <block type="debug" id="-ISt)3R)irU%)^=Fy4;Y"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="rhnpG^(OZ-|n$Ug1g48P"> <field name="TEXT">Bewegung Bad erkannt, Zirkulation eingeschaltet</field> </shadow> </value> <next> <block type="timeouts_settimeout" id="smya7TOFXPpSwgFu7PWp"> <field name="NAME">timeout</field> <field name="DELAY">2</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="control_ex" id="*flrqFkM#oz;:3|VPJEk" inline="true"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id=",zLM2dmRm@-|^szF0_)5"> <field name="oid">Object ID</field> </shadow> <block type="variables_get" id=".#2MR9-L,Oc#LBr#;rs:"> <field name="VAR" id="Og_^l=QcQR9vdUaE=f*" variabletype="">OB_Zirkulation</field>
</block>
</value>
<value name="VALUE">
<shadow type="logic_boolean" id="1nw%GMt}f32A/5%]8SCN">
<field name="BOOL">FALSE</field>
</shadow>
</value>
<value name="DELAY_MS">
<shadow type="math_number" id="]y]#[.v/BdbOP!9-TW%*">
<field name="NUM">0</field>
</shadow>
</value>
<next>
<block type="debug" id="jN}LfKl;.G5uXNm`k)*Y">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="O2;rWiG-Y_{2G$s7,9gW">
<field name="TEXT">Zirkulation schaltet nach 2 minuten ab</field>
</shadow>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="timeouts_setinterval" id="2eO31_/:}7NZ:@Hayct-">
<field name="NAME">Intervall</field>
<field name="INTERVAL">1</field>
<field name="UNIT">min</field>
<statement name="STATEMENT">
<block type="math_change" id="RJgW}%ka;iTr`9[7qcb8">
<field name="VAR" id="AQ~ES~RRmL@7Lj]h-uzi" variabletype="">Zaehler</field>
<value name="DELTA">
<shadow type="math_number" id="@n6?b61UQO6WT)5SH`fs">
<field name="NUM">1</field>
</shadow>
<block type="math_number" id="^Ls+EQ3+8aB9[~H?%Nef">
<field name="NUM">1</field>
</block>
</value>
<next>
<block type="controls_if" id="eMMlmxsS+IYQAEEDEb[?">
<value name="IF0">
<block type="logic_compare" id="0CRZ$E=|l|NB)FDFZDPE">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="3E7M+kl_k!Ex|).TEiJe">
<field name="VAR" id="AQ~ES~RRmL@7Lj]h-uzi" variabletype="">Zaehler</field>
</block>
</value>
<value name="B">
<block type="math_number" id="zE5Ljd%daN2!eDU(#BQ,">
<field name="NUM">30</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="timeouts_clearinterval" id="w#8VvO[pIKwYwl6(s[rS">
<field name="NAME">Intervall</field>
<next>
<block type="variables_set" id="+x-G6rqQ6cnyGQ7UHZna">
<field name="VAR" id="AQ~ES~RRmL@7Lj]h-uzi" variabletype="">Zaehler</field>
<value name="VALUE">
<block type="math_number" id="PnEde6Uf17l.|Z?adx;0">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="debug" id="07361^]=~e88A)g}m(my">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="?ba1i~eF~IQkP_@P)Tvm">
<field name="TEXT">Intervall nach 15 Minuten zurückgesetzt auf 0</field>
</shadow>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</xml>
-
@watcherkb propier es mal hiermit, ist jetzt auf 30 Minuten eingestellt wenn du 45 Minuten brauchst ändere den Zähler auf 45.
<xml xmlns="http://www.w3.org/1999/xhtml">
<variables>
<variable type="" id="Og_^l=QcQR9vdUaE=f*">OB_Zirkulation</variable> <variable type="" id="AQ~ES~RRmL@7Lj]h-uzi">Zaehler</variable> <variable type="undefined" id="timeout">timeout</variable> <variable type="undefined" id="Intervall">Intervall</variable> </variables> <block type="comment" id="aAA1%!J:sOX}UbPl|x9" x="212" y="-62">
<field name="COMMENT">Aktor einfügen</field>
<next>
<block type="variables_set" id="k(x6)$WwKv76PDXkNnfm">
<field name="VAR" id="Og_^l=QcQR9vdUaE=f*" variabletype="">OB_Zirkulation</field> <value name="VALUE"> <block type="field_oid" id="T{8s6j[?|Tzrvu*G)!(x"> <field name="oid">hm-rpc.2.0001D70994E995.3.STATE</field> </block> </value> </block> </next> </block> <block type="comment" id=",la}-mYzKg9qq2.zNbFc" x="212" y="37"> <field name="COMMENT">Badezimmer</field> <next> <block type="variables_set" id="PP#sxKF~@81jMm@3wEi*"> <field name="VAR" id="AQ~ES~RRmL@7Lj]h-uzi" variabletype="">Zaehler</field> <value name="VALUE"> <block type="math_number" id="^sdMRn~V~kIZ}JFEeyg">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="on_ext" id="5-.R-qeEs5[R14D2a34I">
<mutation items="2"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="F-(mmrnT6,XWFSGau(]Q">
<field name="oid">hm-rpc.2.000C18A991E8B6.1.PRESENCE_DETECTION_STATE</field>
</shadow>
</value>
<value name="OID1">
<shadow type="field_oid" id="i:O$?imxUZ%o-gEJ|c+"> <field name="oid">hm-rpc.2.0009156999C1F8.1.MOTION</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="-|=g5L6e_o/4GOQqNsj#"> <value name="IF0"> <block type="logic_operation" id="AA8jz}+PwoTgupeut,%3" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="|1Mg%#1]R(zj184[q[j}" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="QK-/|;J3lY4x?i,xy_%o"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="ija].E3h#ObzJTG7KNx8"> <field name="ATTR">val</field> <field name="OID">hm-rpc.2.000C18A991E8B6.1.PRESENCE_DETECTION_STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="qfnF@:-8$ijab@,qoo/I"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="w:rUj?DMi0ESCzP2G|es"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="-d_X8;(YhS7Kbp/Iax1">
<field name="ATTR">val</field>
<field name="OID">hm-rpc.2.0009156999C1F8.1.MOTION</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id=".K*,@7,lni0CuQ+9([~"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="!OK#I$uytvM6U*fmwcR$" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="CE1h?)LO;F[O%zJx0H.7"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="os;R5SUx:ulFUZXEv5~R"> <field name="VAR" id="AQ~ES~RRmL@7Lj]h-uzi" variabletype="">Zaehler</field> </block> </value> <value name="B"> <block type="math_number" id="?H[XS=FX#rJwmEy^[dsy"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="fN./YAgNK!w$fxhWD*aB"> <field name="OP">EQ</field> <value name="A"> <block type="get_value_var" id="f,t1iLIv-CRwjvrm@.C">
<field name="ATTR">val</field>
<value name="OID">
<shadow type="text" id="J7[/lkHia_}1)Q[z0a/"> <field name="TEXT"></field> </shadow> <block type="variables_get" id=")2MaB-n[/wnox}2GP9.r"> <field name="VAR" id="Og_^l=QcQR9vdUaE=f*" variabletype="">OB_Zirkulation</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="YNBc?m+LFKPL%1,FaJD"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control_ex" id=",_eY(h!NLv^UL)5eC:9k" inline="true"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id=",zLM2dmRm@-|^szF0_)5"> <field name="oid">Object ID</field> </shadow> <block type="variables_get" id="~S0S;1(Q??hp-ujB?kJu"> <field name="VAR" id="Og_^l=QcQR9vdUaE=f*" variabletype="">OB_Zirkulation</field>
</block>
</value>
<value name="VALUE">
<shadow type="logic_boolean" id="!^K0R0|#ljb,~n(I;Rtv">
<field name="BOOL">TRUE</field>
</shadow>
</value>
<value name="DELAY_MS">
<shadow type="math_number" id="A=f510BI_:FXjy6^PUw"> <field name="NUM">0</field> </shadow> </value> <next> <block type="debug" id="-ISt)3R)irU%)^=Fy4;Y"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="rhnpG^(OZ-|n$Ug1g48P"> <field name="TEXT">Bewegung Bad erkannt, Zirkulation eingeschaltet</field> </shadow> </value> <next> <block type="timeouts_settimeout" id="smya7TOFXPpSwgFu7PWp"> <field name="NAME">timeout</field> <field name="DELAY">2</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="control_ex" id="*flrqFkM#oz;:3|VPJEk" inline="true"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id=",zLM2dmRm@-|^szF0_)5"> <field name="oid">Object ID</field> </shadow> <block type="variables_get" id=".#2MR9-L,Oc#LBr#;rs:"> <field name="VAR" id="Og_^l=QcQR9vdUaE=f*" variabletype="">OB_Zirkulation</field>
</block>
</value>
<value name="VALUE">
<shadow type="logic_boolean" id="1nw%GMt}f32A/5%]8SCN">
<field name="BOOL">FALSE</field>
</shadow>
</value>
<value name="DELAY_MS">
<shadow type="math_number" id="]y]#[.v/BdbOP!9-TW%*">
<field name="NUM">0</field>
</shadow>
</value>
<next>
<block type="debug" id="jN}LfKl;.G5uXNm`k)*Y">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="O2;rWiG-Y_{2G$s7,9gW">
<field name="TEXT">Zirkulation schaltet nach 2 minuten ab</field>
</shadow>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="timeouts_setinterval" id="2eO31_/:}7NZ:@Hayct-">
<field name="NAME">Intervall</field>
<field name="INTERVAL">1</field>
<field name="UNIT">min</field>
<statement name="STATEMENT">
<block type="math_change" id="RJgW}%ka;iTr`9[7qcb8">
<field name="VAR" id="AQ~ES~RRmL@7Lj]h-uzi" variabletype="">Zaehler</field>
<value name="DELTA">
<shadow type="math_number" id="@n6?b61UQO6WT)5SH`fs">
<field name="NUM">1</field>
</shadow>
<block type="math_number" id="^Ls+EQ3+8aB9[~H?%Nef">
<field name="NUM">1</field>
</block>
</value>
<next>
<block type="controls_if" id="eMMlmxsS+IYQAEEDEb[?">
<value name="IF0">
<block type="logic_compare" id="0CRZ$E=|l|NB)FDFZDPE">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="3E7M+kl_k!Ex|).TEiJe">
<field name="VAR" id="AQ~ES~RRmL@7Lj]h-uzi" variabletype="">Zaehler</field>
</block>
</value>
<value name="B">
<block type="math_number" id="zE5Ljd%daN2!eDU(#BQ,">
<field name="NUM">30</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="timeouts_clearinterval" id="w#8VvO[pIKwYwl6(s[rS">
<field name="NAME">Intervall</field>
<next>
<block type="variables_set" id="+x-G6rqQ6cnyGQ7UHZna">
<field name="VAR" id="AQ~ES~RRmL@7Lj]h-uzi" variabletype="">Zaehler</field>
<value name="VALUE">
<block type="math_number" id="PnEde6Uf17l.|Z?adx;0">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="debug" id="07361^]=~e88A)g}m(my">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="?ba1i~eF~IQkP_@P)Tvm">
<field name="TEXT">Intervall nach 15 Minuten zurückgesetzt auf 0</field>
</shadow>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</xml>
@Homer-J danke, sowas hab ich gesucht. Teste ich mal.
Kannst du mir sagen warum deine IDs ausgeschrieben sind und bei mir nicht? Ich hätte auch gerne den vollen Objektpfad.
CC2538+CC2592 PA-Zigbee-Funkmodul
-
@Homer-J danke, sowas hab ich gesucht. Teste ich mal.
Kannst du mir sagen warum deine IDs ausgeschrieben sind und bei mir nicht? Ich hätte auch gerne den vollen Objektpfad.
@watcherkb was hast du für Bewegungsmelder. ?
-
@watcherkb was hast du für Bewegungsmelder. ?
-
@Homer-J von Aqara
so hätt ich es gerne: mihome.0.devices.sensor_motion_aq2_158d000233560f2.state@watcherkb das kann ich dir auch nicht sagen ich habe Homematic IP dort habe ich es direkt in der CCU benannt, ich denk mal deshalb sehe ich es bei mir.
Aqara kenn ich mich leider nicht aus.
Steht es bei dir so in deinem Datenpunkt drin. ? -
@watcherkb das kann ich dir auch nicht sagen ich habe Homematic IP dort habe ich es direkt in der CCU benannt, ich denk mal deshalb sehe ich es bei mir.
Aqara kenn ich mich leider nicht aus.
Steht es bei dir so in deinem Datenpunkt drin. ? -
@watcherkb versuch doch mal den Datenpunkt State umzubenennen müsste eigentlich gehen.
Funktioniert das Script. ? -
@watcherkb versuch doch mal den Datenpunkt State umzubenennen müsste eigentlich gehen.
Funktioniert das Script. ? -
@watcherkb propier es mal hiermit, ist jetzt auf 30 Minuten eingestellt wenn du 45 Minuten brauchst ändere den Zähler auf 45.
<xml xmlns="http://www.w3.org/1999/xhtml">
<variables>
<variable type="" id="Og_^l=QcQR9vdUaE=f*">OB_Zirkulation</variable> <variable type="" id="AQ~ES~RRmL@7Lj]h-uzi">Zaehler</variable> <variable type="undefined" id="timeout">timeout</variable> <variable type="undefined" id="Intervall">Intervall</variable> </variables> <block type="comment" id="aAA1%!J:sOX}UbPl|x9" x="212" y="-62">
<field name="COMMENT">Aktor einfügen</field>
<next>
<block type="variables_set" id="k(x6)$WwKv76PDXkNnfm">
<field name="VAR" id="Og_^l=QcQR9vdUaE=f*" variabletype="">OB_Zirkulation</field> <value name="VALUE"> <block type="field_oid" id="T{8s6j[?|Tzrvu*G)!(x"> <field name="oid">hm-rpc.2.0001D70994E995.3.STATE</field> </block> </value> </block> </next> </block> <block type="comment" id=",la}-mYzKg9qq2.zNbFc" x="212" y="37"> <field name="COMMENT">Badezimmer</field> <next> <block type="variables_set" id="PP#sxKF~@81jMm@3wEi*"> <field name="VAR" id="AQ~ES~RRmL@7Lj]h-uzi" variabletype="">Zaehler</field> <value name="VALUE"> <block type="math_number" id="^sdMRn~V~kIZ}JFEeyg">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="on_ext" id="5-.R-qeEs5[R14D2a34I">
<mutation items="2"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="F-(mmrnT6,XWFSGau(]Q">
<field name="oid">hm-rpc.2.000C18A991E8B6.1.PRESENCE_DETECTION_STATE</field>
</shadow>
</value>
<value name="OID1">
<shadow type="field_oid" id="i:O$?imxUZ%o-gEJ|c+"> <field name="oid">hm-rpc.2.0009156999C1F8.1.MOTION</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="-|=g5L6e_o/4GOQqNsj#"> <value name="IF0"> <block type="logic_operation" id="AA8jz}+PwoTgupeut,%3" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="|1Mg%#1]R(zj184[q[j}" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="QK-/|;J3lY4x?i,xy_%o"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="ija].E3h#ObzJTG7KNx8"> <field name="ATTR">val</field> <field name="OID">hm-rpc.2.000C18A991E8B6.1.PRESENCE_DETECTION_STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="qfnF@:-8$ijab@,qoo/I"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="w:rUj?DMi0ESCzP2G|es"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="-d_X8;(YhS7Kbp/Iax1">
<field name="ATTR">val</field>
<field name="OID">hm-rpc.2.0009156999C1F8.1.MOTION</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id=".K*,@7,lni0CuQ+9([~"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="!OK#I$uytvM6U*fmwcR$" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="CE1h?)LO;F[O%zJx0H.7"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="os;R5SUx:ulFUZXEv5~R"> <field name="VAR" id="AQ~ES~RRmL@7Lj]h-uzi" variabletype="">Zaehler</field> </block> </value> <value name="B"> <block type="math_number" id="?H[XS=FX#rJwmEy^[dsy"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="fN./YAgNK!w$fxhWD*aB"> <field name="OP">EQ</field> <value name="A"> <block type="get_value_var" id="f,t1iLIv-CRwjvrm@.C">
<field name="ATTR">val</field>
<value name="OID">
<shadow type="text" id="J7[/lkHia_}1)Q[z0a/"> <field name="TEXT"></field> </shadow> <block type="variables_get" id=")2MaB-n[/wnox}2GP9.r"> <field name="VAR" id="Og_^l=QcQR9vdUaE=f*" variabletype="">OB_Zirkulation</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="YNBc?m+LFKPL%1,FaJD"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control_ex" id=",_eY(h!NLv^UL)5eC:9k" inline="true"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id=",zLM2dmRm@-|^szF0_)5"> <field name="oid">Object ID</field> </shadow> <block type="variables_get" id="~S0S;1(Q??hp-ujB?kJu"> <field name="VAR" id="Og_^l=QcQR9vdUaE=f*" variabletype="">OB_Zirkulation</field>
</block>
</value>
<value name="VALUE">
<shadow type="logic_boolean" id="!^K0R0|#ljb,~n(I;Rtv">
<field name="BOOL">TRUE</field>
</shadow>
</value>
<value name="DELAY_MS">
<shadow type="math_number" id="A=f510BI_:FXjy6^PUw"> <field name="NUM">0</field> </shadow> </value> <next> <block type="debug" id="-ISt)3R)irU%)^=Fy4;Y"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="rhnpG^(OZ-|n$Ug1g48P"> <field name="TEXT">Bewegung Bad erkannt, Zirkulation eingeschaltet</field> </shadow> </value> <next> <block type="timeouts_settimeout" id="smya7TOFXPpSwgFu7PWp"> <field name="NAME">timeout</field> <field name="DELAY">2</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="control_ex" id="*flrqFkM#oz;:3|VPJEk" inline="true"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id=",zLM2dmRm@-|^szF0_)5"> <field name="oid">Object ID</field> </shadow> <block type="variables_get" id=".#2MR9-L,Oc#LBr#;rs:"> <field name="VAR" id="Og_^l=QcQR9vdUaE=f*" variabletype="">OB_Zirkulation</field>
</block>
</value>
<value name="VALUE">
<shadow type="logic_boolean" id="1nw%GMt}f32A/5%]8SCN">
<field name="BOOL">FALSE</field>
</shadow>
</value>
<value name="DELAY_MS">
<shadow type="math_number" id="]y]#[.v/BdbOP!9-TW%*">
<field name="NUM">0</field>
</shadow>
</value>
<next>
<block type="debug" id="jN}LfKl;.G5uXNm`k)*Y">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="O2;rWiG-Y_{2G$s7,9gW">
<field name="TEXT">Zirkulation schaltet nach 2 minuten ab</field>
</shadow>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="timeouts_setinterval" id="2eO31_/:}7NZ:@Hayct-">
<field name="NAME">Intervall</field>
<field name="INTERVAL">1</field>
<field name="UNIT">min</field>
<statement name="STATEMENT">
<block type="math_change" id="RJgW}%ka;iTr`9[7qcb8">
<field name="VAR" id="AQ~ES~RRmL@7Lj]h-uzi" variabletype="">Zaehler</field>
<value name="DELTA">
<shadow type="math_number" id="@n6?b61UQO6WT)5SH`fs">
<field name="NUM">1</field>
</shadow>
<block type="math_number" id="^Ls+EQ3+8aB9[~H?%Nef">
<field name="NUM">1</field>
</block>
</value>
<next>
<block type="controls_if" id="eMMlmxsS+IYQAEEDEb[?">
<value name="IF0">
<block type="logic_compare" id="0CRZ$E=|l|NB)FDFZDPE">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="3E7M+kl_k!Ex|).TEiJe">
<field name="VAR" id="AQ~ES~RRmL@7Lj]h-uzi" variabletype="">Zaehler</field>
</block>
</value>
<value name="B">
<block type="math_number" id="zE5Ljd%daN2!eDU(#BQ,">
<field name="NUM">30</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="timeouts_clearinterval" id="w#8VvO[pIKwYwl6(s[rS">
<field name="NAME">Intervall</field>
<next>
<block type="variables_set" id="+x-G6rqQ6cnyGQ7UHZna">
<field name="VAR" id="AQ~ES~RRmL@7Lj]h-uzi" variabletype="">Zaehler</field>
<value name="VALUE">
<block type="math_number" id="PnEde6Uf17l.|Z?adx;0">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="debug" id="07361^]=~e88A)g}m(my">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="?ba1i~eF~IQkP_@P)Tvm">
<field name="TEXT">Intervall nach 15 Minuten zurückgesetzt auf 0</field>
</shadow>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</xml>
-
@watcherkb Kein Problem,
Grüße
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden

