Jump to content

Yet another programming question


mitch236

Recommended Posts

Posted

In my theater's equipment room, I have a fan that helps cool the rack. The fan is controlled by a lamplinc. I want the fan to turn on when I turn the theater on and turn off an hour after I turn the theater off. I wrote what I thought would work, and it did until I found a glitch last night. About 30 minutes after I turned off the theater, I turned it back on. What I didn't realize is that because of the wait line in the off program, it was still running too!

 

So I wrote this instead:

 

To turn the theater On

 

If

IR 'IR_020' is Pressed

 

Then

Run Program 'Theater OFF' (Else Path)

Set 'Theater / Receptacle / Theater NE' On

Wait 1 second

Set 'Theater / Receptacle / Theater NW' On

Wait 1 second

Set 'Theater / Receptacle / Theater SW' On

Wait 5 seconds

Set 'Theater / Receptacle / Theater SE' On

Set 'Indoor / Thermostats / Theater / HVAC Theater' Mode Cool

Wait 5 seconds

Set 'Indoor / Thermostats / Theater / HVAC Theater' Fan Auto

Wait 5 seconds

Set 'Indoor / Thermostats / Theater / HVAC Theater' 80° (Cool Setpoint)

Wait 2 seconds

Set 'Theater / Equipment Fan' On

 

Else

- No Actions - (To add one, press 'Action')

 

 

 

Then to turn it Off:

 

If

IR 'IR_019' is Pressed

 

Then

Set 'Indoor / Thermostats / Theater / HVAC Theater' Mode Off

Wait 5 seconds

Set 'Indoor / Thermostats / Theater / HVAC Theater' Fan Auto

Wait 5 minutes

Set 'Theater / Receptacle / Theater SW' Off

Wait 5 seconds

Set 'Theater / Receptacle / Theater SE' Off

Wait 5 seconds

Set 'Theater / Receptacle / Theater NW' Off

Wait 5 seconds

Set 'Theater / Receptacle / Theater NE' Off

Wait 1 hour

Set 'Theater / Equipment Fan' Off

 

Else

- No Actions - (To add one, press 'Action')

 

 

 

 

Will this logic work?

Posted

Hi mitch236,

 

Why don't you use

Stop Program 'Theater Off'?

 

-or-

 

If

IR 'IR_019' is Pressed

And IR 'IR_020' is Not Pressed

 

Then

etc.

 

Rand

Guest
This topic is now closed to further replies.

×
×
  • Create New...