Jump to content

Lights On/Off Change Thermostat Setting (Day vs Night)


bbconvert

Recommended Posts

Hopefully, the pseudo code below explains what I am trying to do. The light switch in the room affects the thermostat settings, but differently if it is day or night.

 

My code does work, but with three programs. I wonder if anybody has a better way of achieving this? Thanks much in advance

 

Program 1 - Control

 

If From 6 AM to 10 PM (same day)

Then

Enable Program Day

Disable Program Night

Else

Disable Program Day

Enable Program Night

 

Program 2 - Day

 

If Status Light is ON

Then

Set Thermostat 70 (Heat Setpoint)

Set Thermostat 75 (Cool Setpoint)

Else

Set Thermostat 65 (Heat Setpoint)

Set Thermostat 80 (Cool Setpoint)

 

Program 3 - Night

 

If Status Light is ON

Then

Set Thermostat 70 (Heat Setpoint)

Set Thermostat 75 (Cool Setpoint)

Else

Set Thermostat 60 (Heat Setpoint)

Set Thermostat 85 (Cool Setpoint)

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...