mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 08:49:52 +03:00
add id to boiler_data
This commit is contained in:
@@ -88,6 +88,9 @@ Boiler::Boiler(uint8_t device_type, int8_t device_id, uint8_t product_id, const
|
|||||||
reserve_device_values(50);
|
reserve_device_values(50);
|
||||||
|
|
||||||
// main - boiler_data topic
|
// 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, &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"));
|
register_device_value(TAG_BOILER_DATA, &tapwaterActive_, DeviceValueType::BOOL, nullptr, F("tapwaterActive"), F("Warm water/DHW active"));
|
||||||
|
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ class Boiler : public EMSdevice {
|
|||||||
uint16_t tankMiddleTemp_; // Tank middle temperature (TS3)
|
uint16_t tankMiddleTemp_; // Tank middle temperature (TS3)
|
||||||
|
|
||||||
// main
|
// main
|
||||||
|
uint8_t id_; // product id
|
||||||
uint8_t heatingActive_; // Central heating is on/off
|
uint8_t heatingActive_; // Central heating is on/off
|
||||||
uint8_t tapwaterActive_; // Hot tap water is on/off
|
uint8_t tapwaterActive_; // Hot tap water is on/off
|
||||||
uint8_t selFlowTemp_; // Selected flow temperature
|
uint8_t selFlowTemp_; // Selected flow temperature
|
||||||
|
|||||||
Reference in New Issue
Block a user