added OT parameter DHW to CH2

This commit is contained in:
Yurii
2023-11-23 01:57:08 +03:00
parent 7bfad224fe
commit e82d47e1dc
3 changed files with 51 additions and 0 deletions

View File

@@ -57,6 +57,9 @@ protected:
bool heatingCh2Enabled = settings.opentherm.heatingCh2Enabled;
if (settings.opentherm.heatingCh1ToCh2) {
heatingCh2Enabled = heatingEnabled;
} else if (settings.opentherm.dhwToCh2) {
heatingCh2Enabled = settings.opentherm.dhwPresent && settings.dhw.enable;
}
localResponse = ot->setBoilerStatus(
@@ -232,6 +235,12 @@ protected:
} else {
Log.swarningln("OT.DHW", "Failed set temp");
}
if (settings.opentherm.dhwToCh2) {
if (!ot->setHeatingCh2Temp(newDHWTemp)) {
Log.swarningln("OT.DHW", "Failed set ch2 temp");
}
}
}
//