Add timer to piston


#1

1) Give a description of the problem
Would like to add a timer to piston to turn thermostat off

2) What is the expected behaviour?
This piston seems to work, ie at a fixed time each day it turns the water thermostat on and when the water reaches temperature it turns the thermostat off. I would like to add a timer to this such that if water reaches temperature or time exceeds 60 minutes then turn thermostat off. Sounds simple but I’m not sure how to add this condition since I think this piston is event driven by the water rising to/above temperature so where/how do I add timer as well?
I suspect its simple but I’m still very new Webcore

3) What is happening/not happening?
It currently works (well appears to) but without the additional time condition

**4) Post a Green Snapshot of the piston![image|45x37]

5) Attach logs after turning logging level to Full


#2

Hi,

Having switched the heater on, add a 60 min wait, then turn the heater off.

If the time hits 60 mins it will turn off. If the temp is reached, the piston will fire again. The wait and proceeding code will be cancelled, and the existing code for the temperature reached will run.


#3

Cheers, sounds simple and make sense.