From 9b2e67b2de1ffad3a00fd38d5abce34288ac7953 Mon Sep 17 00:00:00 2001 From: Pierre-Gilles Leymarie Date: Fri, 15 Dec 2023 10:07:54 +0100 Subject: [PATCH] Zigbee2mqtt: Add illuminance sensor (#1979) --- server/services/zigbee2mqtt/exposes/numericType.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/services/zigbee2mqtt/exposes/numericType.js b/server/services/zigbee2mqtt/exposes/numericType.js index 3a8471befe..8c6f7983e9 100644 --- a/server/services/zigbee2mqtt/exposes/numericType.js +++ b/server/services/zigbee2mqtt/exposes/numericType.js @@ -142,6 +142,15 @@ module.exports = { max: 100000, }, }, + illuminance: { + feature: { + category: DEVICE_FEATURE_CATEGORIES.LIGHT_SENSOR, + type: DEVICE_FEATURE_TYPES.SENSOR.DECIMAL, + unit: DEVICE_FEATURE_UNITS.LUX, + min: 0, + max: 100000, + }, + }, local_temperature: { feature: { category: DEVICE_FEATURE_CATEGORIES.TEMPERATURE_SENSOR,