fix misuse of forceheatingoff

This commit is contained in:
MichaelDvP
2025-10-07 07:23:27 +02:00
parent 7c5351f15f
commit 4cfd9b699c

View File

@@ -3433,6 +3433,9 @@ bool Boiler::set_wwAltOpPrio(const char * value, const int8_t id) {
bool Boiler::set_forceHeatingOff(const char * value, const int8_t id) { bool Boiler::set_forceHeatingOff(const char * value, const int8_t id) {
bool v; bool v;
if (Helpers::value2bool(value, v)) { if (Helpers::value2bool(value, v)) {
if (v == (forceHeatingOff_ > 0)) { // no change, ignore
return true;
}
has_update(forceHeatingOff_, v); has_update(forceHeatingOff_, v);
if (!v && Helpers::hasValue(heatingTemp_)) { if (!v && Helpers::hasValue(heatingTemp_)) {
if (has_telegram_id(0xE4)) { if (has_telegram_id(0xE4)) {