I have a Logicblock that is triggered from IFTTT or Siri to close the garage door via Tuya actuator on the gate engine:
Logicblock: Close garage gate Condition: Gate is open via door sensor Positive result: * Send command to gate engine Negative result: * Nothing (gate was already closed)
Reason for the condition “Gate is open” is that the actuator on the gate engine is dumb so the command to open and close is the same. Without this check, gate would open if it was already closed, which is not desired.
So far so good… now this is where I need help.
If the gate is moving (opening or closing), the command halts the door wherever it is, which is very inconvenient if, for any reason, the logicblock is invoked twice in a very short timeframe. So I’d like to add another condition to this Logicblock:
Logicblock: Close garage gate (v2) Condition: (Gate is open via door sensor) AND (GateIsMoving is FALSE) Positive result: * Send command to gate engine * Set boolean variable GateisMoving to TRUE via an IFTTT applet (GateMoving is a boolean variable with a timeout of 15 seconds, which is the time it takes for the gate to fully open or close, so it becomes FALSE automatically) Negative result: * Nothing
Since there are no negative conditions (GateIsMoving is FALSE) and delay settings only apply to TRUE values, I don’t know how to implement this.