From bb08c668cc57e8d6bf8cc458ea1b7b5235255ddd Mon Sep 17 00:00:00 2001 From: Quint Stoffers Date: Fri, 14 Nov 2025 19:42:12 +0100 Subject: [PATCH 1/2] fix: xiaomi.derh.lite temperature precision MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add value-range step of 0.1 for dehumidifier temperature property to preserve decimal precision. The xiaomi.derh.lite dehumidifier was reporting temperature as integer instead of float due to the default value-range step of 1. This fix changes the step to 0.1 to allow one decimal place precision (e.g., 22.5°C instead of 23°C). Similar to the fix for cgllc.airm.cgd1st air monitor in commit 580ff87. --- custom_components/xiaomi_home/miot/specs/spec_modify.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/custom_components/xiaomi_home/miot/specs/spec_modify.yaml b/custom_components/xiaomi_home/miot/specs/spec_modify.yaml index bacbd4b..c561de0 100644 --- a/custom_components/xiaomi_home/miot/specs/spec_modify.yaml +++ b/custom_components/xiaomi_home/miot/specs/spec_modify.yaml @@ -92,6 +92,12 @@ urn:miot-spec-v2:device:air-purifier:0000A007:zhimi-ua1a:2: urn:miot-spec-v2:dev urn:miot-spec-v2:device:air-purifier:0000A007:zhimi-ua1a:3: prop.3.5: expr: (src_value*6) +urn:miot-spec-v2:device:dehumidifier:0000A02D:xiaomi-lite:1: + prop.3.2: + value-range: + - -30 + - 100 + - 0.1 urn:miot-spec-v2:device:airer:0000A00D:hyd-lyjpro:1: prop.2.3: name: current-position-a From 56ee4cd362c27c5a28bd64b81032d192ce105a29 Mon Sep 17 00:00:00 2001 From: Quint Stoffers Date: Fri, 14 Nov 2025 19:49:20 +0100 Subject: [PATCH 2/2] chore: sort dehumidifier entry --- .../xiaomi_home/miot/specs/spec_modify.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/custom_components/xiaomi_home/miot/specs/spec_modify.yaml b/custom_components/xiaomi_home/miot/specs/spec_modify.yaml index c561de0..4d7a42a 100644 --- a/custom_components/xiaomi_home/miot/specs/spec_modify.yaml +++ b/custom_components/xiaomi_home/miot/specs/spec_modify.yaml @@ -92,12 +92,6 @@ urn:miot-spec-v2:device:air-purifier:0000A007:zhimi-ua1a:2: urn:miot-spec-v2:dev urn:miot-spec-v2:device:air-purifier:0000A007:zhimi-ua1a:3: prop.3.5: expr: (src_value*6) -urn:miot-spec-v2:device:dehumidifier:0000A02D:xiaomi-lite:1: - prop.3.2: - value-range: - - -30 - - 100 - - 0.1 urn:miot-spec-v2:device:airer:0000A00D:hyd-lyjpro:1: prop.2.3: name: current-position-a @@ -144,6 +138,12 @@ urn:miot-spec-v2:device:bath-heater:0000A028:xiaomi-s1:1: urn:miot-spec-v2:device:curtain:0000A00C:bjkcz-kczble:1:0000D031: prop.2.2: name: status-a +urn:miot-spec-v2:device:dehumidifier:0000A02D:xiaomi-lite:1: + prop.3.2: + value-range: + - -30 + - 100 + - 0.1 urn:miot-spec-v2:device:electronic-valve:0000A0A7:sanmei-s1:1: prop.3.1: format: float