zigbee-herdsman-converters 14.0.407 → 14.0.408
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/devices/gledopto.js +11 -0
- package/npm-shrinkwrap.json +1 -1
- package/package.json +1 -1
package/devices/gledopto.js
CHANGED
|
@@ -62,6 +62,12 @@ const gledoptoExtend = {
|
|
|
62
62
|
}),
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
+
const configureReadModelID = async (device, coordinatorEndpoint, logger) => {
|
|
66
|
+
// https://github.com/Koenkk/zigbee-herdsman-converters/issues/3016#issuecomment-1027726604
|
|
67
|
+
const endpoint = device.endpoints[0];
|
|
68
|
+
await endpoint.read('genBasic', ['modelId']);
|
|
69
|
+
};
|
|
70
|
+
|
|
65
71
|
module.exports = [
|
|
66
72
|
{
|
|
67
73
|
fingerprint: [
|
|
@@ -117,6 +123,7 @@ module.exports = [
|
|
|
117
123
|
ota: ota.zigbeeOTA,
|
|
118
124
|
description: 'Zigbee LED Controller WW/CW (pro)',
|
|
119
125
|
extend: gledoptoExtend.light_onoff_brightness_colortemp(),
|
|
126
|
+
configure: configureReadModelID,
|
|
120
127
|
},
|
|
121
128
|
{
|
|
122
129
|
fingerprint: [
|
|
@@ -180,6 +187,7 @@ module.exports = [
|
|
|
180
187
|
ota: ota.zigbeeOTA,
|
|
181
188
|
description: 'Zigbee LED Controller RGBW (pro)',
|
|
182
189
|
extend: gledoptoExtend.light_onoff_brightness_colortemp_color(),
|
|
190
|
+
configure: configureReadModelID,
|
|
183
191
|
},
|
|
184
192
|
{
|
|
185
193
|
fingerprint: [
|
|
@@ -238,6 +246,7 @@ module.exports = [
|
|
|
238
246
|
ota: ota.zigbeeOTA,
|
|
239
247
|
description: 'Zigbee LED Controller RGB (pro)',
|
|
240
248
|
extend: gledoptoExtend.light_onoff_brightness_color(),
|
|
249
|
+
configure: configureReadModelID,
|
|
241
250
|
},
|
|
242
251
|
{
|
|
243
252
|
zigbeeModel: ['GL-C-008P'],
|
|
@@ -247,6 +256,7 @@ module.exports = [
|
|
|
247
256
|
description: 'Zigbee LED Controller RGB+CCT (pro)',
|
|
248
257
|
extend: gledoptoExtend.light_onoff_brightness_colortemp_color({colorTempRange: [158, 495]}),
|
|
249
258
|
meta: {disableDefaultResponse: true},
|
|
259
|
+
configure: configureReadModelID,
|
|
250
260
|
},
|
|
251
261
|
{
|
|
252
262
|
zigbeeModel: ['GL-C-009'],
|
|
@@ -268,6 +278,7 @@ module.exports = [
|
|
|
268
278
|
ota: ota.zigbeeOTA,
|
|
269
279
|
description: 'Zigbee LED Controller W (pro)',
|
|
270
280
|
extend: gledoptoExtend.light_onoff_brightness(),
|
|
281
|
+
configure: configureReadModelID,
|
|
271
282
|
},
|
|
272
283
|
{
|
|
273
284
|
zigbeeModel: ['GL-C-009S'],
|
package/npm-shrinkwrap.json
CHANGED