zigbee-herdsman-converters 14.0.356 → 14.0.357

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.
@@ -1798,7 +1798,7 @@ const converters = {
1798
1798
  },
1799
1799
  nous_lcd_temperature_humidity_sensor: {
1800
1800
  cluster: 'manuSpecificTuya',
1801
- type: ['commandGetData'],
1801
+ type: ['commandDataResponse'],
1802
1802
  options: [exposes.options.precision('temperature'), exposes.options.calibration('temperature'),
1803
1803
  exposes.options.precision('humidity'), exposes.options.calibration('humidity')],
1804
1804
  convert: (model, msg, publish, options, meta) => {
package/devices/tuya.js CHANGED
@@ -11,7 +11,7 @@ const ea = exposes.access;
11
11
 
12
12
  const TS011Fplugs = ['_TZ3000_5f43h46b', '_TZ3000_cphmq0q7', '_TZ3000_dpo1ysak', '_TZ3000_ew3ldmgx', '_TZ3000_gjnozsaz',
13
13
  '_TZ3000_jvzvulen', '_TZ3000_mraovvmm', '_TZ3000_nfnmi125', '_TZ3000_ps3dmato', '_TZ3000_w0qqde0g', '_TZ3000_u5u4cakc',
14
- '_TZ3000_rdtixbnu'];
14
+ '_TZ3000_rdtixbnu', '_TZ3000_typdpbpg'];
15
15
 
16
16
  module.exports = [
17
17
  {
@@ -175,6 +175,7 @@ module.exports = [
175
175
  {modelID: 'TS0202', manufacturerName: '_TYZB01_dl7cejts'},
176
176
  {modelID: 'TS0202', manufacturerName: '_TYZB01_qjqgmqxr'},
177
177
  {modelID: 'TS0202', manufacturerName: '_TZ3000_mmtwjmaq'},
178
+ {modelID: 'TS0202', manufacturerName: '_TZ3000_kmh5qpmb'},
178
179
  {modelID: 'TS0202', manufacturerName: '_TZ3000_mcxw5ehu'},
179
180
  {modelID: 'TS0202', manufacturerName: '_TZ3000_msl6wxk9'},
180
181
  {modelID: 'TS0202', manufacturerName: '_TYZB01_hqbdru35'},
@@ -4,6 +4,21 @@ const tz = require('../converters/toZigbee');
4
4
  const reporting = require('../lib/reporting');
5
5
  const extend = require('../lib/extend');
6
6
  const e = exposes.presets;
7
+ const tuya = require('../lib/tuya');
8
+
9
+ const fzLocal = {
10
+ ZMRM02: {
11
+ cluster: 'manuSpecificTuya',
12
+ type: ['commandGetData', 'commandSetDataResponse'],
13
+ convert: (model, msg, publish, options, meta) => {
14
+ const button = msg.data.dp;
15
+ const actionValue = tuya.getDataValue(msg.data.datatype, msg.data.data);
16
+ const lookup = {0: 'single', 1: 'double', 2: 'hold'};
17
+ const action = lookup[actionValue];
18
+ return {action: `button_${button}_${action}`};
19
+ },
20
+ },
21
+ };
7
22
 
8
23
  module.exports = [
9
24
  {
@@ -66,4 +81,20 @@ module.exports = [
66
81
  await reporting.onOff(endpoint);
67
82
  },
68
83
  },
84
+ {
85
+ fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_zqtiam4u'}],
86
+ model: 'ZM-RM02',
87
+ vendor: 'Zemismart',
88
+ description: 'Smart 6 key scene switch',
89
+ fromZigbee: [fzLocal.ZMRM02],
90
+ toZigbee: [],
91
+ onEvent: tuya.onEventSetTime,
92
+ exposes: [e.battery(), e.action([
93
+ 'button_1_hold', 'button_1_single', 'button_1_double',
94
+ 'button_2_hold', 'button_2_single', 'button_2_double',
95
+ 'button_3_hold', 'button_3_single', 'button_3_double',
96
+ 'button_4_hold', 'button_4_single', 'button_4_double',
97
+ 'button_5_hold', 'button_5_single', 'button_5_double',
98
+ 'button_6_hold', 'button_6_single', 'button_6_double'])],
99
+ },
69
100
  ];
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.356",
3
+ "version": "14.0.357",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.356",
3
+ "version": "14.0.357",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [