@feinfinger So könnte es aussehen:
dfb97ad8-451b-4c61-8bba-312e263ae138-image.png
Statt auf den Schalter zu reagieren, kannst du das natürlich auch direkt in das Blockly setzen, wo die andere Lampe eingeschaltet wird. Aber so hättest du das gleiche Verhalten, wenn die Lampe per Hand eingeschaltet wird.
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="OrYsD!vXmG*)iCRkRbvr">max_ms</variable>
<variable type="timeout" id="timeout">timeout</variable>
</variables>
<block type="on" id="XpbZ[Tmj7D8@KRhOiT=B" x="213" y="88">
<field name="OID">shelly.0.SHSW-1#55E26A#1.Relay0.Switch</field>
<field name="CONDITION">true</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="variables_set" id="f#3wpm3R7{E{@]y%/D(m">
<field name="VAR" id="OrYsD!vXmG*)iCRkRbvr">max_ms</field>
<value name="VALUE">
<block type="math_number" id="N(,RpK8o[n+$@mcQp~ij">
<field name="NUM">10000</field>
</block>
</value>
<next>
<block type="timeouts_settimeout_variable" id="Q9^8eV3{DtixTk.NA!f:">
<field name="NAME">timeout</field>
<value name="DELAY_MS">
<block type="math_arithmetic" id="Aj7QYN~GSI|68maE.LVU">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow type="math_number" id="5A=2M5})|F$TAz@w5dv_">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="rJW$P1w*YV}vv;}P21UR">
<field name="VAR" id="OrYsD!vXmG*)iCRkRbvr">max_ms</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="m`;3qY)ZQ6xY|e_;Lo)J">
<field name="NUM">1</field>
</shadow>
<block type="math_random_float" id="@]{0d^;[tiL@F9JmUff4"></block>
</value>
</block>
</value>
<statement name="STATEMENT">
<block type="control" id="Lb=G?yzLpZgJ0XG7%#Rx">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">hm-rpc.0.OEQ0360604.1.STATE</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="O=oblat=~*zl$x!_%c,g">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</xml>```