diff --git a/src/devices/boiler.cpp b/src/devices/boiler.cpp index 3bfe0767d..54aae1df1 100644 --- a/src/devices/boiler.cpp +++ b/src/devices/boiler.cpp @@ -88,6 +88,9 @@ Boiler::Boiler(uint8_t device_type, int8_t device_id, uint8_t product_id, const reserve_device_values(50); // main - boiler_data topic + register_device_value(TAG_BOILER_DATA, &id_, DeviceValueType::UINT, nullptr, F("id"), nullptr); // empty full name to prevent being shown in web or console + id_ = product_id; + register_device_value(TAG_BOILER_DATA, &heatingActive_, DeviceValueType::BOOL, nullptr, F("heatingActive"), F("Heating active")); register_device_value(TAG_BOILER_DATA, &tapwaterActive_, DeviceValueType::BOOL, nullptr, F("tapwaterActive"), F("Warm water/DHW active")); diff --git a/src/devices/boiler.h b/src/devices/boiler.h index ee846385a..240816fdd 100644 --- a/src/devices/boiler.h +++ b/src/devices/boiler.h @@ -80,6 +80,7 @@ class Boiler : public EMSdevice { uint16_t tankMiddleTemp_; // Tank middle temperature (TS3) // main + uint8_t id_; // product id uint8_t heatingActive_; // Central heating is on/off uint8_t tapwaterActive_; // Hot tap water is on/off uint8_t selFlowTemp_; // Selected flow temperature