[OBSOLETE] Thermostat Mode Director


There is already a smartapp that can do all this, and much more (i.e.,alternative cooling, zoned heating/cooling, smart vent control, fan control based on temp differential between indoor sensors, etc).

It’s called ScheduleTstatZones, and it’s been available for more than 2 years now:

The code is stable and a lot of users love it!