zigbee-herdsman-converters 14.0.594 → 14.0.595

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.
@@ -5,6 +5,7 @@ const extend = require('../lib/extend');
5
5
  const tz = require('../converters/toZigbee');
6
6
  const ota = require('../lib/ota');
7
7
  const e = exposes.presets;
8
+ const ea = exposes.access;
8
9
 
9
10
  module.exports = [
10
11
  {
@@ -160,7 +161,14 @@ module.exports = [
160
161
  fz.command_step, fz.command_recall, fz.command_on, fz.command_off],
161
162
  exposes: [e.battery(), e.action([
162
163
  'color_move', 'color_temperature_move', 'hue_move', 'hue_stop', 'brightness_step_up', 'brightness_step_down',
163
- 'recall_*', 'on', 'off'])],
164
+ 'recall_*', 'on', 'off']),
165
+ // exposes.composite('action_color', 'action_color') * At the moment not shown in Frontend correctly
166
+ // .withFeature(exposes.numeric('x', ea.STATE)) see: https://github.com/nurikk/zigbee2mqtt-frontend/issues/1535
167
+ // .withFeature(exposes.numeric('y', ea.STATE)),
168
+ exposes.numeric('action_color_temperature', ea.STATE).withUnit('mired'),
169
+ exposes.numeric('action_group', ea.STATE),
170
+ exposes.numeric('action_transition_time', ea.STATE),
171
+ exposes.text('action_color', ea.STATE)],
164
172
  toZigbee: [],
165
173
  meta: {multiEndpoint: true},
166
174
  endpoint: (device) => {
@@ -134,6 +134,13 @@ module.exports = [
134
134
  description: 'Hue gradient lightstrip',
135
135
  extend: hueExtend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500]}),
136
136
  },
137
+ {
138
+ zigbeeModel: ['929003045401'],
139
+ model: '929003045401',
140
+ vendor: 'Philips',
141
+ description: 'Hue Centura recessed spotlight white and color ambiance GU10 (black)',
142
+ extend: hueExtend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500]}),
143
+ },
137
144
  {
138
145
  zigbeeModel: ['929003045501_01', '929003045501_02', '929003045501_03'],
139
146
  model: '929003045501',
@@ -2071,7 +2078,7 @@ module.exports = [
2071
2078
  extend: hueExtend.light_onoff_brightness_colortemp_color(),
2072
2079
  },
2073
2080
  {
2074
- zigbeeModel: ['LCS001'],
2081
+ zigbeeModel: ['LCS001', '1741830P7'],
2075
2082
  model: '1741830P7',
2076
2083
  vendor: 'Philips',
2077
2084
  description: 'Hue Lily outdoor spot light',
package/devices/robb.js CHANGED
@@ -274,4 +274,24 @@ module.exports = [
274
274
  await reporting.currentSummDelivered(endpoint1, {min: 60, change: 1});
275
275
  },
276
276
  },
277
+ {
278
+ zigbeeModel: ['ROB_200-035-0'],
279
+ model: 'ROB_200-035-0',
280
+ vendor: 'ROBB',
281
+ description: '1 channel switch with power monitoring',
282
+ fromZigbee: [fz.electrical_measurement, fz.on_off, fz.ignore_genLevelCtrl_report, fz.metering],
283
+ toZigbee: [tz.on_off],
284
+ exposes: [e.switch(), e.power(), e.current(), e.voltage(), e.energy()],
285
+ configure: async (device, coordinatorEndpoint, logger) => {
286
+ const endpoint = device.getEndpoint(1);
287
+ await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'haElectricalMeasurement', 'seMetering']);
288
+ await reporting.onOff(endpoint);
289
+ await reporting.readEletricalMeasurementMultiplierDivisors(endpoint);
290
+ await reporting.readMeteringMultiplierDivisor(endpoint);
291
+ await reporting.rmsCurrent(endpoint);
292
+ await reporting.activePower(endpoint);
293
+ await reporting.rmsVoltage(endpoint);
294
+ await reporting.currentSummDelivered(endpoint);
295
+ },
296
+ },
277
297
  ];
@@ -2,6 +2,7 @@ const exposes = require('../lib/exposes');
2
2
  const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee};
3
3
  const tz = require('../converters/toZigbee');
4
4
  const extend = require('../lib/extend');
5
+ const reporting = require('../lib/reporting');
5
6
  const ea = exposes.access;
6
7
 
7
8
  module.exports = [
@@ -95,4 +96,18 @@ module.exports = [
95
96
  ],
96
97
  meta: {separateWhite: true},
97
98
  },
99
+ {
100
+ fingerprint: [{modelID: 'TS0501B', manufacturerName: '_TZB210_rkgngb5o'}],
101
+ model: 'WZ1',
102
+ vendor: 'Skydance',
103
+ description: 'Zigbee & RF 2 channel LED controller',
104
+ extend: extend.light_onoff_brightness({noConfigure: true}),
105
+ configure: async (device, coordinatorEndpoint, logger) => {
106
+ await extend.light_onoff_brightness().configure(device, coordinatorEndpoint, logger);
107
+ const endpoint = device.getEndpoint(1);
108
+ await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
109
+ await reporting.onOff(endpoint);
110
+ await reporting.brightness(endpoint);
111
+ },
112
+ },
98
113
  ];
package/devices/xiaomi.js CHANGED
@@ -312,6 +312,7 @@ module.exports = [
312
312
  // set "event" mode
313
313
  await endpoint1.write('aqaraOpple', {'mode': 1}, {manufacturerCode: 0x115f, disableResponse: true});
314
314
  },
315
+ ota: ota.zigbeeOTA,
315
316
  },
316
317
  {
317
318
  zigbeeModel: ['lumi.switch.b2laus01'],
@@ -332,6 +333,7 @@ module.exports = [
332
333
  await reporting.bind(endpoint2, coordinatorEndpoint, ['genOnOff']);
333
334
  await reporting.onOff(endpoint2);
334
335
  },
336
+ ota: ota.zigbeeOTA,
335
337
  },
336
338
  {
337
339
  zigbeeModel: ['lumi.switch.b1naus01'],
@@ -344,6 +346,7 @@ module.exports = [
344
346
  await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
345
347
  await reporting.onOff(endpoint);
346
348
  },
349
+ ota: ota.zigbeeOTA,
347
350
  },
348
351
  {
349
352
  zigbeeModel: ['lumi.switch.b2naus01'],
@@ -364,6 +367,7 @@ module.exports = [
364
367
  await reporting.bind(endpoint2, coordinatorEndpoint, ['genOnOff']);
365
368
  await reporting.onOff(endpoint2);
366
369
  },
370
+ ota: ota.zigbeeOTA,
367
371
  },
368
372
  {
369
373
  zigbeeModel: ['lumi.switch.n2acn1'],
@@ -737,6 +741,7 @@ module.exports = [
737
741
  await device.getEndpoint(1).write('aqaraOpple', {'mode': 1}, {manufacturerCode: 0x115f, disableResponse: true});
738
742
  },
739
743
  onEvent: preventReset,
744
+ ota: ota.zigbeeOTA,
740
745
  },
741
746
  {
742
747
  zigbeeModel: ['lumi.switch.b1nacn02'],
@@ -761,6 +766,7 @@ module.exports = [
761
766
  device.powerSource = 'Mains (single phase)';
762
767
  device.save();
763
768
  },
769
+ ota: ota.zigbeeOTA,
764
770
  },
765
771
  {
766
772
  zigbeeModel: ['lumi.switch.b2nacn02'],
@@ -1392,6 +1398,7 @@ module.exports = [
1392
1398
  fromZigbee: [fz.DJT12LM_vibration],
1393
1399
  exposes: [e.action(['vibration'])],
1394
1400
  toZigbee: [],
1401
+ ota: ota.zigbeeOTA,
1395
1402
  },
1396
1403
  {
1397
1404
  zigbeeModel: ['lumi.curtain'],
@@ -1681,6 +1688,7 @@ module.exports = [
1681
1688
  vendor: 'Xiaomi',
1682
1689
  description: 'Aqara smart RGBW light controller',
1683
1690
  extend: extend.light_onoff_brightness_colortemp_color({supportsHS: true}),
1691
+ ota: ota.zigbeeOTA,
1684
1692
  },
1685
1693
  {
1686
1694
  zigbeeModel: ['lumi.light.cbacn1'],
@@ -1688,6 +1696,7 @@ module.exports = [
1688
1696
  vendor: 'Xiaomi',
1689
1697
  description: 'Aqara zigbee LED-controller ',
1690
1698
  extend: extend.light_onoff_brightness(),
1699
+ ota: ota.zigbeeOTA,
1691
1700
  },
1692
1701
  {
1693
1702
  zigbeeModel: ['lumi.switch.n0agl1'],
@@ -1811,6 +1820,7 @@ module.exports = [
1811
1820
  // await reporting.onOff(device.getEndpoint(2)); ToDo: Currently fails
1812
1821
  // await reporting.onOff(device.getEndpoint(3)); ToDo: Currently fails
1813
1822
  },
1823
+ ota: ota.zigbeeOTA,
1814
1824
  },
1815
1825
  {
1816
1826
  zigbeeModel: ['lumi.remote.b28ac1'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.594",
3
+ "version": "14.0.595",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [