fix: added set target indoor temp to CH2 for native heating control #58

This commit is contained in:
Yurii
2024-04-23 08:13:03 +03:00
parent 85011ce4ea
commit 3c0f846335
2 changed files with 18 additions and 1 deletions

View File

@@ -144,7 +144,7 @@ protected:
heatingEnabled,
settings.opentherm.dhwPresent && settings.dhw.enable,
false,
false,
settings.opentherm.nativeHeatingControl,
heatingCh2Enabled,
settings.opentherm.summerWinterMode,
settings.opentherm.dhwBlocking
@@ -402,6 +402,13 @@ protected:
} else {
Log.swarningln(FPSTR(L_OT_HEATING), F("Failed set target indoor temp"));
}
// Set target temp to CH2
if (settings.opentherm.heatingCh1ToCh2) {
if (!this->instance->setRoomSetpointCh2(convertedTemp)) {
Log.swarningln(FPSTR(L_OT_HEATING), F("Failed set target indoor temp to CH2"));
}
}
}
// force enable pump