From 03513be144a4e27be6a68735e122d4a5187fd06d Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Thu, 27 Jun 2024 08:26:16 +0200 Subject: [PATCH] add heatingactive/tapwateractive to onChange #1806 --- src/devices/boiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/boiler.cpp b/src/devices/boiler.cpp index e78bbf567..14fcd8789 100644 --- a/src/devices/boiler.cpp +++ b/src/devices/boiler.cpp @@ -1079,7 +1079,7 @@ void Boiler::check_active() { b = ((boilerState_ & 0x09) == 0x09); val = b ? EMS_VALUE_BOOL_ON : EMS_VALUE_BOOL_OFF; if (heatingActive_ != val) { - heatingActive_ = val; + has_update(heatingActive_, val); char s[12]; Mqtt::queue_publish(F_(heating_active), Helpers::render_boolean(s, b)); } @@ -1103,7 +1103,7 @@ void Boiler::check_active() { val = b ? EMS_VALUE_BOOL_ON : EMS_VALUE_BOOL_OFF; if (tapwaterActive_ != val) { - tapwaterActive_ = val; + has_update(tapwaterActive_, val); char s[12]; Mqtt::queue_publish(F_(tapwater_active), Helpers::render_boolean(s, b)); // if (flowsensor) {