Thermostat -> Optimize the automatic software mode so that it doesnt set the mode when not needed. Update tests.