Initial commit for thermostat code