zigbee-herdsman-converters 14.0.540 → 14.0.541
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.
- package/converters/fromZigbee.js +1 -1
- package/devices/lonsonho.js +1 -1
- package/devices/paulmann.js +5 -5
- package/devices/philips.js +9 -0
- package/devices/sunricher.js +43 -0
- package/package.json +1 -1
package/converters/fromZigbee.js
CHANGED
|
@@ -2259,7 +2259,7 @@ 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.
|
|
2262
|
+
const running = dp === tuya.dataPoints.coverPosition;
|
|
2263
2263
|
const invert = tuya.isCoverInverted(meta.device.manufacturerName) ? !options.invert_cover : options.invert_cover;
|
|
2264
2264
|
const position = invert ? 100 - (value & 0xFF) : (value & 0xFF);
|
|
2265
2265
|
|
package/devices/lonsonho.js
CHANGED
|
@@ -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',
|
package/devices/paulmann.js
CHANGED
|
@@ -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',
|
package/devices/philips.js
CHANGED
|
@@ -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
|
];
|
package/devices/sunricher.js
CHANGED
|
@@ -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
|
];
|