Skip to content

Commit

Permalink
Fix thermostat NHCII overrule stop on mode change
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
  • Loading branch information
mherwege committed Jun 1, 2022
1 parent 08f3c7a commit 71a3dc1
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -569,11 +569,11 @@ private void updateThermostatState(NhcThermostat2 thermostat, List<NhcProperty>
int measured = ambientTemperatureProperty.orElse(thermostat.getMeasured());
int setpoint = setpointTemperatureProperty.orElse(thermostat.getSetpoint());

int overrule = thermostat.getOverrule();
int overruletime = thermostat.getRemainingOverruletime();
if (overruleActiveProperty.orElse(false)) {
overrule = overruleSetpointProperty.orElse(0);
overruletime = overruleTimeProperty.orElse(0);
int overrule = 0;
int overruletime = 0;
if (overruleActiveProperty.orElse(true)) {
overrule = overruleSetpointProperty.orElse(thermostat.getOverrule());
overruletime = overruleTimeProperty.orElse(thermostat.getRemainingOverruletime());
}

int ecosave = thermostat.getEcosave();
Expand Down

0 comments on commit 71a3dc1

Please sign in to comment.