smart thermostat code for WattTime