zigbee-herdsman-converters 14.0.540 → 14.0.543

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.
@@ -2259,9 +2259,9 @@ const converters = {
2259
2259
  switch (dp) {
2260
2260
  case tuya.dataPoints.coverPosition: // Started moving to position (triggered from Zigbee)
2261
2261
  case tuya.dataPoints.coverArrived: { // Arrived at position
2262
- const running = dp === tuya.dataPoints.coverArrived ? false : true;
2263
2262
  const invert = tuya.isCoverInverted(meta.device.manufacturerName) ? !options.invert_cover : options.invert_cover;
2264
2263
  const position = invert ? 100 - (value & 0xFF) : (value & 0xFF);
2264
+ const running = dp === tuya.dataPoints.coverPosition || (position == 0 || position == 100);
2265
2265
 
2266
2266
  if (position > 0 && position <= 100) {
2267
2267
  return {running, position, state: 'OPEN'};
@@ -109,7 +109,7 @@ module.exports = [
109
109
  extend: extend.light_onoff_brightness(),
110
110
  },
111
111
  {
112
- fingerprint: [{modelID: 'TS110F', manufacturerName: '_TYZB01_v8gtiaed'}],
112
+ fingerprint: [{modelID: 'TS110F', manufacturerName: '_TYZB01_v8gtiaed'}, {modelID: 'TS110E', manufacturerName: '_TZ3210_pagajpog'}],
113
113
  model: 'QS-Zigbee-D02-TRIAC-2C-LN',
114
114
  vendor: 'Lonsonho',
115
115
  description: '2 gang smart dimmer switch module with neutral',
@@ -22,7 +22,7 @@ module.exports = [
22
22
  extend: extend.light_onoff_brightness_colortemp_color(),
23
23
  },
24
24
  {
25
- zigbeeModel: ['Switch Controller '],
25
+ zigbeeModel: ['Switch Controller'],
26
26
  model: '50043',
27
27
  vendor: 'Paulmann',
28
28
  description: 'SmartHome Zigbee Cephei Switch Controller',
@@ -36,7 +36,7 @@ module.exports = [
36
36
  extend: extend.switch(),
37
37
  },
38
38
  {
39
- zigbeeModel: ['Dimmablelight '],
39
+ zigbeeModel: ['Dimmablelight'],
40
40
  model: '50044/50045',
41
41
  vendor: 'Paulmann',
42
42
  description: 'SmartHome Zigbee Dimmer or LED-stripe',
@@ -50,7 +50,7 @@ module.exports = [
50
50
  extend: extend.light_onoff_brightness_colortemp_color(),
51
51
  },
52
52
  {
53
- zigbeeModel: ['RGBW light', '500.49'],
53
+ zigbeeModel: ['RGBW light', '500.49', 'RGBW_light'],
54
54
  model: '50049/500.63',
55
55
  vendor: 'Paulmann',
56
56
  description: 'Smart Home Zigbee YourLED RGB Controller max. 60W / Smart Home Zigbee LED Reflektor 3,5W GU10 RGBW dimmbar',
@@ -64,7 +64,7 @@ module.exports = [
64
64
  extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 370]}),
65
65
  },
66
66
  {
67
- zigbeeModel: ['CCT light'],
67
+ zigbeeModel: ['CCT light', 'CCT_light'],
68
68
  model: '50064',
69
69
  vendor: 'Paulmann',
70
70
  description: 'SmartHome led spot',
@@ -127,7 +127,7 @@ module.exports = [
127
127
  extend: extend.light_onoff_brightness(),
128
128
  },
129
129
  {
130
- zigbeeModel: ['RemoteControl '],
130
+ zigbeeModel: ['RemoteControl'],
131
131
  model: '500.67',
132
132
  vendor: 'Paulmann',
133
133
  description: 'RGB remote control',
@@ -3042,4 +3042,13 @@ module.exports = [
3042
3042
  extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [222, 454]}),
3043
3043
  ota: ota.zigbeeOTA,
3044
3044
  },
3045
+ {
3046
+ zigbeeModel: ['LWB016'],
3047
+ model: '9290018609',
3048
+ vendor: 'Philips',
3049
+ description: 'Hue White E26 806 lumen',
3050
+ meta: {turnsOffAtBrightness1: true},
3051
+ extend: hueExtend.light_onoff_brightness(),
3052
+ ota: ota.zigbeeOTA,
3053
+ },
3045
3054
  ];
@@ -3,8 +3,41 @@ const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/lega
3
3
  const tz = require('../converters/toZigbee');
4
4
  const reporting = require('../lib/reporting');
5
5
  const extend = require('../lib/extend');
6
+ const utils = require('../lib/utils');
6
7
  const e = exposes.presets;
7
8
 
9
+ const fzLocal = {
10
+ sunricher_SRZGP2801K45C: {
11
+ cluster: 'greenPower',
12
+ type: ['commandNotification', 'commandCommisioningNotification'],
13
+ convert: (model, msg, publish, options, meta) => {
14
+ const commandID = msg.data.commandID;
15
+ if (utils.hasAlreadyProcessedMessage(msg, msg.data.frameCounter, `${msg.device.ieeeAddr}_${commandID}`)) return;
16
+ if (commandID === 224) return;
17
+ const lookup = {
18
+ 0x21: 'press_on',
19
+ 0x20: 'press_off',
20
+ 0x37: 'press_high',
21
+ 0x38: 'press_low',
22
+ 0x35: 'hold_high',
23
+ 0x36: 'hold_low',
24
+ 0x34: 'high_low_release',
25
+ 0x63: 'cw_ww_release',
26
+ 0x62: 'cw_dec_ww_inc',
27
+ 0x64: 'ww_inc_cw_dec',
28
+ 0x41: 'r_g_b',
29
+ 0x42: 'b_g_r',
30
+ 0x40: 'rgb_release',
31
+ };
32
+ if (!lookup.hasOwnProperty(commandID)) {
33
+ meta.logger.error(`Sunricher: missing command '0x${commandID.toString(16)}'`);
34
+ } else {
35
+ return {action: lookup[commandID]};
36
+ }
37
+ },
38
+ },
39
+ };
40
+
8
41
  module.exports = [
9
42
  {
10
43
  zigbeeModel: ['SR-ZG9023A-EU'],
@@ -300,4 +333,14 @@ module.exports = [
300
333
  toZigbee: [],
301
334
  exposes: [e.action(['press_on', 'press_off', 'press_high', 'press_low', 'hold_high', 'hold_low', 'release'])],
302
335
  },
336
+ {
337
+ fingerprint: [{modelID: 'GreenPower_2', ieeeAddr: /^0x00000000aaf.....$/}],
338
+ model: 'SR-ZGP2801K-5C',
339
+ vendor: 'Sunricher',
340
+ description: 'Pushbutton transmitter module',
341
+ fromZigbee: [fzLocal.sunricher_SRZGP2801K45C],
342
+ toZigbee: [],
343
+ exposes: [e.action(['press_on', 'press_off', 'press_high', 'press_low', 'hold_high', 'hold_low', 'high_low_release',
344
+ 'cw_ww_release', 'cw_dec_ww_inc', 'ww_inc_cw_dec', 'r_g_b', 'b_g_r', 'rgb_release'])],
345
+ },
303
346
  ];
package/devices/trust.js CHANGED
@@ -5,6 +5,20 @@ const extend = require('../lib/extend');
5
5
  const e = exposes.presets;
6
6
 
7
7
  module.exports = [
8
+ {
9
+ fingerprint: [{modelID: 'SmokeSensor-EM', manufacturerName: 'Trust'}],
10
+ model: 'ZSDR-850',
11
+ vendor: 'Trust',
12
+ description: 'Smoke detector',
13
+ fromZigbee: [fz.ias_smoke_alarm_1, fz.battery],
14
+ toZigbee: [],
15
+ configure: async (device, coordinatorEndpoint, logger) => {
16
+ const endpoint = device.getEndpoint(1);
17
+ await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg']);
18
+ await reporting.batteryPercentageRemaining(endpoint);
19
+ },
20
+ exposes: [e.smoke(), e.battery_low(), e.battery()],
21
+ },
8
22
  {
9
23
  zigbeeModel: ['WATER_TPV14'],
10
24
  model: 'ZWLD-100',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.540",
3
+ "version": "14.0.543",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [