From 0639b3923e84c032be7edec04300531baf45ba34 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Sat, 21 Nov 2020 09:09:58 +0100 Subject: [PATCH] RC300 offsettemp factor, fetch curve-setpoint --- src/devices/thermostat.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/devices/thermostat.cpp b/src/devices/thermostat.cpp index d3e7dfd55..5e5accfb0 100644 --- a/src/devices/thermostat.cpp +++ b/src/devices/thermostat.cpp @@ -623,7 +623,11 @@ bool Thermostat::export_values_hc(uint8_t mqtt_format, JsonObject & rootThermost // Offset temperature if (Helpers::hasValue(hc->offsettemp)) { - dataThermostat["offsettemp"] = hc->offsettemp / 2; + if (flags == EMSdevice::EMS_DEVICE_FLAG_RC300 || flags == EMSdevice::EMS_DEVICE_FLAG_RC100) { + dataThermostat["offsettemp"] = hc->offsettemp; + } else { + dataThermostat["offsettemp"] = hc->offsettemp / 2; + } } // Design temperature @@ -847,6 +851,15 @@ std::shared_ptr Thermostat::heating_circuit(std::sha if (set_typeids.size()) { toggle_fetch(set_typeids[hc_num - 1], toggle_); } + if (summer_typeids.size()) { + toggle_fetch(summer_typeids[hc_num - 1], toggle_); + } + if (curve_typeids.size()) { + toggle_fetch(curve_typeids[hc_num - 1], toggle_); + } + if (timer_typeids.size()) { + toggle_fetch(timer_typeids[hc_num - 1], toggle_); + } return heating_circuits_.back(); // even after sorting, this should still point back to the newly created HC }