A virtual button that will pause the piston for some interval


#1

Hi ,
I created a piston that works good for my needs.
But from time to time I want to be able to pause this piston for 15,30,60 minutes.
What is the best practice doing that ?
Should I use Global variable so I can implement it for all pistons ?
Thanks


#2

You can code this into your piston.

I also think there is a way to do this by pause and unpause each piston (web call)


#3

There are several options here. This is my take…

If you are doing a random WAIT of 15,30 or 60 minutes, then you could use a virtual switch to initiate the WAIT without variables. Or if you are not triggering the WAIT, then you could just code random WAITS without a virtual switch. It would depend on what you want as a trigger. Do you initiate the WAIT ?
If you are doing sequential WAITS that you trigger … 15, then 30, then 60…then I think you are going to need a virtual switch and a global variable to store your WAIT times.

Or you could use three virtual switches, WAIT15, WAIT30 and WAIT60 that would trigger the correct piston.


#4

Thanks
I will check the virtual switch