zigbee-herdsman-converters 14.0.565 → 14.0.568

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.
@@ -7338,13 +7338,14 @@ const converters = {
7338
7338
  const dpValue = tuya.firstDpValue(msg, meta, 'SLUXZB');
7339
7339
  const dp = dpValue.dp;
7340
7340
  const value = tuya.getDataValue(dpValue);
7341
+ const brightnesStateLookup = {'0': 'LOW', '1': 'MEDIUM', '2': 'HIGH'};
7341
7342
  switch (dp) {
7342
7343
  case 2:
7343
7344
  return {illuminance_lux: value};
7344
7345
  case 4:
7345
7346
  return {battery: value};
7346
7347
  case 1:
7347
- return {battery_low: value === 1};
7348
+ return {brightness_level: brightnesStateLookup[value]};
7348
7349
  default:
7349
7350
  meta.logger.warn(`s_lux_zb_illuminance: NOT RECOGNIZED DP #${dp} with data ${JSON.stringify(dpValue)}`);
7350
7351
  }
package/devices/heiman.js CHANGED
@@ -256,7 +256,8 @@ module.exports = [
256
256
  exposes: [e.carbon_monoxide(), e.battery_low(), e.battery()],
257
257
  },
258
258
  {
259
- fingerprint: [{modelID: 'TS0216', manufacturerName: '_TYZB01_8scntis1'}],
259
+ fingerprint: [{modelID: 'TS0216', manufacturerName: '_TYZB01_8scntis1'},
260
+ {modelID: 'TS0216', manufacturerName: '_TYZB01_4obovpbi'}],
260
261
  zigbeeModel: ['WarningDevice', 'WarningDevice-EF-3.0', 'SRHMP-I1'],
261
262
  model: 'HS2WD-E',
262
263
  vendor: 'HEIMAN',
package/devices/hive.js CHANGED
@@ -91,7 +91,7 @@ module.exports = [
91
91
  model: '1613V',
92
92
  vendor: 'Hive',
93
93
  description: 'Active plug',
94
- fromZigbee: [fz.on_off, fz.metering, fz.temperature],
94
+ fromZigbee: [fz.on_off, fz.metering],
95
95
  toZigbee: [tz.on_off],
96
96
  configure: async (device, coordinatorEndpoint, logger) => {
97
97
  const endpoint = device.getEndpoint(9);
@@ -99,8 +99,9 @@ module.exports = [
99
99
  await reporting.onOff(endpoint);
100
100
  await reporting.readMeteringMultiplierDivisor(endpoint);
101
101
  await reporting.instantaneousDemand(endpoint);
102
+ await reporting.currentSummDelivered(endpoint);
102
103
  },
103
- exposes: [e.switch(), e.power(), e.energy(), e.temperature()],
104
+ exposes: [e.switch(), e.power(), e.energy()],
104
105
  },
105
106
  {
106
107
  zigbeeModel: ['TWBulb01US'],
package/devices/owon.js CHANGED
@@ -111,7 +111,7 @@ module.exports = [
111
111
  },
112
112
  },
113
113
  {
114
- zigbeeModel: ['PIR313-E'],
114
+ zigbeeModel: ['PIR313-E', 'PIR313'],
115
115
  model: 'PIR313-E',
116
116
  vendor: 'OWON',
117
117
  description: 'Motion sensor',
package/devices/tuya.js CHANGED
@@ -406,6 +406,7 @@ module.exports = [
406
406
  {modelID: 'TS0001', manufacturerName: '_TZ3000_qsp2pwtf'}],
407
407
  model: 'WHD02',
408
408
  vendor: 'TuYa',
409
+ whiteLabel: [{vendor: 'TuYa', model: 'iHSW02'}],
409
410
  description: 'Wall switch module',
410
411
  toZigbee: extend.switch().toZigbee.concat([tz.moes_power_on_behavior, tz.tuya_switch_type]),
411
412
  fromZigbee: extend.switch().fromZigbee.concat([fz.moes_power_on_behavior, fz.tuya_switch_type]),
@@ -498,7 +499,8 @@ module.exports = [
498
499
  {modelID: 'TS0505B', manufacturerName: '_TZ3210_s6zec0of'},
499
500
  {modelID: 'TS0505B', manufacturerName: '_TZ3210_y5fjkn7x'},
500
501
  {modelID: 'TS0505B', manufacturerName: '_TZ3210_cuqkfz2q'},
501
- {modelID: 'TS0505B', manufacturerName: '_TZ3210_6amjviba'}],
502
+ {modelID: 'TS0505B', manufacturerName: '_TZ3210_6amjviba'},
503
+ {modelID: 'TS0505B', manufacturerName: '_TZ3000_xr5m6kfg'}],
502
504
  model: 'TS0505B',
503
505
  vendor: 'TuYa',
504
506
  description: 'Zigbee RGB+CCT light',
@@ -751,7 +753,8 @@ module.exports = [
751
753
  const endpoint = device.getEndpoint(1);
752
754
  await reporting.bind(endpoint, coordinatorEndpoint, ['genBasic']);
753
755
  },
754
- exposes: [e.battery(), e.illuminance_lux(), e.battery_low(), e.linkquality()],
756
+ exposes: [e.battery(), e.illuminance_lux(), e.linkquality(),
757
+ exposes.enum('brightness_level', ea.STATE, ['LOW', 'MEDIUM', 'HIGH'])],
755
758
  },
756
759
  {
757
760
  zigbeeModel: ['TS130F'],
@@ -1864,7 +1867,9 @@ module.exports = [
1864
1867
  },
1865
1868
  },
1866
1869
  {
1867
- fingerprint: [{modelID: 'TS0012', manufacturerName: '_TZ3000_jl7qyupf'}, {modelID: 'TS0012', manufacturerName: '_TZ3000_nPGIPl5D'}],
1870
+ fingerprint: [{modelID: 'TS0012', manufacturerName: '_TZ3000_jl7qyupf'},
1871
+ {modelID: 'TS0012', manufacturerName: '_TZ3000_nPGIPl5D'},
1872
+ {modelID: 'TS0012', manufacturerName: '_TZ3000_4zf0crgo'}],
1868
1873
  model: 'TS0012_switch_module',
1869
1874
  vendor: 'TuYa',
1870
1875
  description: '2 gang switch module - (without neutral)',
package/devices/ubisys.js CHANGED
@@ -74,6 +74,22 @@ const ubisys = {
74
74
  }
75
75
  },
76
76
  },
77
+ configure_device_setup: {
78
+ cluster: 'manuSpecificUbisysDeviceSetup',
79
+ type: ['attributeReport', 'readResponse'],
80
+ convert: (model, msg, publish, options, meta) => {
81
+ const result = {};
82
+ if (msg.data.hasOwnProperty('input_configurations')) {
83
+ result['input_configurations'] = msg.data['input_configurations'];
84
+ }
85
+ if (msg.data.hasOwnProperty('inputActions')) {
86
+ result['input_actions'] = msg.data['inputActions'].map(function(el) {
87
+ return Object.values(el);
88
+ });
89
+ }
90
+ return {configure_device_setup: result};
91
+ },
92
+ },
77
93
  },
78
94
  tz: {
79
95
  configure_j1: {
@@ -482,13 +498,9 @@ const ubisys = {
482
498
  },
483
499
 
484
500
  convertGet: async (entity, key, meta) => {
485
- const log = (dataRead) => {
486
- meta.logger.warn(
487
- `ubisys: Device setup read for '${meta.options.friendly_name}': ${JSON.stringify(utils.toSnakeCase(dataRead))}`);
488
- };
489
501
  const devMgmtEp = meta.device.getEndpoint(232);
490
- log(await devMgmtEp.read('manuSpecificUbisysDeviceSetup', ['inputConfigurations'], manufacturerOptions.ubisysNull));
491
- log(await devMgmtEp.read('manuSpecificUbisysDeviceSetup', ['inputActions'], manufacturerOptions.ubisysNull));
502
+ await devMgmtEp.read('manuSpecificUbisysDeviceSetup', ['inputConfigurations', 'inputActions'],
503
+ manufacturerOptions.ubisysNull);
492
504
  },
493
505
  },
494
506
  },
@@ -507,7 +519,7 @@ module.exports = [
507
519
  ]),
508
520
  e.power_on_behavior()],
509
521
  fromZigbee: [fz.on_off, fz.metering, fz.command_toggle, fz.command_on, fz.command_off, fz.command_recall, fz.command_move,
510
- fz.command_stop, fz.power_on_behavior],
522
+ fz.command_stop, fz.power_on_behavior, ubisys.fz.configure_device_setup],
511
523
  toZigbee: [tz.on_off, tz.metering_power, ubisys.tz.configure_device_setup, tz.power_on_behavior],
512
524
  endpoint: (device) => {
513
525
  return {'l1': 1, 's1': 2, 'meter': 3};
@@ -549,7 +561,7 @@ module.exports = [
549
561
  ]),
550
562
  e.power_on_behavior()],
551
563
  fromZigbee: [fz.on_off, fz.metering, fz.command_toggle, fz.command_on, fz.command_off, fz.command_recall, fz.command_move,
552
- fz.command_stop, fz.power_on_behavior],
564
+ fz.command_stop, fz.power_on_behavior, ubisys.fz.configure_device_setup],
553
565
  toZigbee: [tz.on_off, tz.metering_power, ubisys.tz.configure_device_setup, tz.power_on_behavior],
554
566
  endpoint: (device) => {
555
567
  return {'l1': 1, 's1': 2, 'meter': 4};
@@ -592,7 +604,7 @@ module.exports = [
592
604
  'brightness_stop_s2']),
593
605
  e.power_on_behavior().withEndpoint('l1'), e.power_on_behavior().withEndpoint('l2')],
594
606
  fromZigbee: [fz.on_off, fz.metering, fz.command_toggle, fz.command_on, fz.command_off, fz.command_recall, fz.command_move,
595
- fz.command_stop, fz.power_on_behavior],
607
+ fz.command_stop, fz.power_on_behavior, ubisys.fz.configure_device_setup],
596
608
  toZigbee: [tz.on_off, tz.metering_power, ubisys.tz.configure_device_setup, tz.power_on_behavior],
597
609
  endpoint: (device) => {
598
610
  return {'l1': 1, 'l2': 2, 's1': 3, 's2': 4, 'meter': 5};
@@ -638,7 +650,7 @@ module.exports = [
638
650
  description: 'Universal dimmer D1',
639
651
  fromZigbee: [fz.on_off, fz.brightness, fz.metering, fz.command_toggle, fz.command_on, fz.command_off, fz.command_recall,
640
652
  fz.command_move, fz.command_stop, fz.lighting_ballast_configuration, fz.level_config, ubisys.fz.dimmer_setup,
641
- ubisys.fz.dimmer_setup_genLevelCtrl],
653
+ ubisys.fz.dimmer_setup_genLevelCtrl, ubisys.fz.configure_device_setup],
642
654
  toZigbee: [tz.light_onoff_brightness, tz.ballast_config, tz.level_config, ubisys.tz.dimmer_setup,
643
655
  ubisys.tz.dimmer_setup_genLevelCtrl, ubisys.tz.configure_device_setup, tz.ignore_transition, tz.light_brightness_move,
644
656
  tz.light_brightness_step],
@@ -702,7 +714,7 @@ module.exports = [
702
714
  model: 'J1',
703
715
  vendor: 'Ubisys',
704
716
  description: 'Shutter control J1',
705
- fromZigbee: [fz.cover_position_tilt, fz.metering],
717
+ fromZigbee: [fz.cover_position_tilt, fz.metering, ubisys.fz.configure_device_setup],
706
718
  toZigbee: [tz.cover_state, tz.cover_position_tilt, tz.metering_power,
707
719
  ubisys.tz.configure_j1, ubisys.tz.configure_device_setup],
708
720
  exposes: [e.cover_position_tilt(),
@@ -739,7 +751,8 @@ module.exports = [
739
751
  model: 'C4',
740
752
  vendor: 'Ubisys',
741
753
  description: 'Control unit C4',
742
- fromZigbee: [fz.legacy.ubisys_c4_scenes, fz.legacy.ubisys_c4_onoff, fz.legacy.ubisys_c4_level, fz.legacy.ubisys_c4_cover],
754
+ fromZigbee: [fz.legacy.ubisys_c4_scenes, fz.legacy.ubisys_c4_onoff, fz.legacy.ubisys_c4_level, fz.legacy.ubisys_c4_cover,
755
+ ubisys.fz.configure_device_setup],
743
756
  toZigbee: [ubisys.tz.configure_device_setup],
744
757
  exposes: [e.action([
745
758
  '1_scene_*', '1_on', '1_off', '1_toggle', '1_level_move_down', '1_level_move_up',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.565",
3
+ "version": "14.0.568",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -38,7 +38,7 @@
38
38
  "buffer-crc32": "^0.2.13",
39
39
  "https-proxy-agent": "^5.0.1",
40
40
  "tar-stream": "^2.2.0",
41
- "zigbee-herdsman": "^0.14.40"
41
+ "zigbee-herdsman": "^0.14.42"
42
42
  },
43
43
  "devDependencies": {
44
44
  "eslint": "*",