Skip to content

Commit 4b11bdc

Browse files
authored
fix: Configure reporting for various Sunricher devices (#9110)
1 parent b380e07 commit 4b11bdc

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/devices/iluminize.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export const definitions: DefinitionWithExtend[] = [
176176
vendor: "Iluminize",
177177
whiteLabel: [{vendor: "Sunricher", model: "HK-ZD-RGBCCT-A"}],
178178
description: "Zigbee 3.0 universal LED-controller, 5 channel, RGBCCT LED",
179-
extend: [m.light({colorTemp: {range: undefined}, color: true})],
179+
extend: [m.light({colorTemp: {range: undefined}, color: true, configureReporting: true})],
180180
},
181181
{
182182
zigbeeModel: ["ZG2819S-RGBW"],

src/devices/sunricher.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -477,14 +477,14 @@ export const definitions: DefinitionWithExtend[] = [
477477
model: "SR-ZG2835RAC-UK",
478478
vendor: "Sunricher",
479479
description: "Push compatible zigBee knob smart dimmer",
480-
extend: [m.light(), m.electricityMeter(), sunricher.extend.externalSwitchType()],
480+
extend: [m.light({configureReporting: true}), m.electricityMeter(), sunricher.extend.externalSwitchType()],
481481
},
482482
{
483483
zigbeeModel: ["ZG2837RAC-K4"],
484484
model: "SR-ZG2835RAC-NK4",
485485
vendor: "Sunricher",
486486
description: "4-Key zigbee rotary & push button smart dimmer",
487-
extend: [m.light(), m.electricityMeter(), m.commandsScenes()],
487+
extend: [m.light({configureReporting: true}), m.electricityMeter(), m.commandsScenes()],
488488
},
489489
{
490490
zigbeeModel: ["HK-ZRC-K5&RS-TL"],
@@ -751,7 +751,7 @@ export const definitions: DefinitionWithExtend[] = [
751751
access: "ALL",
752752
}),
753753
m.deviceEndpoints({endpoints: {"1": 1, "2": 2, "3": 3}}),
754-
m.light(),
754+
m.light({configureReporting: true}),
755755
m.occupancy({endpointNames: ["2"]}),
756756
m.illuminance({endpointNames: ["3"]}),
757757
m.commandsOnOff(),
@@ -895,7 +895,7 @@ export const definitions: DefinitionWithExtend[] = [
895895
model: "HK-ZD-CCT-A",
896896
vendor: "Sunricher",
897897
description: "50W Zigbee CCT LED driver (constant current)",
898-
extend: [m.light({colorTemp: {range: [160, 450]}})],
898+
extend: [m.light({colorTemp: {range: [160, 450]}, configureReporting: true})],
899899
},
900900
{
901901
zigbeeModel: ["ZGRC-KEY-004"],
@@ -1052,7 +1052,7 @@ export const definitions: DefinitionWithExtend[] = [
10521052
model: "ZG192910-4",
10531053
vendor: "Sunricher",
10541054
description: "Zigbee LED-controller",
1055-
extend: [m.light({colorTemp: {range: undefined}})],
1055+
extend: [m.light({colorTemp: {range: undefined}, configureReporting: true})],
10561056
},
10571057
{
10581058
zigbeeModel: ["ZG9101SAC-HP"],
@@ -1107,21 +1107,21 @@ export const definitions: DefinitionWithExtend[] = [
11071107
model: "SRP-ZG9105-CC",
11081108
vendor: "Sunricher",
11091109
description: "Constant Current Zigbee LED dimmable driver",
1110-
extend: [m.light()],
1110+
extend: [m.light({configureReporting: true}), sunricher.extend.externalSwitchType()],
11111111
},
11121112
{
11131113
fingerprint: [{modelID: "HK-ZD-DIM-A", softwareBuildID: "2.9.2_r72"}],
11141114
model: "SR-ZG9101CS",
11151115
vendor: "Sunricher",
11161116
description: "Constant Current Zigbee LED dimmable driver",
1117-
extend: [m.light({configureReporting: true})],
1117+
extend: [m.light({configureReporting: true}), sunricher.extend.externalSwitchType()],
11181118
},
11191119
{
11201120
zigbeeModel: ["HK-DIM"],
11211121
model: "50208702",
11221122
vendor: "Sunricher",
11231123
description: "LED dimmable driver",
1124-
extend: [m.light()],
1124+
extend: [m.light({configureReporting: true})],
11251125
whiteLabel: [{vendor: "Yphix", model: "50208702"}],
11261126
toZigbee: [sunricher.tz.setModel],
11271127
// Some ZG9030A-MW devices were mistakenly set with the modelId HK-DIM during manufacturing.

0 commit comments

Comments
 (0)