mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
fix wwcharge-command #112
This commit is contained in:
@@ -1377,7 +1377,7 @@ bool Thermostat::set_wwcharge(const char * value, const int8_t id) {
|
||||
return false;
|
||||
}
|
||||
LOG_INFO(F("Setting warm water charge to %s"), b ? F_(on) : F_(off));
|
||||
write_command(0x02F5, 11, b, 0x02F5);
|
||||
write_command(0x02F5, 11, b ? 0xFF : 0x00, 0x02F5);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1413,19 +1413,6 @@ bool Thermostat::set_wwprio(const char * value, const int8_t id) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Set ww onetime RC300, ems+
|
||||
bool Thermostat::set_wwonetime(const char * value, const int8_t id) {
|
||||
bool b = false;
|
||||
if (!Helpers::value2bool(value, b)) {
|
||||
LOG_WARNING(F("Set warm water onetime: Invalid value"));
|
||||
return false;
|
||||
}
|
||||
LOG_INFO(F("Setting warm water onetime to %s"), b ? F_(on) : F_(off));
|
||||
write_command(0x02F5, 11, b ? 0xFF : 0x00, 0x031D);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// sets the thermostat ww circulation working mode, where mode is a string
|
||||
bool Thermostat::set_wwcircmode(const char * value, const int8_t id) {
|
||||
uint8_t set = 0xFF;
|
||||
|
||||
@@ -352,7 +352,6 @@ class Thermostat : public EMSdevice {
|
||||
bool set_wwmode(const char * value, const int8_t id);
|
||||
bool set_wwtemp(const char * value, const int8_t id);
|
||||
bool set_wwtemplow(const char * value, const int8_t id);
|
||||
bool set_wwonetime(const char * value, const int8_t id);
|
||||
bool set_wwcircmode(const char * value, const int8_t id);
|
||||
bool set_wwcharge(const char * value, const int8_t id);
|
||||
bool set_wwchargeduration(const char * value, const int8_t id);
|
||||
|
||||
Reference in New Issue
Block a user