revert auto mode -> the mode is hardcoded for the thermostat_ha_cmd #183

This commit is contained in:
Koen Schaper
2021-11-14 15:29:32 +01:00
parent 5893487d4a
commit f54ccd40e6

View File

@@ -2228,8 +2228,14 @@ bool Thermostat::set_temperature(const float temperature, const uint8_t mode, co
case HeatingCircuit::Mode::DAY: case HeatingCircuit::Mode::DAY:
offset = 4; offset = 4;
break; break;
case HeatingCircuit::Mode::AUTO:
if (hc->get_mode() == HeatingCircuit::Mode::NIGHT) {
offset = 3;
} else {
offset = 4;
}
break;
} }
} else if (model == EMS_DEVICE_FLAG_RC20) { } else if (model == EMS_DEVICE_FLAG_RC20) {
offset = EMS_OFFSET_RC20Set_temp; offset = EMS_OFFSET_RC20Set_temp;