From cbd55b0366e7f8a0b4b10463a96a2a61dd653265 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Mon, 19 Dec 2022 13:31:31 +0100 Subject: [PATCH] uom "Kelvin" to HA temperature --- src/mqtt.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mqtt.cpp b/src/mqtt.cpp index 9dd961435..bfb350a6c 100644 --- a/src/mqtt.cpp +++ b/src/mqtt.cpp @@ -1119,6 +1119,7 @@ void Mqtt::publish_ha_sensor_config(uint8_t type, // EMSdev switch (uom) { case DeviceValueUOM::DEGREES: case DeviceValueUOM::DEGREES_R: + case DeviceValueUOM::K: doc[ic_ha] = F_(icondegrees); break; case DeviceValueUOM::PERCENT: @@ -1184,6 +1185,7 @@ void Mqtt::publish_ha_sensor_config(uint8_t type, // EMSdev switch (uom) { case DeviceValueUOM::DEGREES: case DeviceValueUOM::DEGREES_R: + case DeviceValueUOM::K: doc[sc_ha] = F_(measurement); doc[dc_ha] = "temperature"; // no icon needed break;