From f54ccd40e6af1f5752ef46faf4953b297b67f99e Mon Sep 17 00:00:00 2001 From: Koen Schaper Date: Sun, 14 Nov 2021 15:29:32 +0100 Subject: [PATCH] revert auto mode -> the mode is hardcoded for the thermostat_ha_cmd #183 --- src/devices/thermostat.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/devices/thermostat.cpp b/src/devices/thermostat.cpp index 826cd271d..b0d139b19 100644 --- a/src/devices/thermostat.cpp +++ b/src/devices/thermostat.cpp @@ -2228,8 +2228,14 @@ bool Thermostat::set_temperature(const float temperature, const uint8_t mode, co case HeatingCircuit::Mode::DAY: offset = 4; 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) { offset = EMS_OFFSET_RC20Set_temp;