From 325b566680a1ff55464e0c537b3b67e22f25827d Mon Sep 17 00:00:00 2001 From: RobXYZ Date: Wed, 29 Jan 2025 12:00:37 +0000 Subject: [PATCH 1/2] Add support for Gledopto GL-G-005P --- src/devices/gledopto.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/devices/gledopto.ts b/src/devices/gledopto.ts index b1ac0abaec168..ab9ea37a58682 100644 --- a/src/devices/gledopto.ts +++ b/src/devices/gledopto.ts @@ -658,6 +658,13 @@ const definitions: DefinitionWithExtend[] = [ description: 'Zigbee 7W garden light Pro RGB+CCT', extend: [gledoptoLight({colorTemp: {range: [158, 495]}, color: true})], }, + { + zigbeeModel: ['GL-G-005P'], + model: 'GL-G-005P', + vendor: 'Gledopto', + description: 'Zigbee 7W garden light Pro RGB+CCT', + extend: [gledoptoLight({"colorTemp":{"range":[158,495]},"color":{"modes":["xy","hs"],"enhancedHue":true}})], + }, { zigbeeModel: ['GL-B-007ZS'], model: 'GL-B-007ZS', From 0b9742ed94905b36802fd193b2524ab708bfd8df Mon Sep 17 00:00:00 2001 From: RobXYZ Date: Wed, 29 Jan 2025 19:54:48 +0000 Subject: [PATCH 2/2] prettier --- src/devices/gledopto.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/gledopto.ts b/src/devices/gledopto.ts index ab9ea37a58682..ac1aa2ba1260b 100644 --- a/src/devices/gledopto.ts +++ b/src/devices/gledopto.ts @@ -663,7 +663,7 @@ const definitions: DefinitionWithExtend[] = [ model: 'GL-G-005P', vendor: 'Gledopto', description: 'Zigbee 7W garden light Pro RGB+CCT', - extend: [gledoptoLight({"colorTemp":{"range":[158,495]},"color":{"modes":["xy","hs"],"enhancedHue":true}})], + extend: [gledoptoLight({colorTemp: {range: [158, 495]}, color: {modes: ['xy', 'hs'], enhancedHue: true}})], }, { zigbeeModel: ['GL-B-007ZS'],