zigbee-herdsman-converters 14.0.525 → 14.0.526

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.
Files changed (2) hide show
  1. package/devices/philips.js +36 -24
  2. package/package.json +1 -1
@@ -3,27 +3,31 @@ const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/lega
3
3
  const tz = require('../converters/toZigbee');
4
4
  const ota = require('../lib/ota');
5
5
  const reporting = require('../lib/reporting');
6
- const extend = require('../lib/extend');
7
6
  const e = exposes.presets;
8
7
  const ea = exposes.access;
9
8
 
9
+ // Make sure extend.light_* is not used (hueExtend should be used instead)
10
+ const extendDontUse = require('../lib/extend');
11
+ const extend = {switch: extendDontUse.switch};
12
+
10
13
  const hueExtend = {
11
14
  light_onoff_brightness: (options={}) => ({
12
- ...extend.light_onoff_brightness(options),
13
- toZigbee: extend.light_onoff_brightness(options).toZigbee.concat([tz.hue_power_on_behavior, tz.hue_power_on_error]),
15
+ ...extendDontUse.light_onoff_brightness(options),
16
+ toZigbee: extendDontUse.light_onoff_brightness(options).toZigbee.concat([tz.hue_power_on_behavior, tz.hue_power_on_error]),
14
17
  }),
15
18
  light_onoff_brightness_colortemp: (options={}) => ({
16
- ...extend.light_onoff_brightness_colortemp(options),
17
- toZigbee: extend.light_onoff_brightness_colortemp(options).toZigbee.concat([tz.hue_power_on_behavior, tz.hue_power_on_error]),
19
+ ...extendDontUse.light_onoff_brightness_colortemp(options),
20
+ toZigbee: extendDontUse.light_onoff_brightness_colortemp(options).toZigbee
21
+ .concat([tz.hue_power_on_behavior, tz.hue_power_on_error]),
18
22
  }),
19
23
  light_onoff_brightness_color: (options={}) => ({
20
- ...extend.light_onoff_brightness_color({supportsHS: true, ...options}),
21
- toZigbee: extend.light_onoff_brightness_color({supportsHS: true, ...options}).toZigbee
24
+ ...extendDontUse.light_onoff_brightness_color({supportsHS: true, ...options}),
25
+ toZigbee: extendDontUse.light_onoff_brightness_color({supportsHS: true, ...options}).toZigbee
22
26
  .concat([tz.hue_power_on_behavior, tz.hue_power_on_error]),
23
27
  }),
24
28
  light_onoff_brightness_colortemp_color: (options={}) => ({
25
- ...extend.light_onoff_brightness_colortemp_color({supportsHS: true, ...options}),
26
- toZigbee: extend.light_onoff_brightness_colortemp_color({supportsHS: true, ...options})
29
+ ...extendDontUse.light_onoff_brightness_colortemp_color({supportsHS: true, ...options}),
30
+ toZigbee: extendDontUse.light_onoff_brightness_colortemp_color({supportsHS: true, ...options})
27
31
  .toZigbee.concat([tz.hue_power_on_behavior, tz.hue_power_on_error]),
28
32
  }),
29
33
  };
@@ -34,7 +38,7 @@ module.exports = [
34
38
  model: '929003055801',
35
39
  vendor: 'Philips',
36
40
  description: 'Hue white ambiance bathroom ceiling light Adore with Bluetooth',
37
- extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
41
+ extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
38
42
  },
39
43
  {
40
44
  zigbeeModel: ['929003045301_01', '929003045301_02', '929003045301_03'],
@@ -69,7 +73,7 @@ module.exports = [
69
73
  vendor: 'Philips',
70
74
  description: 'Hue white A60 bulb B22 1055lm with Bluetooth',
71
75
  meta: {turnsOffAtBrightness1: true},
72
- extend: extend.light_onoff_brightness(),
76
+ extend: hueExtend.light_onoff_brightness(),
73
77
  ota: ota.zigbeeOTA,
74
78
  },
75
79
  {
@@ -159,7 +163,7 @@ module.exports = [
159
163
  vendor: 'Philips',
160
164
  description: 'Hue Wellness table lamp',
161
165
  meta: {turnsOffAtBrightness1: true},
162
- extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
166
+ extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
163
167
  ota: ota.zigbeeOTA,
164
168
  },
165
169
  {
@@ -168,7 +172,7 @@ module.exports = [
168
172
  vendor: 'Philips',
169
173
  description: 'Hue white ambiance suspension Cher with bluetooth 3000lm',
170
174
  meta: {turnsOffAtBrightness1: true},
171
- extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 500]}),
175
+ extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 500]}),
172
176
  ota: ota.zigbeeOTA,
173
177
  },
174
178
  {
@@ -177,7 +181,7 @@ module.exports = [
177
181
  vendor: 'Philips',
178
182
  description: 'Hue White Ambiance Cher Pendant',
179
183
  meta: {turnsOffAtBrightness1: true},
180
- extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
184
+ extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
181
185
  ota: ota.zigbeeOTA,
182
186
  },
183
187
  {
@@ -221,7 +225,7 @@ module.exports = [
221
225
  model: '3418931P6',
222
226
  vendor: 'Philips',
223
227
  description: 'Hue white ambiance Struana bathroom ceiling with bluetooth 2400lm',
224
- extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 500]}),
228
+ extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 500]}),
225
229
  ota: ota.zigbeeOTA,
226
230
  },
227
231
  {
@@ -398,7 +402,15 @@ module.exports = [
398
402
  model: '929003055901',
399
403
  vendor: 'Philips',
400
404
  description: 'Hue white ambiance bathroom ceiling light Adore with Bluetooth',
401
- extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
405
+ extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
406
+ ota: ota.zigbeeOTA,
407
+ },
408
+ {
409
+ zigbeeModel: ['7602031N6'],
410
+ model: '7602031N6',
411
+ vendor: 'Philips',
412
+ description: 'Hue Go portable light',
413
+ extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 500]}),
402
414
  ota: ota.zigbeeOTA,
403
415
  },
404
416
  {
@@ -465,7 +477,7 @@ module.exports = [
465
477
  ota: ota.zigbeeOTA,
466
478
  },
467
479
  {
468
- zigbeeModel: ['LCT026', '7602031P7', '7602031U7', '7602031N6'],
480
+ zigbeeModel: ['LCT026', '7602031P7', '7602031U7'],
469
481
  model: '7602031P7',
470
482
  vendor: 'Philips',
471
483
  description: 'Hue Go with Bluetooth',
@@ -747,7 +759,7 @@ module.exports = [
747
759
  vendor: 'Philips',
748
760
  description: 'Hue white A60 bulb E27 1050lm with Bluetooth',
749
761
  meta: {turnsOffAtBrightness1: true},
750
- extend: extend.light_onoff_brightness(),
762
+ extend: hueExtend.light_onoff_brightness(),
751
763
  ota: ota.zigbeeOTA,
752
764
  },
753
765
  {
@@ -1411,7 +1423,7 @@ module.exports = [
1411
1423
  model: '929003054101',
1412
1424
  vendor: 'Philips',
1413
1425
  description: 'Hue Wellner white ambiance E27 806lm with Bluetooth',
1414
- extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
1426
+ extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
1415
1427
  },
1416
1428
  {
1417
1429
  zigbeeModel: ['3261330P6'],
@@ -2355,7 +2367,7 @@ module.exports = [
2355
2367
  model: '929003055201',
2356
2368
  vendor: 'Philips',
2357
2369
  description: 'Hue Being',
2358
- extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
2370
+ extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
2359
2371
  },
2360
2372
  {
2361
2373
  zigbeeModel: ['1743630P7', '1743630V7'],
@@ -2804,7 +2816,7 @@ module.exports = [
2804
2816
  vendor: 'Philips',
2805
2817
  description: 'Hue White & Color Ambiance Xamento M',
2806
2818
  meta: {turnsOffAtBrightness1: true},
2807
- extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500]}),
2819
+ extend: hueExtend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500]}),
2808
2820
  ota: ota.zigbeeOTA,
2809
2821
  },
2810
2822
  {
@@ -2813,7 +2825,7 @@ module.exports = [
2813
2825
  vendor: 'Philips',
2814
2826
  description: 'Hue White & Color Ambiance Surimu square panel',
2815
2827
  meta: {turnsOffAtBrightness1: true},
2816
- extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500]}),
2828
+ extend: hueExtend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500]}),
2817
2829
  ota: ota.zigbeeOTA,
2818
2830
  },
2819
2831
  {
@@ -2971,7 +2983,7 @@ module.exports = [
2971
2983
  vendor: 'Philips',
2972
2984
  description: 'Hue white ambiance GU10 with Bluetooth',
2973
2985
  meta: {turnsOffAtBrightness1: true},
2974
- extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
2986
+ extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
2975
2987
  ota: ota.zigbeeOTA,
2976
2988
  },
2977
2989
  {
@@ -2980,7 +2992,7 @@ module.exports = [
2980
2992
  vendor: 'Philips',
2981
2993
  description: 'Hue white ambiance bathroom recessed downlight Adore with Bluetooth',
2982
2994
  meta: {turnsOffAtBrightness1: true},
2983
- extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
2995
+ extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
2984
2996
  ota: ota.zigbeeOTA,
2985
2997
  },
2986
2998
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.525",
3
+ "version": "14.0.526",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [