Skip to content

Commit

Permalink
fix #89
Browse files Browse the repository at this point in the history
Also Norbert have 0xFF on his list.
  • Loading branch information
MichaelDvP authored Jul 25, 2021
1 parent 15c682c commit f97cdcb
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/devices/boiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1112,17 +1112,12 @@ bool Boiler::set_warmwater_activated(const char * value, const int8_t id) {
LOG_INFO(F("Setting boiler warm water active %s"), v ? "on" : "off");

// https://github.com/emsesp/EMS-ESP/issues/268
uint8_t n;
if (EMSbus::is_ht3()) {
n = (v ? 0x08 : 0x00); // 0x08 is on, 0x00 is off
} else {
n = (v ? 0xFF : 0x00); // 0xFF is on, 0x00 is off
}
// 08 for HT3 seems to be wrong, see https://github.com/emsesp/EMS-ESP32/issues/89

if (get_toggle_fetch(EMS_TYPE_UBAParameterWWPlus)) {
write_command(EMS_TYPE_UBAParameterWWPlus, 1, v ? 1 : 0, EMS_TYPE_UBAParameterWWPlus);
} else {
write_command(EMS_TYPE_UBAParameterWW, 1, n, 0x34);
write_command(EMS_TYPE_UBAParameterWW, 1, v ? 0xFF : 0, EMS_TYPE_UBAParameterWW);
}

return true;
Expand Down

0 comments on commit f97cdcb

Please sign in to comment.