mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-13 11:44:29 +05:00
added OT parameter DHW to CH2
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user