Prevent multiple pushes when this piston executes


1) Give a description of the problem
I get multiple pushes each time this piston executes

2) What is the expected behaviour?
Just one push and prevent pushes if the virtual switch is on prevent this piston from continuing to run.

3) What is happening/not happening?

**4) Post a Green Snapshot of the **


I did not dig deep into this but I immediately noticed that you have multiple triggers (orange lightening bolts in the left margin). Each time one of those triggers changes state, it runs the entire piston top to bottom again. I am a fan of small, task-specific pistons. I would divide this piston up into 2 or 3 pistons. Such as one piston to turn things on, one to adjust your rainbow light, and one to turn things off. I find it much easier to debug that way.


It was actually the stay trigger. This was causing the piston to keep running. I changed it to changed to on so that it would only run once when the virtual switch changes to on.