Added support for thermostat relay system