mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
RC300 offsettemp factor, fetch curve-setpoint
This commit is contained in:
@@ -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::HeatingCircuit> 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user