Guy contrubuted:

Program assumes a temperature bobcat at module address 1. Turns heating
or cooling off with a 1 degree deadband. Turns on second stage heat if
heating and setpoint has not been reached after 15 minutes. Shows heat
and cool setpoints, plus current temperature on Leopard screen.
Activates both heat stages and cooling with seperate X-10 commands,
modify as needed for relay modules instead.