zigbee-herdsman-converters 14.0.690 → 14.0.691

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.
@@ -6260,17 +6260,6 @@ const converters = {
6260
6260
  return result;
6261
6261
  },
6262
6262
  },
6263
- D10110_cover_position_tilt: {
6264
- cluster: 'closuresWindowCovering',
6265
- type: ['attributeReport', 'readResponse'],
6266
- convert: (model, msg, publish, options, meta) => {
6267
- if (msg.data.hasOwnProperty('currentPositionLiftPercentage') && msg.data['currentPositionLiftPercentage'] <= 100) {
6268
- // The Yookee D10110 SENDs it's position reversed, relative to the spec.
6269
- msg.data['currentPositionLiftPercentage'] = 100 - msg.data['currentPositionLiftPercentage'];
6270
- }
6271
- return converters.cover_position_tilt.convert(model, msg, publish, options, meta);
6272
- },
6273
- },
6274
6263
  PGC410EU_presence: {
6275
6264
  cluster: 'manuSpecificSmartThingsArrivalSensor',
6276
6265
  type: 'commandArrivalSensorNotify',
@@ -100,6 +100,13 @@ module.exports = [
100
100
  description: 'AOne 5.4W smart tuneable GU10 lamp',
101
101
  extend: extend.light_onoff_brightness_colortemp(),
102
102
  },
103
+ {
104
+ zigbeeModel: ['TWMPROZXBulb50AU'],
105
+ model: 'AU-A1ZBMPRO1ZX',
106
+ vendor: 'Aurora Lighting',
107
+ description: 'AOne MPROZX fixed IP65 fire rated smart tuneable LED downlight',
108
+ extend: extend.light_onoff_brightness_colortemp({colorTempRange: [200, 455]}),
109
+ },
103
110
  {
104
111
  zigbeeModel: ['FWG125Bulb50AU'],
105
112
  model: 'AU-A1VG125Z5E/19',
package/devices/fantem.js CHANGED
@@ -49,6 +49,7 @@ module.exports = [
49
49
  {
50
50
  fingerprint: [{modelID: 'TS0202', manufacturerName: '_TZ3210_rxqls8v0'},
51
51
  {modelID: 'TS0202', manufacturerName: '_TZ3210_zmy9hjay'},
52
+ {modelID: 'TS0202', manufacturerName: '_TZ3000_6ygjfyll'},
52
53
  {modelID: 'TS0202', manufacturerName: '_TZ3210_wuhzzfqg'}],
53
54
  model: 'ZB003-X',
54
55
  vendor: 'Fantem',
@@ -3025,4 +3025,11 @@ module.exports = [
3025
3025
  description: 'Hue White E17 470 lumen',
3026
3026
  extend: hueExtend.light_onoff_brightness(),
3027
3027
  },
3028
+ {
3029
+ zigbeeModel: ['929003046901'],
3030
+ model: '8719514338524',
3031
+ vendor: 'Philips',
3032
+ description: 'Hue white ambiance Pillar spotlight with Bluetooth (black)',
3033
+ extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
3034
+ },
3028
3035
  ];
@@ -307,6 +307,27 @@ module.exports = [
307
307
  await reporting.brightness(endpoint);
308
308
  },
309
309
  },
310
+ {
311
+ zigbeeModel: ['NHROTARY/UNIDIM/1'],
312
+ model: 'WDE002961',
313
+ vendor: 'Schneider Electric',
314
+ description: 'Rotary dimmer',
315
+ fromZigbee: [fz.on_off, fz.brightness, fz.level_config, fz.wiser_lighting_ballast_configuration],
316
+ toZigbee: [tz.light_onoff_brightness, tz.level_config, tz.ballast_config, tz.wiser_dimmer_mode],
317
+ exposes: [e.light_brightness().withLevelConfig(),
318
+ exposes.numeric('ballast_minimum_level', ea.ALL).withValueMin(1).withValueMax(254)
319
+ .withDescription('Specifies the minimum light output of the ballast'),
320
+ exposes.numeric('ballast_maximum_level', ea.ALL).withValueMin(1).withValueMax(254)
321
+ .withDescription('Specifies the maximum light output of the ballast'),
322
+ exposes.enum('dimmer_mode', ea.ALL, ['auto', 'rc', 'rl', 'rl_led'])
323
+ .withDescription('Sets dimming mode to autodetect or fixed RC/RL/RL_LED mode (max load is reduced in RL_LED)')],
324
+ configure: async (device, coordinatorEndpoint, logger) => {
325
+ const endpoint = device.getEndpoint(3);
326
+ await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl', 'lightingBallastCfg']);
327
+ await reporting.onOff(endpoint);
328
+ await reporting.brightness(endpoint);
329
+ },
330
+ },
310
331
  {
311
332
  zigbeeModel: ['NHPB/DIMMER/1'],
312
333
  model: 'WDE002386',
package/devices/tuya.js CHANGED
@@ -3103,7 +3103,7 @@ module.exports = [
3103
3103
  description: 'Vibration sensor',
3104
3104
  fromZigbee: [fz.battery, fz.ias_vibration_alarm_1_with_timeout],
3105
3105
  toZigbee: [tz.TS0210_sensitivity],
3106
- exposes: [e.battery(), e.vibration(), exposes.enum('sensitivity', exposes.access.STATE_SET, ['low', 'medium', 'high'])],
3106
+ exposes: [e.battery(), e.battery_voltage(), e.vibration(), exposes.enum('sensitivity', ea.STATE_SET, ['low', 'medium', 'high'])],
3107
3107
  },
3108
3108
  {
3109
3109
  fingerprint: [{modelID: 'TS011F', manufacturerName: '_TZ3000_8bxrzyxz'},
package/devices/ubisys.js CHANGED
@@ -20,6 +20,14 @@ const manufacturerOptions = {
20
20
  tint: {manufacturerCode: herdsman.Zcl.ManufacturerCode.MUELLER_LICHT_INT},
21
21
  };
22
22
 
23
+ const ubisysOnEventReadCurrentSummDelivered = async function(type, data, devic) {
24
+ if (data.type === 'attributeReport' && data.cluster === 'seMetering') {
25
+ try {
26
+ await data.endpoint.read('seMetering', ['currentSummDelivered']);
27
+ } catch (error) {/* Do nothing*/}
28
+ }
29
+ };
30
+
23
31
  const ubisys = {
24
32
  fz: {
25
33
  dimmer_setup: {
@@ -533,7 +541,7 @@ module.exports = [
533
541
  'toggle', 'on', 'off', 'recall_*',
534
542
  'brightness_move_up', 'brightness_move_down', 'brightness_stop',
535
543
  ]),
536
- e.power_on_behavior()],
544
+ e.power_on_behavior(), e.energy()],
537
545
  fromZigbee: [fz.on_off, fz.metering, fz.command_toggle, fz.command_on, fz.command_off, fz.command_recall, fz.command_move,
538
546
  fz.command_stop, fz.power_on_behavior, ubisys.fz.configure_device_setup],
539
547
  toZigbee: [tz.on_off, tz.metering_power, ubisys.tz.configure_device_setup, tz.power_on_behavior],
@@ -561,6 +569,8 @@ module.exports = [
561
569
  const ep1 = device.getEndpoint(1);
562
570
  const ep2 = device.getEndpoint(2);
563
571
  ep2.addBinding('genOnOff', ep1);
572
+ } else {
573
+ await ubisysOnEventReadCurrentSummDelivered(type, data, device);
564
574
  }
565
575
  },
566
576
  ota: ota.ubisys,
@@ -575,7 +585,7 @@ module.exports = [
575
585
  'toggle', 'on', 'off', 'recall_*',
576
586
  'brightness_move_up', 'brightness_move_down', 'brightness_stop',
577
587
  ]),
578
- e.power_on_behavior()],
588
+ e.power_on_behavior(), e.energy()],
579
589
  fromZigbee: [fz.on_off, fz.metering, fz.command_toggle, fz.command_on, fz.command_off, fz.command_recall, fz.command_move,
580
590
  fz.command_stop, fz.power_on_behavior, ubisys.fz.configure_device_setup],
581
591
  toZigbee: [tz.on_off, tz.metering_power, ubisys.tz.configure_device_setup, tz.power_on_behavior],
@@ -603,6 +613,8 @@ module.exports = [
603
613
  const ep1 = device.getEndpoint(1);
604
614
  const ep2 = device.getEndpoint(2);
605
615
  ep2.addBinding('genOnOff', ep1);
616
+ } else {
617
+ await ubisysOnEventReadCurrentSummDelivered(type, data, device);
606
618
  }
607
619
  },
608
620
  ota: ota.ubisys,
@@ -615,6 +627,7 @@ module.exports = [
615
627
  exposes: [
616
628
  e.switch().withEndpoint('l1'), e.switch().withEndpoint('l2'),
617
629
  e.power().withAccess(ea.STATE_GET).withEndpoint('meter').withProperty('power'),
630
+ e.energy(),
618
631
  e.action(['toggle_s1', 'toggle_s2', 'on_s1', 'on_s2', 'off_s1', 'off_s2', 'recall_*_s1', 'recal_*_s2', 'brightness_move_up_s1',
619
632
  'brightness_move_up_s2', 'brightness_move_down_s1', 'brightness_move_down_s2', 'brightness_stop_s1',
620
633
  'brightness_stop_s2']),
@@ -655,6 +668,8 @@ module.exports = [
655
668
  const ep4 = device.getEndpoint(4);
656
669
  ep3.addBinding('genOnOff', ep1);
657
670
  ep4.addBinding('genOnOff', ep2);
671
+ } else {
672
+ await ubisysOnEventReadCurrentSummDelivered(type, data, device);
658
673
  }
659
674
  },
660
675
  ota: ota.ubisys,
@@ -670,13 +685,41 @@ module.exports = [
670
685
  toZigbee: [tz.light_onoff_brightness, tz.ballast_config, tz.level_config, ubisys.tz.dimmer_setup,
671
686
  ubisys.tz.dimmer_setup_genLevelCtrl, ubisys.tz.configure_device_setup, tz.ignore_transition, tz.light_brightness_move,
672
687
  tz.light_brightness_step],
673
- exposes: [e.light_brightness().withLevelConfig(), e.power(), e.energy(),
688
+ exposes: [
689
+ e.action(['toggle_s1', 'toggle_s2', 'on_s1', 'on_s2', 'off_s1', 'off_s2', 'recall_*_s1', 'recal_*_s2', 'brightness_move_up_s1',
690
+ 'brightness_move_up_s2', 'brightness_move_down_s1', 'brightness_move_down_s2', 'brightness_stop_s1',
691
+ 'brightness_stop_s2']),
692
+ e.light_brightness(),
693
+ exposes.composite('level_config', 'level_config')
694
+ .withFeature(exposes.numeric('on_off_transition_time', ea.ALL)
695
+ .withDescription('Specifies the amount of time, in units of 0.1 seconds, which will be used during a transition to ' +
696
+ 'either the on or off state, when an on/off/toggle command of the on/off cluster is used to turn the light on or off'))
697
+ .withFeature(exposes.numeric('on_level', ea.ALL)
698
+ .withValueMin(1).withValueMax(254)
699
+ .withPreset('previous', 255, 'Use previous value')
700
+ .withDescription('Specifies the level that shall be applied, when an on/toggle command causes the light to turn on.'))
701
+ .withFeature(exposes.binary('execute_if_off', ea.ALL, true, false)
702
+ .withDescription('Defines if you can send a brightness change without to turn on the light'))
703
+ .withFeature(exposes.numeric('current_level_startup', ea.ALL)
704
+ .withValueMin(1).withValueMax(254)
705
+ .withPreset('previous', 255, 'Use previous value')
706
+ .withDescription('Specifies the initial level to be applied after the device is supplied with power')),
707
+ e.power(), e.energy(),
674
708
  exposes.numeric('ballast_minimum_level', ea.ALL).withValueMin(1).withValueMax(254)
675
709
  .withDescription('Specifies the minimum light output of the ballast'),
676
710
  exposes.numeric('ballast_maximum_level', ea.ALL).withValueMin(1).withValueMax(254)
677
711
  .withDescription('Specifies the maximum light output of the ballast'),
678
712
  exposes.numeric('minimum_on_level', ea.ALL).withValueMin(0).withValueMax(255)
679
- .withDescription('Specifies the minimum light output after switching on'),
713
+ .withDescription('Specifies the minimum level that shall be applied, when an on/toggle command causes the ' +
714
+ 'light to turn on. When this attribute is set to the invalid value (255) this feature is disabled ' +
715
+ 'and standard rules apply: The light will either return to the previously active level (before it ' +
716
+ 'was turned off) if the OnLevel attribute is set to the invalid value (255/previous); or to the specified ' +
717
+ 'value of the OnLevel attribute if this value is in the range 0…254. Otherwise, if the ' +
718
+ 'MinimumOnLevel is in the range 0…254, the light will be set to the the previously ' +
719
+ 'active level (before it was turned off), or the value specified here, whichever is the larger ' +
720
+ 'value. For example, if the previous level was 30 and the MinimumOnLevel was 40 then ' +
721
+ 'the light would turn on and move to level 40. Conversely, if the previous level was 50, ' +
722
+ 'and the MinimumOnLevel was 40, then the light would turn on and move to level 50.'),
680
723
  exposes.binary('capabilities_forward_phase_control', ea.ALL, true, false)
681
724
  .withDescription('The dimmer supports AC forward phase control.'),
682
725
  exposes.binary('capabilities_reverse_phase_control', ea.ALL, true, false)
@@ -705,13 +748,11 @@ module.exports = [
705
748
  await reporting.readMeteringMultiplierDivisor(endpoint);
706
749
  await reporting.instantaneousDemand(endpoint);
707
750
  },
751
+ meta: {multiEndpoint: true, multiEndpointSkip: ['state', 'brightness']},
752
+ endpoint: (device) => {
753
+ return {'default': 1, 's1': 2, 's2': 3, 'meter': 4};
754
+ },
708
755
  onEvent: async (type, data, device) => {
709
- if (data.type === 'attributeReport' && data.cluster === 'seMetering') {
710
- const endpoint = device.getEndpoint(4);
711
- try {
712
- await endpoint.read('seMetering', ['currentSummDelivered']);
713
- } catch (error) {/* Do nothing*/}
714
- }
715
756
  /*
716
757
  * As per technical doc page 23 section 7.3.4, 7.3.5
717
758
  * https://www.ubisys.de/wp-content/uploads/ubisys-d1-technical-reference.pdf
@@ -723,6 +764,8 @@ module.exports = [
723
764
  const ep2 = device.getEndpoint(2);
724
765
  ep2.addBinding('genOnOff', ep1);
725
766
  ep2.addBinding('genLevelCtrl', ep1);
767
+ } else {
768
+ await ubisysOnEventReadCurrentSummDelivered(type, data, device);
726
769
  }
727
770
  },
728
771
  ota: ota.ubisys,
@@ -736,7 +779,7 @@ module.exports = [
736
779
  toZigbee: [tz.cover_state, tz.cover_position_tilt, tz.metering_power,
737
780
  ubisys.tz.configure_j1, ubisys.tz.configure_device_setup],
738
781
  exposes: [e.cover_position_tilt(),
739
- e.power().withAccess(ea.STATE_GET).withEndpoint('meter').withProperty('power')],
782
+ e.power().withAccess(ea.STATE_GET).withEndpoint('meter').withProperty('power'), e.energy()],
740
783
  configure: async (device, coordinatorEndpoint, logger) => {
741
784
  const endpoint1 = device.getEndpoint(1);
742
785
  const endpoint3 = device.getEndpoint(3);
@@ -760,6 +803,8 @@ module.exports = [
760
803
  const ep1 = device.getEndpoint(1);
761
804
  const ep2 = device.getEndpoint(2);
762
805
  ep2.addBinding('closuresWindowCovering', ep1);
806
+ } else {
807
+ await ubisysOnEventReadCurrentSummDelivered(type, data, device);
763
808
  }
764
809
  },
765
810
  ota: ota.ubisys,
package/devices/woox.js CHANGED
@@ -155,7 +155,8 @@ module.exports = [
155
155
  onEvent: tuya.onEventsetTime,
156
156
  },
157
157
  {
158
- fingerprint: [{modelID: 'TS0219', manufacturerName: '_TYZB01_ynsiasng'}, {modelID: 'TS0219', manufacturerName: '_TYZB01_bwsijaty'}],
158
+ fingerprint: [{modelID: 'TS0219', manufacturerName: '_TYZB01_ynsiasng'}, {modelID: 'TS0219', manufacturerName: '_TYZB01_bwsijaty'},
159
+ {modelID: 'TS0219', manufacturerName: '_TYZB01_rs7ff6o7'}],
159
160
  model: 'R7051',
160
161
  vendor: 'Woox',
161
162
  description: 'Smart siren',
package/devices/xiaomi.js CHANGED
@@ -58,6 +58,22 @@ const daysLookup = {
58
58
 
59
59
 
60
60
  const fzLocal = {
61
+ aqara_s1_co2: {
62
+ cluster: 'msCO2',
63
+ type: ['attributeReport', 'readResponse'],
64
+ convert: (model, msg, publish, options, meta) => {
65
+ return {co2: Math.floor(msg.data.measuredValue)};
66
+ },
67
+ },
68
+ aqara_s1_pm25: {
69
+ cluster: 'heimanSpecificPM25Measurement',
70
+ type: ['attributeReport', 'readResponse'],
71
+ convert: (model, msg, publish, options, meta) => {
72
+ if (msg.data['measuredValue']) {
73
+ return {pm25: msg.data['measuredValue'] / 1000};
74
+ }
75
+ },
76
+ },
61
77
  aqara_trv: {
62
78
  cluster: 'aqaraOpple',
63
79
  type: ['attributeReport', 'readResponse'],
@@ -417,6 +433,15 @@ module.exports = [
417
433
  },
418
434
  ota: ota.zigbeeOTA,
419
435
  },
436
+ {
437
+ zigbeeModel: ['lumi.airm.fhac01'],
438
+ model: 'KQJCMB11LM',
439
+ vendor: 'Xiaomi',
440
+ description: 'Aqara air monitoring panel S1',
441
+ fromZigbee: [fz.temperature, fz.humidity, fzLocal.aqara_s1_pm25, fzLocal.aqara_s1_co2],
442
+ toZigbee: [],
443
+ exposes: [e.temperature(), e.humidity(), e.pm25(), e.co2()],
444
+ },
420
445
  {
421
446
  zigbeeModel: ['lumi.magnet.acn001'],
422
447
  model: 'MCCGQ14LM',
package/devices/yookee.js CHANGED
@@ -10,9 +10,8 @@ module.exports = [
10
10
  model: 'D10110',
11
11
  vendor: 'Yookee',
12
12
  description: 'Smart blind controller',
13
- fromZigbee: [fz.D10110_cover_position_tilt, fz.battery],
13
+ fromZigbee: [fz.cover_position_tilt, fz.battery],
14
14
  toZigbee: [tz.cover_state, tz.cover_position_tilt],
15
- meta: {coverInverted: true},
16
15
  configure: async (device, coordinatorEndpoint, logger) => {
17
16
  const endpoint = device.getEndpoint(1);
18
17
  await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg', 'closuresWindowCovering']);
package/lib/philips.js CHANGED
@@ -127,7 +127,7 @@ function decodeGradientColors(input, opts) {
127
127
  const y = yHigh | yLow;
128
128
 
129
129
  return {
130
- color_mode: 'color_xy',
130
+ color_mode: 'xy',
131
131
  x: Math.round(x / 65535 * 10000) / 10000,
132
132
  y: Math.round(y / 65535 * 10000) / 10000,
133
133
  brightness,
package/lib/utils.js CHANGED
@@ -124,7 +124,8 @@ function postfixWithEndpointName(value, msg, definition, meta) {
124
124
  meta.logger.warn(`No meta passed to postfixWithEndpointName, update your external converter!`);
125
125
  meta = {device: null};
126
126
  }
127
- if (definition.meta && definition.meta.multiEndpoint) {
127
+ if (definition.meta && definition.meta.multiEndpoint &&
128
+ (!definition.meta.multiEndpointSkip || !definition.meta.multiEndpointSkip.includes(value))) {
128
129
  const endpointName = definition.hasOwnProperty('endpoint') ?
129
130
  getKey(definition.endpoint(meta.device), msg.endpoint.ID) : msg.endpoint.ID;
130
131
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.690",
3
+ "version": "14.0.691",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [