From 11590061a3b61304db294be4f0f19fb53f661eb9 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Sat, 18 Sep 2021 13:58:08 +0200 Subject: [PATCH] fix wwcharge-command #112 --- src/devices/thermostat.cpp | 15 +-------------- src/devices/thermostat.h | 1 - 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/src/devices/thermostat.cpp b/src/devices/thermostat.cpp index 7a44c84f5..f3b1e4df9 100644 --- a/src/devices/thermostat.cpp +++ b/src/devices/thermostat.cpp @@ -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; diff --git a/src/devices/thermostat.h b/src/devices/thermostat.h index 18f30ea46..530ea7d8b 100644 --- a/src/devices/thermostat.h +++ b/src/devices/thermostat.h @@ -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);