add heatingactive/tapwateractive to onChange #1806

This commit is contained in:
MichaelDvP
2024-06-27 08:26:16 +02:00
parent 39014a2216
commit 03513be144

View File

@@ -1079,7 +1079,7 @@ void Boiler::check_active() {
b = ((boilerState_ & 0x09) == 0x09); b = ((boilerState_ & 0x09) == 0x09);
val = b ? EMS_VALUE_BOOL_ON : EMS_VALUE_BOOL_OFF; val = b ? EMS_VALUE_BOOL_ON : EMS_VALUE_BOOL_OFF;
if (heatingActive_ != val) { if (heatingActive_ != val) {
heatingActive_ = val; has_update(heatingActive_, val);
char s[12]; char s[12];
Mqtt::queue_publish(F_(heating_active), Helpers::render_boolean(s, b)); 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; val = b ? EMS_VALUE_BOOL_ON : EMS_VALUE_BOOL_OFF;
if (tapwaterActive_ != val) { if (tapwaterActive_ != val) {
tapwaterActive_ = val; has_update(tapwaterActive_, val);
char s[12]; char s[12];
Mqtt::queue_publish(F_(tapwater_active), Helpers::render_boolean(s, b)); Mqtt::queue_publish(F_(tapwater_active), Helpers::render_boolean(s, b));
// if (flowsensor) { // if (flowsensor) {