zigbee-herdsman-converters 15.0.110 → 15.0.111

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.
@@ -3,6 +3,60 @@ const extend = require('../lib/extend');
3
3
  const e = exposes.presets;
4
4
 
5
5
  module.exports = [
6
+ {
7
+ fingerprint: [
8
+ {modelID: 'HOMA1001', endpoints: [
9
+ {ID: 10, profileID: 49246, deviceID: 256, inputClusters: [0, 3, 4, 5, 6, 8], outputClusters: []},
10
+ {ID: 11, profileID: 49246, deviceID: 528, inputClusters: [0, 3, 4, 5, 6, 8, 768], outputClusters: []},
11
+ {ID: 13, profileID: 49246, deviceID: 57694, inputClusters: [4096], outputClusters: [4096]},
12
+ ]},
13
+ ],
14
+ model: 'HOMA1001_RGBW',
15
+ vendor: 'Shenzhen Homa',
16
+ description: 'Smart LED driver RGBW',
17
+ extend: extend.light_onoff_brightness_color(),
18
+ exposes: [e.light_brightness().withEndpoint('white'), e.light_brightness_colorxy().withEndpoint('rgb')],
19
+ meta: {multiEndpoint: true},
20
+ endpoint: (device) => {
21
+ return {white: 10, rgb: 11};
22
+ },
23
+ },
24
+ {
25
+ fingerprint: [
26
+ {modelID: 'HOMA1001', endpoints: [
27
+ {ID: 11, profileID: 49246, deviceID: 528, inputClusters: [0, 3, 4, 5, 6, 8, 768], outputClusters: []},
28
+ {ID: 13, profileID: 49246, deviceID: 57694, inputClusters: [4096], outputClusters: [4096]},
29
+ ]},
30
+ ],
31
+ model: 'HOMA1001_RGB',
32
+ vendor: 'Shenzhen Homa',
33
+ description: 'Smart LED driver RGB',
34
+ extend: extend.light_onoff_brightness_color(),
35
+ },
36
+ {
37
+ fingerprint: [
38
+ {modelID: 'HOMA1001', endpoints: [
39
+ {ID: 11, profileID: 49246, deviceID: 544, inputClusters: [0, 3, 4, 5, 6, 8, 768], outputClusters: []},
40
+ {ID: 13, profileID: 49246, deviceID: 57694, inputClusters: [4096], outputClusters: [4096]},
41
+ ]},
42
+ ],
43
+ model: 'HOMA1001_CT',
44
+ vendor: 'Shenzhen Homa',
45
+ description: 'Smart LED driver CT',
46
+ extend: extend.light_onoff_brightness(),
47
+ },
48
+ {
49
+ fingerprint: [
50
+ {modelID: 'HOMA1001', endpoints: [
51
+ {ID: 11, profileID: 49246, deviceID: 256, inputClusters: [0, 3, 4, 5, 6, 8], outputClusters: []},
52
+ {ID: 13, profileID: 49246, deviceID: 57694, inputClusters: [4096], outputClusters: [4096]},
53
+ ]},
54
+ ],
55
+ model: 'HOMA1001_SC',
56
+ vendor: 'Shenzhen Homa',
57
+ description: 'Smart LED driver SC',
58
+ extend: extend.light_onoff_brightness(),
59
+ },
6
60
  {
7
61
  zigbeeModel: ['HOMA1008', '00A'],
8
62
  model: 'HLD812-Z-SC',
@@ -18,7 +72,7 @@ module.exports = [
18
72
  extend: extend.light_onoff_brightness_colortemp(),
19
73
  },
20
74
  {
21
- zigbeeModel: ['HOMA1002', 'HOMA0019', 'HOMA0006', 'HOMA000F', '019', 'HOMA1004'],
75
+ zigbeeModel: ['HOMA1002', 'HOMA1004', 'HOMA0019', 'HOMA0006', 'HOMA000F', '019'],
22
76
  model: 'HLC610-Z',
23
77
  vendor: 'Shenzhen Homa',
24
78
  description: 'Wireless dimmable controller',
@@ -192,4 +192,19 @@ module.exports = [
192
192
  device.save();
193
193
  },
194
194
  },
195
+ {
196
+ zigbeeModel: ['3RVS01031Z'],
197
+ model: '3RVS01031Z',
198
+ vendor: 'Third Reality',
199
+ description: 'Zigbee vibration sensor',
200
+ fromZigbee: [fz.ias_vibration_alarm_1, fz.battery],
201
+ toZigbee: [],
202
+ exposes: [e.vibration(), e.battery_low(), e.battery(), e.battery_voltage()],
203
+ configure: async (device, coordinatorEndpoint, logger) => {
204
+ const endpoint = device.getEndpoint(1);
205
+ await endpoint.read('genPowerCfg', ['batteryPercentageRemaining']);
206
+ device.powerSource = 'Battery';
207
+ device.save();
208
+ },
209
+ },
195
210
  ];
package/devices/tuya.js CHANGED
@@ -1379,7 +1379,6 @@ module.exports = [
1379
1379
  await reporting.batteryPercentageRemaining(endpoint);
1380
1380
  await reporting.batteryVoltage(endpoint);
1381
1381
  },
1382
- whiteLabel: [{vendor: 'Linkoze', model: 'LKMSZ001'}],
1383
1382
  exposes: [e.battery(), e.battery_voltage(), e.occupancy(), e.action(['single', 'double', 'hold']),
1384
1383
  exposes.enum('light', ea.STATE, ['dark', 'bright'])],
1385
1384
  meta: {
@@ -1388,6 +1387,10 @@ module.exports = [
1388
1387
  [101, 'action', tuya.valueConverterBasic.lookup({'single': 0, 'double': 1, 'hold': 2})],
1389
1388
  ],
1390
1389
  },
1390
+ whiteLabel: [
1391
+ {vendor: 'Linkoze', model: 'LKMSZ001'},
1392
+ tuya.whitelabel('TuYa', '809WZT', 'Motion sensor', ['_TZ3040_bb6xaihh']),
1393
+ ],
1391
1394
  },
1392
1395
  {
1393
1396
  fingerprint: [{modelID: 'TS0202', manufacturerName: '_TYZB01_jytabjkb'},
@@ -1772,6 +1775,7 @@ module.exports = [
1772
1775
  whiteLabel: [
1773
1776
  {vendor: 'LoraTap', model: 'SC400'},
1774
1777
  tuya.whitelabel('Zemismart', 'ZN-LC1E', 'Smart curtain/shutter switch', ['_TZ3000_74hsp7qy']),
1778
+ tuya.whitelabel('Nous', 'L12Z', 'Smart ZigBee Curtain Module L12Z', ['_TZ3000_jwv3cwak']),
1775
1779
  ],
1776
1780
  exposes: [e.cover_position(), exposes.enum('moving', ea.STATE, ['UP', 'STOP', 'DOWN']),
1777
1781
  exposes.binary('calibration', ea.ALL, 'ON', 'OFF'), exposes.binary('motor_reversal', ea.ALL, 'ON', 'OFF'),
@@ -2320,6 +2324,9 @@ module.exports = [
2320
2324
  device.save();
2321
2325
  await reporting.bind(device.getEndpoint(2), coordinatorEndpoint, ['genOnOff']);
2322
2326
  },
2327
+ whiteLabel: [
2328
+ tuya.whitelabel('TuYa', 'XSH01B', '2 gang switch module with power monitoring', ['_TZ3000_irrmjcgi']),
2329
+ ],
2323
2330
  },
2324
2331
  {
2325
2332
  fingerprint: tuya.fingerprint('TS000F', ['_TZ3000_xkap8wtb']),
@@ -2572,6 +2579,41 @@ module.exports = [
2572
2579
  toZigbee: [tz.tuya_cover_control],
2573
2580
  exposes: [e.cover_position().setAccess('position', ea.STATE_SET)],
2574
2581
  },
2582
+ {
2583
+ fingerprint: [
2584
+ {modelID: 'TS0601', manufacturerName: '_TZE200_cpbo62rn'},
2585
+ ],
2586
+ model: 'TS0601_cover_6',
2587
+ vendor: 'TuYa',
2588
+ description: 'Cover motor',
2589
+ fromZigbee: [tuya.fz.datapoints],
2590
+ toZigbee: [tuya.tz.datapoints],
2591
+ exposes: [
2592
+ exposes.text('work_state', ea.STATE),
2593
+ e.cover_position().setAccess('position', ea.STATE_SET),
2594
+ e.battery(),
2595
+ exposes.enum('opening_mode', ea.STATE_SET, ['tilt', 'lift']).withDescription('Opening mode'),
2596
+ exposes.enum('motor_direction', ea.STATE_SET, ['left', 'right']).withDescription('Motor side'),
2597
+ exposes.enum('set_upper_limit', ea.STATE_SET, ['start', 'stop']).withDescription('Learning'),
2598
+ exposes.enum('factory_reset', ea.STATE_SET, ['SET']).withDescription('Remove limits'),
2599
+ ],
2600
+ whiteLabel: [
2601
+ tuya.whitelabel('TuYa', 'LY-108', 'Cover', ['_TZE200_cpbo62rn']),
2602
+ ],
2603
+ meta: {
2604
+ tuyaDatapoints: [
2605
+ [1, 'state', tuya.valueConverterBasic.lookup({'OPEN': tuya.enum(0), 'STOP': tuya.enum(1), 'CLOSE': tuya.enum(2)})],
2606
+ [2, 'position', tuya.valueConverter.coverPosition],
2607
+ [3, 'position', tuya.valueConverter.raw],
2608
+ [4, 'opening_mode', tuya.valueConverterBasic.lookup({'tilt': tuya.enum(0), 'lift': tuya.enum(1)})],
2609
+ [7, 'work_state', tuya.valueConverterBasic.lookup({'standby': tuya.enum(0), 'success': tuya.enum(1), 'learning': tuya.enum(2)})],
2610
+ [13, 'battery', tuya.valueConverter.raw],
2611
+ [101, 'motor_direction', tuya.valueConverterBasic.lookup({'left': tuya.enum(0), 'right': tuya.enum(1)})],
2612
+ [102, 'set_upper_limit', tuya.valueConverterBasic.lookup({'start': tuya.enum(1), 'stop': tuya.enum(0)})],
2613
+ [107, 'factory_reset', tuya.valueConverter.setLimit],
2614
+ ],
2615
+ },
2616
+ },
2575
2617
  {
2576
2618
  zigbeeModel: ['kud7u2l'],
2577
2619
  fingerprint: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "15.0.110",
3
+ "version": "15.0.111",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [