Fix initial state setting of thermostat