Skip to content

Commit

Permalink
revert auto mode -> the mode is hardcoded for the thermostat_ha_cmd e…
Browse files Browse the repository at this point in the history
  • Loading branch information
kpschaper committed Nov 14, 2021
1 parent bf68a55 commit 87d8e23
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/devices/thermostat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2228,8 +2228,14 @@ bool Thermostat::set_temperature(const float temperature, const uint8_t mode, co
case HeatingCircuit::Mode::DAY:
offset = 4;
break;
case HeatingCircuit::Mode::AUTO:
if (hc->get_mode() == HeatingCircuit::Mode::NIGHT) {
offset = 3;
} else {
offset = 4;
}
break;
}

} else if (model == EMS_DEVICE_FLAG_RC20) {
offset = EMS_OFFSET_RC20Set_temp;

Expand Down

0 comments on commit 87d8e23

Please sign in to comment.