ISY-99i/ISY-26 INSTEON:Create a Thermostat Program

From Universal Devices, Inc. Wiki

To start, I wrote a few programs to get the overall status of my office. The first simply checks to see if the current day/time is within my normal work schedule. If it is, the program is true:


OFFICE WORK HOURS

If
       On Mon, Tue, Wed, Thu, Fri
       From     9:00:00AM
       To       5:00:00PM (same day)

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

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


Unfortunately, I often need to put in late nights. To account for times I might be in the office outside of normal work hours, I also added this program to check the status of lights. If any of the lights in my office are on, this program is true:


OFFICE LIGHT STATUS

If
       Status  'OfficeLight1' is not Off
    Or Status  'OfficeLight2' is not Off
    Or Status  'OfficeLight3' is not Off

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

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


Finally, I wrote a notification program to let me know if there are any extreme temperature situations that might indicate a heating/AC equipment failure. This will both email me and send a text message to my phone if either of the conditions is true.


OFFICE SAFETY CHECK

If
       Status  'OfficeThermostat' > 90° (Temperature)
    Or Status  'OfficeThermostat' < 60° (Temperature)

Then
       Send Notification to All

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



I'm up here in New England, so my thermostat controls both a furnace (for the cooler moths) and a wholehouse AC (for the warmer months). My ideal goal is to simply leave the thermostat in COOL mode in the summer, and manually switch it to HEAT mode when I want to start using the heater, then manually back to COOL mode when I want to start using the AC again. I prefer to make that switch manually, but would like to automate the rest as much as possible.

All programs check to see if the thermostat is in COOL or HEAT mode, so if I'd like I can switch the thermostat to OFF or one of the PROGRAM modes to avoid the automation I've setup on the ISY.


The next program checks to see if the office lights are off and if the thermostat is in COOL mode. If they are, and it's outside of normal work hours, the program will increase the setpoint of the thermostat to save energy. I don't base vacancy only on status of lights, because there are times during the day that we might run out for a quick bite to eat or simply not need the lights on. But if the lights are ON, even after hours, I don't adjust the setpoint because we're clearly in the office working. I also include a 2 minute wait before adjusting the thermostat in case I'm working late and simply turned off the lights briefly for some reason.


OFFICE COOL VACANT

If
       Status  'OfficeThermostat' is Mode Cool
   And Program 'Office Work Hours' is False
   And Program 'Office Light Status' is False
   And Status  'OfficeThermostat' < 85° (Setpoint)

Then
       Wait  2 minutes
       Set 'OfficeThermostat' 85° (Cool Setpoint)

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


For the cooler months when the thermostat is in HEAT mode, I have the following program:


OFFICE HEAT VACANT

If
       Status  'OfficeThermostat' is Mode Heat
   And Program 'Office Work Hours' is False
   And Program 'Office Light Status' is False
   And Status  'OfficeThermostat' > 65° (Setpoint)

Then
       Wait  2 minutes
       Set 'OfficeThermostat' 65° (Heat Setpoint)

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



For times I am IN the office, I want to make it a bit more comfortable. Notice that I'm only checking to see if the setpoint is at LEAST a certain value, so that in the winter I can manually set it a bit warmer if I want and in the summer maybe set it a bit cooler. But, these programs ensure that the temperature is at least reasonable:


OFFICE COOL OCCUPIED

If
       Status  'OfficeThermostat' is Mode Cool
   And (
            Program 'Office Work Hours' is True
         Or Program 'Office Light Status' is True
       )
   And Status  'OfficeThermostat' > 76° (Temperature)
   And Status  'OfficeThermostat' > 76° (Setpoint)

Then
       Wait  2 minutes
       Set 'OfficeThermostat' 76° (Cool Setpoint)

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


Here is the HEAT version for cooler months:


OFFICE HEAT OCCUPIED

If
       Status  'OfficeThermostat' is Mode Heat
   And (
            Program 'Office Work Hours' is True
         Or Program 'Office Light Status' is True
       )
   And Status  'OfficeThermostat' < 68° (Temperature)
   And Status  'OfficeThermostat' < 68° (Setpoint)

Then
       Wait  2 minutes
       Set 'OfficeThermostat' 68° (Heat Setpoint)

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





ISY-26 INSTEON / ISY-99i Series INSTEON : How-To Guide

ISY-99i/ISY-26 INSTEON:Link Management Menu

ISY-99i/ISY-26 INSTEON:Linking a Thermostat