hallo zusammen,
wie ich zu anfang geschrieben habe, verfolge ich hier die ideen. nun ist es auch bei mir soweit dass die shellys verbaut sind.
habe im wohnzimmer zurzeit einen xiaomi bewegungsmelder (sollen insgesamt drei werden) welche überpüfen sollen ob noch
jemand aktiv ist.
das ziel ist es wenn 30 minuten keine aktivität in einem gewissen zeitfenster ist, dass die rollos automatisch runtergefahren werden.
dafür habe ich einen datenpunkt gesetzt (wz_rollos_bm_status) wo sämtlche bewegungsmelder bei erkannter bewegung ein "wahr" setzen.
wenn dann 30 minuten keine bewegung erkannt wurde soll der wert auf "unwahr" gesetzt werden.
wo ich nicht weiterkomme ist dass er ja den timer "30 minuten" hat und danach stumpf auf unwahr setzt. wie kann ich dort eine nachprüfung
einbauen ob es zwischenzeitig eine neue aktivität gab und der timer dann wieder auf null gesetzt wird?
komme an diesem punkt nicht weiter und wäre über hilfe dankbar.
lg
ralph
<xml xmlns="http://www.w3.org/1999/xhtml"><block type="on_ext" id="tz;D9#.+4p*3?FtR{4?(" x="63" y="38"><mutation items="4"></mutation>
<field name="CONDITION">any</field>
<value name="OID0"><shadow type="field_oid" id=";T`833RRx:ZOmW)gCmQR"><field name="oid">Werte_zwischenspeicher.0.wz_rollos_bm_status</field></shadow></value>
<value name="OID1"><shadow type="field_oid" id="2x{Slmg1.2E/~y,DoO8Q"><field name="oid">mihome.0.devices.sensor_motion_aq2_158d00029c019e.state</field></shadow></value>
<value name="OID2"><shadow type="field_oid" id="Zd|t!]om|=mpim*iVi9a"><field name="oid">mihome.0.devices.sensor_motion_aq2_158d000276d226.state</field></shadow></value>
<value name="OID3"><shadow type="field_oid" id="T+%NOoZQ,P(W4Bs^ck3r"><field name="oid">mihome.0.devices.sensor_motion_aq2_158d0002752318.state</field></shadow></value>
<statement name="STATEMENT"><block type="controls_if" id="Y38R}w(/ZJE-Xao,=188"><value name="IF0"><block type="logic_operation" id="cY7X%s+VI:oWVnmOHVm6" inline="false"><field name="OP">OR</field>
<value name="A"><block type="logic_operation" id="guHXnlf?.TTZa6nv:B~=" inline="false"><field name="OP">OR</field>
<value name="A"><block type="logic_operation" id="IzMPn,@2t93WV=?3~DcQ" inline="false"><field name="OP">OR</field>
<value name="A"><block type="logic_compare" id="i~{LKE2GRq!=CghO?bh="><field name="OP">EQ</field>
<value name="A"><block type="get_value" id="_fg-3w|dQ,TjU6qZT6q9"><field name="ATTR">val</field>
<field name="OID">mihome.0.devices.sensor_motion_aq2_158d00029c019e.state</field></block></value>
<value name="B"><block type="logic_boolean" id="U(B.w*RkUPwV?ml,DFE1"><field name="BOOL">TRUE</field></block></value></block></value>
<value name="B"><block type="logic_compare" id="a7{vPB`w5^]1+d8b:eQh"><field name="OP">EQ</field>
<value name="A"><block type="get_value" id="uVx6LOE|r0kvpIgHXW^D"><field name="ATTR">val</field>
<field name="OID">mihome.0.devices.sensor_motion_aq2_158d0002752318.state</field></block></value>
<value name="B"><block type="logic_boolean" id="MgbZ2ey!x(%IA`c3]S0L"><field name="BOOL">TRUE</field></block></value></block></value></block></value>
<value name="B"><block type="logic_compare" id="j+CvzLb9q;N!0yP1WQ}6"><field name="OP">EQ</field>
<value name="A"><block type="get_value" id="Z3Jdw19D%#Xg4!*J=ljd"><field name="ATTR">val</field>
<field name="OID">mihome.0.devices.sensor_motion_aq2_158d000276d226.state</field></block></value>
<value name="B"><block type="logic_boolean" id="E+(%#YD5gMqiJhiOmv`p"><field name="BOOL">TRUE</field></block></value></block></value></block></value>
<value name="B"><block type="logic_operation" id="@u9M]SIQ:4NUiHNgQA:B" inline="false"><field name="OP">OR</field></block></value></block></value>
<statement name="DO0"><block type="control" id="U-;ov8(is!)A;b,}CWbu"><mutation delay_input="false"></mutation>
<field name="OID">Werte_zwischenspeicher.0.wz_rollos_bm_status</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="a/hkdu[w8}W{Xk:McnL#"><field name="BOOL">TRUE</field></block></value></block></statement>
<next><block type="comment" id="?g=#:O9,]UNw|6z3S/7z"><field name="COMMENT">Wert zurück setzen</field>
<next><block type="controls_if" id="muP@A+k6JgyFmNX-Q/{B"><value name="IF0"><block type="logic_compare" id="qoO1CG_~v(ABV#(Xz_+K"><field name="OP">EQ</field>
<value name="A"><block type="get_value" id="/zdz!YCIQIy/j!l0k;+f"><field name="ATTR">val</field>
<field name="OID">Werte_zwischenspeicher.0.wz_rollos_bm_status</field></block></value>
<value name="B"><block type="logic_boolean" id="0Sh!Q~.?)GU)l#nuG._]"><field name="BOOL">TRUE</field></block></value></block></value>
<statement name="DO0"><block type="control" id="L7Xg/A]..w(FY}Eqf^9X"><mutation delay_input="true"></mutation>
<field name="OID">Werte_zwischenspeicher.0.wz_rollos_bm_status</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">30</field>
<field name="UNIT">min</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="%w!NIlru[79Gn06b-Uk="><field name="BOOL">FALSE</field></block></value></block></statement></block></next></block></next></block></statement></block></xml>
9191_skript_rollo.jpg