From f30849e8158ccccafbd9fa602b9d609a87cc1be1 Mon Sep 17 00:00:00 2001 From: Mark Roberts Date: Sat, 8 Jul 2023 21:02:16 +0100 Subject: [PATCH 1/4] Add Candeo dimming smart plug --- src/devices/candeo.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/devices/candeo.ts b/src/devices/candeo.ts index c9dd91073e795..02574ba25fe0f 100644 --- a/src/devices/candeo.ts +++ b/src/devices/candeo.ts @@ -20,6 +20,22 @@ const definitions: Definition[] = [ await reporting.brightness(endpoint); }, }, + + { + fingerprint: [{modelID: 'Dimmer-Switch-ZB3.0', manufacturerId: 4098}], + model: 'C210', + vendor: 'Candeo', + description: 'Candeo Zigbee Dimming Smart Plug', + extend: extend.light_onoff_brightness({noConfigure: true, disableEffect: true}), + configure: async (device, coordinatorEndpoint, logger) => { + await extend.light_onoff_brightness().configure(device, coordinatorEndpoint, logger); + const endpoint = device.getEndpoint(1); + await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']); + await reporting.onOff(endpoint); + await reporting.brightness(endpoint); + }, + }, + { zigbeeModel: ['HK-DIM-A', 'Candeo Zigbee Dimmer'], fingerprint: [{modelID: 'HK_DIM_A', manufacturerName: 'Shyugj'}], From 9e7a71764ec6f164eabfc1ec453f4db69b46ffbe Mon Sep 17 00:00:00 2001 From: Mark Roberts Date: Sat, 8 Jul 2023 21:04:49 +0100 Subject: [PATCH 2/4] Add Candeo C210 --- src/devices/candeo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/candeo.ts b/src/devices/candeo.ts index 02574ba25fe0f..d8a90eeaff858 100644 --- a/src/devices/candeo.ts +++ b/src/devices/candeo.ts @@ -22,7 +22,7 @@ const definitions: Definition[] = [ }, { - fingerprint: [{modelID: 'Dimmer-Switch-ZB3.0', manufacturerId: 4098}], + fingerprint: [{modelID: 'Dimmer-Switch-ZB3.0', manufacturerID: 4098}], model: 'C210', vendor: 'Candeo', description: 'Candeo Zigbee Dimming Smart Plug', From 25903ff9493f3477c000f6178af7e757c67a28fa Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Sun, 9 Jul 2023 13:45:54 +0200 Subject: [PATCH 3/4] Update candeo.ts --- src/devices/candeo.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/devices/candeo.ts b/src/devices/candeo.ts index d8a90eeaff858..0e36369ae3a41 100644 --- a/src/devices/candeo.ts +++ b/src/devices/candeo.ts @@ -20,12 +20,11 @@ const definitions: Definition[] = [ await reporting.brightness(endpoint); }, }, - { fingerprint: [{modelID: 'Dimmer-Switch-ZB3.0', manufacturerID: 4098}], model: 'C210', vendor: 'Candeo', - description: 'Candeo Zigbee Dimming Smart Plug', + description: 'Zigbee dimming stmart plug', extend: extend.light_onoff_brightness({noConfigure: true, disableEffect: true}), configure: async (device, coordinatorEndpoint, logger) => { await extend.light_onoff_brightness().configure(device, coordinatorEndpoint, logger); @@ -35,7 +34,6 @@ const definitions: Definition[] = [ await reporting.brightness(endpoint); }, }, - { zigbeeModel: ['HK-DIM-A', 'Candeo Zigbee Dimmer'], fingerprint: [{modelID: 'HK_DIM_A', manufacturerName: 'Shyugj'}], From a2ddb6f0c86dbeaec7bace5f2406be9ddd3a3a66 Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Sun, 9 Jul 2023 13:47:03 +0200 Subject: [PATCH 4/4] Update candeo.ts --- src/devices/candeo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/candeo.ts b/src/devices/candeo.ts index 0e36369ae3a41..2ac362758ff10 100644 --- a/src/devices/candeo.ts +++ b/src/devices/candeo.ts @@ -24,7 +24,7 @@ const definitions: Definition[] = [ fingerprint: [{modelID: 'Dimmer-Switch-ZB3.0', manufacturerID: 4098}], model: 'C210', vendor: 'Candeo', - description: 'Zigbee dimming stmart plug', + description: 'Zigbee dimming smart plug', extend: extend.light_onoff_brightness({noConfigure: true, disableEffect: true}), configure: async (device, coordinatorEndpoint, logger) => { await extend.light_onoff_brightness().configure(device, coordinatorEndpoint, logger);