From 3da0a876f6b4099085bd98fb9a122236361ba566 Mon Sep 17 00:00:00 2001 From: Dominic Griesel Date: Tue, 2 Apr 2024 12:26:09 +0200 Subject: [PATCH] fix(config): override supported sensor scales for HELTUN HE-ZW-THERM-FL2 --- .../devices/0x0344/he-zw-therm-fl2.json | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/packages/config/config/devices/0x0344/he-zw-therm-fl2.json b/packages/config/config/devices/0x0344/he-zw-therm-fl2.json index 5e4fdec7f858..2c906d0fbe2c 100644 --- a/packages/config/config/devices/0x0344/he-zw-therm-fl2.json +++ b/packages/config/config/devices/0x0344/he-zw-therm-fl2.json @@ -629,5 +629,22 @@ "maxValue": 370, "defaultValue": 180 } - ] + ], + "compat": { + "overrideQueries": { + // The response to the supported scales query is off by one bit: https://github.com/zwave-js/node-zwave-js/issues/6680 + "Multilevel Sensor": [ + { + "method": "getSupportedScales", + "matchArgs": [3], // Illuminance + "result": [ + 1 // Lux + ], + "persistValues": { + "supportedScales(3)": [1] + } + } + ] + } + } }