From b51b751e53f7ba8454693248ff309f6e9034996f Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Tue, 7 May 2024 17:20:39 +0200 Subject: [PATCH] dhw tag in HA format 3.4, fix #1747 --- src/mqtt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mqtt.cpp b/src/mqtt.cpp index b59c2fab0..14c47e3e8 100644 --- a/src/mqtt.cpp +++ b/src/mqtt.cpp @@ -901,7 +901,7 @@ bool Mqtt::publish_ha_sensor_config(uint8_t type, // EMSdev if (has_tag && (device_type == EMSdevice::DeviceType::BOILER || device_type == EMSdevice::DeviceType::THERMOSTAT) && tag == DeviceValue::DeviceValueTAG::TAG_DHW1) { snprintf(entity_with_tag, sizeof(entity_with_tag), "ww%s", entity); - snprintf(uniq_id, sizeof(uniq_id), "%s_%s", device_name, Helpers::toLower(uniq_s).c_str()); + snprintf(uniq_id, sizeof(uniq_id), "%s_dhw_%s", device_name, Helpers::toLower(uniq_s).c_str()); for (uint8_t i = 0; i < num_dhw_old; i++) { if (strcmp(entity, dhw_old[i]) == 0) { // special case for tp1de #1714 snprintf(entity_with_tag, sizeof(entity_with_tag), "%sww", dhw_old[i]);