zigbee-herdsman-converters 14.0.471 → 14.0.472
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 +0 -7
- package/devices/led_trading.js +29 -0
- package/devices/tuya.js +10 -2
- package/package.json +1 -1
package/converters/fromZigbee.js
CHANGED
|
@@ -5976,13 +5976,6 @@ const converters = {
|
|
|
5976
5976
|
return result;
|
|
5977
5977
|
},
|
|
5978
5978
|
},
|
|
5979
|
-
scenes_recall_scene_65029: {
|
|
5980
|
-
cluster: 65029,
|
|
5981
|
-
type: ['raw'],
|
|
5982
|
-
convert: (model, msg, publish, options, meta) => {
|
|
5983
|
-
return {action: `scene_${msg.data[msg.data.length - 1]}`};
|
|
5984
|
-
},
|
|
5985
|
-
},
|
|
5986
5979
|
scenes_recall_scene_65024: {
|
|
5987
5980
|
cluster: 65024,
|
|
5988
5981
|
type: ['raw'],
|
package/devices/led_trading.js
CHANGED
|
@@ -1,9 +1,38 @@
|
|
|
1
1
|
const reporting = require('../lib/reporting');
|
|
2
2
|
const extend = require('../lib/extend');
|
|
3
3
|
const exposes = require('../lib/exposes');
|
|
4
|
+
const utils = require('../lib/utils');
|
|
4
5
|
const e = exposes.presets;
|
|
5
6
|
|
|
7
|
+
const fzLocal = {
|
|
8
|
+
led_trading_9133: {
|
|
9
|
+
cluster: 'greenPower',
|
|
10
|
+
type: ['commandNotification', 'commandCommisioningNotification'],
|
|
11
|
+
convert: (model, msg, publish, options, meta) => {
|
|
12
|
+
const commandID = msg.data.commandID;
|
|
13
|
+
if (utils.hasAlreadyProcessedMessage(msg, msg.data.frameCounter, `${msg.device.ieeeAddr}_${commandID}`)) return;
|
|
14
|
+
if (commandID === 224) return;
|
|
15
|
+
const lookup = {0x13: 'press_1', 0x14: 'press_2', 0x15: 'press_3', 0x16: 'press_4',
|
|
16
|
+
0x1B: 'hold_1', 0x1C: 'hold_2', 0x1D: 'hold_3', 0x1E: 'hold_4'};
|
|
17
|
+
if (!lookup.hasOwnProperty(commandID)) {
|
|
18
|
+
meta.logger.error(`led_trading_9133: missing command '${commandID}'`);
|
|
19
|
+
} else {
|
|
20
|
+
return {action: lookup[commandID]};
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
|
|
6
26
|
module.exports = [
|
|
27
|
+
{
|
|
28
|
+
fingerprint: [{modelID: 'GreenPower_2', ieeeAddr: /^0x00000000427.....$/}],
|
|
29
|
+
model: '9133',
|
|
30
|
+
vendor: 'Led Trading',
|
|
31
|
+
description: 'Pushbutton transmitter module',
|
|
32
|
+
fromZigbee: [fzLocal.led_trading_9133],
|
|
33
|
+
toZigbee: [],
|
|
34
|
+
exposes: [e.action(['press_1', 'hold_1', 'press_2', 'hold_2', 'press_3', 'hold_3', 'press_4', 'hold_4'])],
|
|
35
|
+
},
|
|
7
36
|
{
|
|
8
37
|
zigbeeModel: ['HK-LN-DIM-A'],
|
|
9
38
|
model: 'HK-LN-DIM-A',
|
package/devices/tuya.js
CHANGED
|
@@ -44,6 +44,14 @@ const tzLocal = {
|
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
const fzLocal = {
|
|
47
|
+
scenes_recall_scene_65029: {
|
|
48
|
+
cluster: 65029,
|
|
49
|
+
type: ['raw', 'attributeReport'],
|
|
50
|
+
convert: (model, msg, publish, options, meta) => {
|
|
51
|
+
const id = meta.device.modelID === '005f0c3b' ? msg.data[0] : msg.data[msg.data.length - 1];
|
|
52
|
+
return {action: `scene_${id}`};
|
|
53
|
+
},
|
|
54
|
+
},
|
|
47
55
|
TS0201_battery: {
|
|
48
56
|
cluster: 'genPowerCfg',
|
|
49
57
|
type: ['attributeReport', 'readResponse'],
|
|
@@ -1713,7 +1721,7 @@ module.exports = [
|
|
|
1713
1721
|
model: 'U86KCJ-ZP',
|
|
1714
1722
|
vendor: 'TuYa',
|
|
1715
1723
|
description: 'Smart 6 key scene wall switch',
|
|
1716
|
-
fromZigbee: [
|
|
1724
|
+
fromZigbee: [fzLocal.scenes_recall_scene_65029],
|
|
1717
1725
|
exposes: [e.action(['scene_1', 'scene_2', 'scene_3', 'scene_4', 'scene_5', 'scene_6'])],
|
|
1718
1726
|
toZigbee: [],
|
|
1719
1727
|
},
|
|
@@ -1884,7 +1892,7 @@ module.exports = [
|
|
|
1884
1892
|
exposes: [e.battery(), e.vibration(), exposes.enum('sensitivity', exposes.access.STATE_SET, ['low', 'medium', 'high'])],
|
|
1885
1893
|
},
|
|
1886
1894
|
{
|
|
1887
|
-
fingerprint: [{modelID: 'TS011F', manufacturerName: '_TZ3000_8bxrzyxz'}],
|
|
1895
|
+
fingerprint: [{modelID: 'TS011F', manufacturerName: '_TZ3000_8bxrzyxz'}, {modelID: 'TS011F', manufacturerName: '_TZ3000_ky0fq4ho'}],
|
|
1888
1896
|
model: 'TS011F_din_smart_relay',
|
|
1889
1897
|
description: 'Din smart relay (with power monitoring)',
|
|
1890
1898
|
vendor: 'TuYa',
|