Hallo
habe ein BlocklyScript mit Bewegungsmelder laufen.
<xml xmlns="http://www.w3.org/1999/xhtml">
<variables>
<variable type="undefined" id="timeout">timeout</variable>
</variables>
<block type="on" id="gNt!/9v50#T}LQmVt5*;" x="38" y="-87">
<field name="OID">hm-rpc.0.NEQ1702336.1.MOTION</field>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="controls_if" id="0CMf9(7F7#SON]1?)~0o">
<value name="IF0">
<block type="logic_operation" id="6bIT0/BuihM/Q;!ph;7p">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="E6PavZ=eZ)vNu:=ES=B}">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="pwFkf)[n[pC1@n=43TUz">
<field name="ATTR">val</field>
<field name="OID">shelly.0.SHSW-1#B8C714#1.Relay0.Switch</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="ZEu,CyGR-$A`oA?{,*dM">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="time_compare_ex" id="5.Jax##)CH:~UZcS5n9k">
<mutation end_time="true" actual_time="true"></mutation>
<field name="USE_ACTUAL_TIME">TRUE</field>
<field name="OPTION">between</field>
<value name="START_TIME">
<shadow type="text" id="{ikSrKzK=8yWZ/wDCj|j">
<field name="TEXT">19:00</field>
</shadow>
</value>
<value name="END_TIME">
<shadow type="text" id="sTDwW6^Cw8Un?DMOEir~">
<field name="TEXT">07:00</field>
</shadow>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="58BF~TPF+}c?Y9Pa{0.K">
<mutation delay_input="false"></mutation>
<field name="OID">shelly.0.SHSW-1#B8C714#1.Relay0.Switch</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="2R`c*;Z[NV/X(ER`6gU]">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
<next>
<block type="timeouts_cleartimeout" id="}v~LX.~es]^Lls6o|AU9">
<field name="NAME">timeout</field>
<next>
<block type="timeouts_settimeout" id="gTD@2k%eI?NOkK3y#3CG">
<field name="NAME">timeout</field>
<field name="DELAY">20</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="control" id="GUqGc4l0Y-Z:Bhg,FiXb">
<mutation delay_input="true"></mutation>
<field name="OID">shelly.0.SHSW-1#B8C714#1.Relay0.Switch</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">20</field>
<field name="UNIT">sec</field>
<field name="CLEAR_RUNNING">TRUE</field>
<value name="VALUE">
<block type="logic_boolean" id="FsQjOF3tQjJFn(P,qgsC">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</xml>
Leider funktioniert es nicht wie es soll.
es soll per Bewegungsmelder ab 19:00Uhr bis 7:00Uhr für 20 sec schalten
und wenn ich es tagsüber per Schalter schalte soll es an bleiben bis ich es ausschalte.
aber es geht nach 20 sec aus auch beim schalten über manuellen Schalter
Zur Info:
Bewegungsmelder ist Homematic und Schlater ein Shelly1.
Wo ist mein Fehler ?
Danke