From 2889899bfde85873bb22cb184b2f6fee6c823e98 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Sun, 12 Sep 2021 19:03:59 +0200 Subject: [PATCH] also add summertemp setting --- src/devices/thermostat.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/devices/thermostat.cpp b/src/devices/thermostat.cpp index 9a10e1d01..71cf0483e 100644 --- a/src/devices/thermostat.cpp +++ b/src/devices/thermostat.cpp @@ -2050,8 +2050,13 @@ bool Thermostat::set_temperature(const float temperature, const uint8_t mode, co validate_typeid = set_typeids[hc->hc_num() - 1]; switch (mode) { case HeatingCircuit::Mode::SUMMER: - offset = 0x06; - set_typeid = summer_typeids[hc->hc_num() - 1]; + if (is_fetch(summer2_typeids[hc->hc_num() - 1])) { + offset = 0x01; + set_typeid = summer2_typeids[hc->hc_num() - 1]; + } else { + offset = 0x06; + set_typeid = summer_typeids[hc->hc_num() - 1]; + } validate_typeid = set_typeid; factor = 1; break;