"Stays off" trigger not firing


#1

1) Give a description of the problem
I am looking to put my hot water recirculator on a timer. I would like the recirculator to run every 30 minutes, with an override if a bathroom light is turned on and it has been at least 15 minutes since last run

I tried to implement this with the code shown, but instead of the “every 5 minutes” procedure I had “If Outlet 1 stayed off for at least 30 min”, but this trigger was never firing on its own. It worked when I set the delay to only 10 seconds but for some reason fails with longer stay periods.

For now I just added a timer loop to check (every 5 minutes) if its been at least 30 minutes and run if so.

This works, but seems inefficient and also means the delay is actually 30-34 min instead of exactly 30 minutes.

Any ideas why the “if x stays off for y min” trigger isnt working?


#2

If Outlet switch is off
Then
with Outlet 1
do
wait 15 minutes
Turn on;
end with;

the default cancellation policy will cancel the wait timer if Outlet is turned on during the wait.


#3

Ill give that a try - I would need to move the override to a different function then right? Since it wouldnt run during the wait?


#4

Just test as is… the default should be sufficient.