zigbee-herdsman-converters 15.0.2 → 15.0.4

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.
@@ -5516,7 +5516,7 @@ const converters = {
5516
5516
  extensionfieldsets.push({'clstId': 8, 'len': 1, 'extField': [val]});
5517
5517
  state['brightness'] = val;
5518
5518
  } else if (attribute === 'position') {
5519
- extensionfieldsets.push({'clstId': 258, 'len': 1, 'extField': [val]});
5519
+ extensionfieldsets.push({'clstId': 258, 'len': 1, 'extField': [100 - val]});
5520
5520
  state['position'] = val;
5521
5521
  } else if (attribute === 'color_temp') {
5522
5522
  /*
@@ -262,7 +262,7 @@ module.exports = [
262
262
  ota: ota.zigbeeOTA,
263
263
  fromZigbee: [fz.identify, fz.on_off],
264
264
  toZigbee: [tz.on_off, tz.legrand_identify],
265
- whiteLabel: [{vendor: 'Bticino', model: '3584C'}],
265
+ whiteLabel: [{vendor: 'BTicino', model: '3584C'}],
266
266
  configure: async (device, coordinatorEndpoint, logger) => {
267
267
  const endpoint = device.getEndpoint(1);
268
268
  await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genBinaryInput']);
@@ -278,6 +278,7 @@ module.exports = [
278
278
  exposes: [e.battery(), e.action(['enter', 'leave', 'sleep', 'wakeup', 'center'])],
279
279
  toZigbee: [],
280
280
  meta: {battery: {voltageToPercentage: '3V_2500'}},
281
+ whiteLabel: [{vendor: 'BTicino', model: 'LN4570CWI'}],
281
282
  configure: async (device, coordinatorEndpoint, logger) => {
282
283
  const endpoint = device.getEndpoint(1);
283
284
  await reporting.bind(endpoint, coordinatorEndpoint, ['genIdentify', 'genPowerCfg']);
@@ -367,6 +368,7 @@ module.exports = [
367
368
  model: '064882',
368
369
  vendor: 'Legrand',
369
370
  description: 'Cable outlet with pilot wire and consumption measurement',
371
+ ota: ota.zigbeeOTA,
370
372
  fromZigbee: [fz.legrand_cluster_fc01, fz.legrand_cable_outlet_mode, fz.on_off, fz.electrical_measurement, fz.power_on_behavior],
371
373
  toZigbee: [tz.legrand_deviceMode, tz.legrand_cableOutletMode, tz.on_off, tz.electrical_measurement_power, tz.power_on_behavior],
372
374
  exposes: [exposes.binary('device_mode', ea.ALL, 'pilot_on', 'pilot_off'),
@@ -1430,7 +1430,7 @@ module.exports = [
1430
1430
  zigbeeModel: ['3261331P6', '929003055301'],
1431
1431
  model: '3261331P6',
1432
1432
  vendor: 'Philips',
1433
- description: 'Hue white ambiance Still',
1433
+ description: 'Hue white ambiance Still (white)',
1434
1434
  extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
1435
1435
  },
1436
1436
  {
@@ -1447,11 +1447,18 @@ module.exports = [
1447
1447
  description: 'Hue white ambiance Still',
1448
1448
  extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
1449
1449
  },
1450
+ {
1451
+ zigbeeModel: ['929003055401'],
1452
+ model: '929003055401',
1453
+ vendor: 'Philips',
1454
+ description: 'Hue white ambiance Still (aluminium)',
1455
+ extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
1456
+ },
1450
1457
  {
1451
1458
  zigbeeModel: ['929003055501'],
1452
1459
  model: '929003055501',
1453
1460
  vendor: 'Philips',
1454
- description: 'Hue white ambiance Still',
1461
+ description: 'Hue white ambiance Still (black)',
1455
1462
  extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
1456
1463
  },
1457
1464
  {
@@ -603,4 +603,13 @@ module.exports = [
603
603
  await endpoint.read('hvacThermostat', [0x2001, 0x2002], options);
604
604
  },
605
605
  },
606
+ {
607
+ fingerprint: [{modelID: 'TERNCY-DC01', manufacturer: 'Sunricher'}],
608
+ model: 'SR-ZG9010A',
609
+ vendor: 'Sunricher',
610
+ description: 'Door windows sensor',
611
+ fromZigbee: [fz.U02I007C01_contact, fz.battery],
612
+ toZigbee: [],
613
+ exposes: [e.contact(), e.battery()],
614
+ },
606
615
  ];
package/devices/tuya.js CHANGED
@@ -931,7 +931,7 @@ module.exports = [
931
931
  model: 'TS011F_2_gang_wall',
932
932
  vendor: 'TuYa',
933
933
  description: '2 gang wall outlet',
934
- extend: tuya.extend.switch({backlightMode: true, endpoints: ['l1', 'l2']}),
934
+ extend: tuya.extend.switch({backlightMode: true, childLock: true, endpoints: ['l1', 'l2']}),
935
935
  whiteLabel: [{vendor: 'ClickSmart+', model: 'CMA30036'}],
936
936
  endpoint: (device) => {
937
937
  return {'l1': 1, 'l2': 2};
@@ -1026,6 +1026,17 @@ module.exports = [
1026
1026
  vendor: 'TuYa',
1027
1027
  extend: extend.light_onoff_brightness({disablePowerOnBehavior: true}),
1028
1028
  },
1029
+ {
1030
+ fingerprint: tuya.fingerprint('TS0202', ['_TYZB01_vwqnz1sn']),
1031
+ model: 'TS0202_3',
1032
+ vendor: 'TuYa',
1033
+ description: 'Motion detector with illuminance',
1034
+ fromZigbee: [fz.ias_occupancy_alarm_1, fz.battery, fz.ignore_basic_report, fz.ias_occupancy_alarm_1_report, fz.illuminance],
1035
+ toZigbee: [],
1036
+ onEvent: tuya.onEventSetTime,
1037
+ configure: tuya.configureMagicPacket,
1038
+ exposes: [e.occupancy(), e.battery_low(), e.battery(), e.tamper(), e.illuminance_lux()],
1039
+ },
1029
1040
  {
1030
1041
  fingerprint: tuya.fingerprint('TS0202', ['_TZ3210_cwamkvua']),
1031
1042
  model: 'TS0202_2',
@@ -1069,7 +1080,6 @@ module.exports = [
1069
1080
  {
1070
1081
  fingerprint: [{modelID: 'TS0202', manufacturerName: '_TYZB01_dr6sduka'},
1071
1082
  {modelID: 'TS0202', manufacturerName: '_TYZB01_ef5xlc9q'},
1072
- {modelID: 'TS0202', manufacturerName: '_TYZB01_vwqnz1sn'},
1073
1083
  {modelID: 'TS0202', manufacturerName: '_TYZB01_2b8f6cio'},
1074
1084
  {modelID: 'TS0202', manufacturerName: '_TYZB01_71kfvvma'},
1075
1085
  {modelID: 'TS0202', manufacturerName: '_TZE200_bq5c8xfe'},
@@ -2501,7 +2511,8 @@ module.exports = [
2501
2511
  },
2502
2512
  {
2503
2513
  zigbeeModel: ['5p1vj8r'],
2504
- fingerprint: tuya.fingerprint('TS0601', ['_TZE200_t5p1vj8r', '_TZE200_uebojraa', '_TZE200_vzekyi4c', '_TZE200_yh7aoahi']),
2514
+ fingerprint: tuya.fingerprint('TS0601', ['_TZE200_t5p1vj8r', '_TZE200_uebojraa', '_TZE200_vzekyi4c', '_TZE200_yh7aoahi',
2515
+ '_TZE200_dnz6yvl2']),
2505
2516
  model: 'TS0601_smoke',
2506
2517
  vendor: 'TuYa',
2507
2518
  description: 'Smoke sensor',
@@ -0,0 +1,11 @@
1
+ const extend = require('../lib/extend');
2
+
3
+ module.exports = [
4
+ {
5
+ zigbeeModel: ['HK-DIM-SW'],
6
+ model: 'DMZ250',
7
+ vendor: 'Wisdom',
8
+ description: 'Zigbee led dimmer 5-250 Watt',
9
+ extend: extend.light_onoff_brightness(),
10
+ },
11
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "15.0.2",
3
+ "version": "15.0.4",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [