add id to boiler_data

This commit is contained in:
proddy
2021-02-27 21:49:04 +01:00
parent 5984dca16a
commit c7063e0f33
2 changed files with 4 additions and 0 deletions

View File

@@ -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"));

View File

@@ -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