mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
add heatingactive/tapwateractive to onChange #1806
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user