? about Min Time statement for delaying lights coming back on

kurt_n

New member
So I thought my programming wasn't going to do exactly what I wanted, but never got around to testing it. But a brief power outage today "tested" it for me.

Here's my code for my lights...

Fallback OFF
Set OFF
If Time 10:00 to 20:00 Then ON
If Temp > 81.0 Then OFF
Min Time 045:00 Then OFF
If Power Apex Off 000 Then OFF


I run my EB8 on a rather large UPS, so the last line shuts my lights off during a power outage since the EB8 still has power to it. The UPS only runs essential things.

The "If Temp..." line obviously shuts off my lights if my temp goes too high. I recently added the "Min Time..." statement because I realized that once the temp dropped below 81.0 - like 80.999 - the lights would come back on. Not what I wanted to happen. So I added the the "min time" statement so the lights would stay off for 45 minutes after the temp condition was exceeded.

BUT... I had a brief power outage today, and when my power was restored the lights didn't come on. I haven't reviewed the logs entirely, but the light outlets were in "auto" mode, but in the "off" setting. I'm guessing it was responding to the "min time" statement, and they would've turned on after 45 minutes on their own?

If that's the case, then how do I get the lights to come back on immediately after power is restored, but yet have them stay off for a while in case of a overtemperature situation? I'm thinking there's a really simple solution, but I'm not seeing it right now!
 
Use a virtual outlet to decouple the power condition from the Min Time command.

[TankHot]
Set OFF
If Temp > 81.0 Then ON
Min Time 45:00 Then ON

[Lights]
Fallback OFF
Set OFF
If Time 10:00 to 20:00 Then ON
If Outlet TankHot = ON Then OFF
If Power Apex OFF 000 Then OFF

Todd
 
Thanks Todd! Got it. Perfect.

In the back of my head, I was thinking there was a virtual outlet involved somehow, but it wasn't coming to me.
 
Back
Top