mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
revert auto mode -> the mode is hardcoded for the thermostat_ha_cmd #183
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user