Virtual Motion Switch encapsulating multiple actual motion sensors


#1

1) Give a description of the problem
I am encapsulating a set of motion detectors into a single virtual switch.

2) What is the expected behavior?
Virtual switch is on when any motion is detected.
Virtual switch to switch off when there is no motion and the wait has completed. If there is a subsequent motion action during the wait then the virtual switch remains on until all finished.

3) What is happening/not happening?
If this piston is sitting on the Wait (no motion detected) and there is a subsequent motion action during this period the virtual switch turns off regardless.

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)
(PASTE YOUR LOGS HERE BETWEEN THE MARKS THEN HIGHLIGHT ALL OF THE LOGS SND CLICK ON THE </> ICON TO FORMAT THEM)

REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.


#2

Try something like this


#3

Thanks for this.
I will read up on ‘cancel all pending tasks’