PDA

View Full Version : Light coding question?


rtparty
06/11/2017, 05:03 PM
Does this look right?

Fallback OFF
Set OFF
If Time 09:00 to 12:00 Then ON
If Time 12:00 to 15:58 Then OFF
If Time 15:59 to 20:00 Then ON
If Tmp > 81.0 Then OFF
Min Time 005:00 Then OFF

I want my T5s off when my MH is on

kurt_n
06/11/2017, 06:58 PM
If you want this outlet on from 9am to noon, then again from 3:59pm to 8pm... then it's correct. The "If Time 12:00 to 15:58 then OFF" statement is not needed since you have the "Set Off" statement up front.

rtparty
06/11/2017, 07:14 PM
Yes Kurt. I want T5s from 9 to 12, then off and back on from 3:55ish 8. I don't have much reason to run the T5s during the halide hours.

Thanks for the response!

JustinFromAL
06/12/2017, 08:02 AM
Also, if you want to elliminate a couple lines of code you could just set the outlet status based on the state of your MH's.

Fallback OFF
Set OFF
If Time 09:00 to 20:00 Then ON
If MH_OUTLET_NAME_HERE = ON Then OFF
Min Time 005:00 Then OFF