zigbee-herdsman-converters 14.0.547 → 14.0.550

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.
@@ -348,9 +348,11 @@ const converters = {
348
348
  type: ['attributeReport', 'readResponse'],
349
349
  options: [exposes.options.precision('temperature'), exposes.options.calibration('temperature')],
350
350
  convert: (model, msg, publish, options, meta) => {
351
- const temperature = parseFloat(msg.data['measuredValue']) / 100.0;
352
- const property = postfixWithEndpointName('temperature', msg, model);
353
- return {[property]: calibrateAndPrecisionRoundOptions(temperature, options, 'temperature')};
351
+ if (msg.data.hasOwnProperty('measuredValue')) {
352
+ const temperature = parseFloat(msg.data['measuredValue']) / 100.0;
353
+ const property = postfixWithEndpointName('temperature', msg, model);
354
+ return {[property]: calibrateAndPrecisionRoundOptions(temperature, options, 'temperature')};
355
+ }
354
356
  },
355
357
  },
356
358
  device_temperature: {
@@ -5655,8 +5657,9 @@ const converters = {
5655
5657
  }
5656
5658
 
5657
5659
  let buttonLookup = null;
5658
- if (['WXKG02LM_rev2', 'WXKG07LM', 'WXKG15LM', 'WXKG17LM',
5659
- 'WRS-R02'].includes(model.model)) buttonLookup = {1: 'left', 2: 'right', 3: 'both'};
5660
+ if (['WXKG02LM_rev2', 'WXKG07LM', 'WXKG15LM', 'WXKG17LM'].includes(model.model)) {
5661
+ buttonLookup = {1: 'left', 2: 'right', 3: 'both'};
5662
+ }
5660
5663
  if (['QBKG12LM', 'QBKG24LM'].includes(model.model)) buttonLookup = {5: 'left', 6: 'right', 7: 'both'};
5661
5664
  if (['QBKG39LM', 'QBKG41LM', 'WS-EUK02', 'WS-EUK04', 'QBKG20LM', 'QBKG31LM'].includes(model.model)) {
5662
5665
  buttonLookup = {41: 'left', 42: 'right', 51: 'both'};
@@ -1655,7 +1655,7 @@ module.exports = [
1655
1655
  vendor: 'Philips',
1656
1656
  description: 'Hue Iris (generation 2, white)',
1657
1657
  meta: {turnsOffAtBrightness1: true},
1658
- extend: hueExtend.light_onoff_brightness_color(),
1658
+ extend: hueExtend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500]}),
1659
1659
  ota: ota.zigbeeOTA,
1660
1660
  },
1661
1661
  {
@@ -2596,6 +2596,24 @@ module.exports = [
2596
2596
  extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
2597
2597
  ota: ota.zigbeeOTA,
2598
2598
  },
2599
+ {
2600
+ zigbeeModel: ['5047231P6'],
2601
+ model: '5047231P6',
2602
+ vendor: 'Philips',
2603
+ description: 'Hue White ambiance Buckram double spotlight',
2604
+ meta: {turnsOffAtBrightness1: true},
2605
+ extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
2606
+ ota: ota.zigbeeOTA,
2607
+ },
2608
+ {
2609
+ zigbeeModel: ['5047331P6'],
2610
+ model: '5047331P6',
2611
+ vendor: 'Philips',
2612
+ description: 'Hue White ambiance Buckram triple spotlight',
2613
+ meta: {turnsOffAtBrightness1: true},
2614
+ extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
2615
+ ota: ota.zigbeeOTA,
2616
+ },
2599
2617
  {
2600
2618
  zigbeeModel: ['5047130P9'],
2601
2619
  model: '5047130P9',
package/devices/tuya.js CHANGED
@@ -466,7 +466,8 @@ module.exports = [
466
466
  {modelID: 'TS0505B', manufacturerName: '_TZ3210_qxenlrin'},
467
467
  {modelID: 'TS0505B', manufacturerName: '_TZ3210_iwbaamgh'},
468
468
  {modelID: 'TS0505B', manufacturerName: '_TZ3210_klv2wul0'},
469
- {modelID: 'TS0505B', manufacturerName: '_TZ3210_rcggc0ys'}],
469
+ {modelID: 'TS0505B', manufacturerName: '_TZ3210_rcggc0ys'},
470
+ {modelID: 'TS0505B', manufacturerName: '_TZ3210_s6zec0of'}],
470
471
  model: 'TS0505B',
471
472
  vendor: 'TuYa',
472
473
  description: 'Zigbee RGB+CCT light',
@@ -2117,6 +2118,7 @@ module.exports = [
2117
2118
  fz.tuya_relay_din_led_indicator],
2118
2119
  toZigbee: [tz.on_off, tz.tuya_switch_power_outage_memory, tz.tuya_relay_din_led_indicator],
2119
2120
  whiteLabel: [{vendor: 'MatSee Plus', model: 'ATMS1602Z'}],
2121
+ ota: ota.zigbeeOTA,
2120
2122
  configure: async (device, coordinatorEndpoint, logger) => {
2121
2123
  const endpoint = device.getEndpoint(1);
2122
2124
  await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'haElectricalMeasurement', 'seMetering']);
package/devices/xiaomi.js CHANGED
@@ -1324,9 +1324,10 @@ module.exports = [
1324
1324
  },
1325
1325
  {
1326
1326
  zigbeeModel: ['lumi.curtain.aq2'],
1327
- model: 'SRSC-M01',
1327
+ model: 'ZNGZDJ11LM',
1328
1328
  description: 'Aqara roller shade motor',
1329
1329
  vendor: 'Xiaomi',
1330
+ whiteLabel: [{vendor: 'Xiaomi', model: 'SRSC-M01'}],
1330
1331
  fromZigbee: [fz.xiaomi_basic, fz.xiaomi_curtain_position, fz.xiaomi_curtain_position_tilt],
1331
1332
  toZigbee: [tz.xiaomi_curtain_position_state, tz.xiaomi_curtain_options],
1332
1333
  exposes: [e.cover_position().setAccess('state', ea.ALL),
@@ -1360,6 +1361,7 @@ module.exports = [
1360
1361
  model: 'ZNJLBL01LM',
1361
1362
  description: 'Aqara roller shade companion E1',
1362
1363
  vendor: 'Xiaomi',
1364
+ whiteLabel: [{vendor: 'Xiaomi', model: 'RSD-M01'}],
1363
1365
  fromZigbee: [fz.xiaomi_curtain_position, fz.xiaomi_curtain_acn002_status, fz.ignore_basic_report, fz.aqara_opple],
1364
1366
  toZigbee: [tz.xiaomi_curtain_position_state, tz.xiaomi_curtain_acn002_battery, tz.xiaomi_curtain_acn002_charging_status],
1365
1367
  onEvent: async (type, data, device) => {
@@ -1386,9 +1388,11 @@ module.exports = [
1386
1388
  ota: ota.zigbeeOTA,
1387
1389
  },
1388
1390
  {
1389
- zigbeeModel: ['lumi.curtain.acn003'],
1391
+ // 'lumi.curtain.acn003' - CN version (ZNCLBL01LM), 'lumi.curtain.agl001' - global version (CM-M01)
1392
+ zigbeeModel: ['lumi.curtain.acn003', 'lumi.curtain.agl001'],
1390
1393
  model: 'ZNCLBL01LM',
1391
1394
  vendor: 'Xiaomi',
1395
+ whiteLabel: [{vendor: 'Xiaomi', model: 'CM-M01'}],
1392
1396
  description: 'Aqara curtain driver E1',
1393
1397
  fromZigbee: [fz.battery, fz.xiaomi_curtain_position_tilt, fz.aqara_opple, fz.power_source],
1394
1398
  toZigbee: [tz.xiaomi_curtain_position_state, tz.ZNCLBL01LM_battery_voltage, tz.ZNCLBL01LM_hooks_state,
@@ -1723,9 +1727,9 @@ module.exports = [
1723
1727
  },
1724
1728
  {
1725
1729
  zigbeeModel: ['lumi.remote.b28ac1'],
1726
- model: 'WRS-R02',
1730
+ model: 'WXKG15LM',
1727
1731
  vendor: 'Xiaomi',
1728
- whiteLabel: [{vendor: 'Xiaomi', model: 'WXKG15LM'}],
1732
+ whiteLabel: [{vendor: 'Xiaomi', model: 'WRS-R02'}],
1729
1733
  description: 'Aqara wireless remote switch H1 (double rocker)',
1730
1734
  fromZigbee: [fz.battery, fz.xiaomi_multistate_action, fz.aqara_opple, fz.command_toggle],
1731
1735
  toZigbee: [tz.xiaomi_switch_click_mode, tz.aqara_opple_operation_mode],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.547",
3
+ "version": "14.0.550",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [