zigbee-herdsman-converters 14.0.445 → 14.0.446

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.
@@ -7726,6 +7726,8 @@ const converters = {
7726
7726
  case tuya.dataPoints.trsIlluminanceLux:
7727
7727
  result = {illuminance_lux: value};
7728
7728
  break;
7729
+ case tuya.dataPoints.trsDetectionData: // Ignore this, function of this DP is unknown at the moment!
7730
+ break;
7729
7731
  default:
7730
7732
  meta.logger.warn(`fromZigbee.tuya_radar_sensor: NOT RECOGNIZED DP ${dp} with data ${JSON.stringify(dpValue)}`);
7731
7733
  }
@@ -13,7 +13,7 @@ const tzLocal = {
13
13
  convertSet: async (entity, key, value, meta) => {
14
14
  const state = value.toLowerCase();
15
15
  utils.validateValue(state, ['toggle', 'off', 'on']);
16
- const endpoint = meta.mapped.model === 'AU-A1ZBDSS' ? meta.device.getEndpoint(3) : meta.device.getEndpoint(2);
16
+ const endpoint = meta.mapped.model === 'AU-A1ZBDSS' ? meta.device.getEndpoint(2) : meta.device.getEndpoint(3);
17
17
  await endpoint.command('genOnOff', state, {});
18
18
  return {state: {backlight_led: state.toUpperCase()}};
19
19
  },
package/devices/lidl.js CHANGED
@@ -446,6 +446,8 @@ module.exports = [
446
446
  extend: extend.switch(),
447
447
  meta: {multiEndpoint: true},
448
448
  configure: async (device, coordinatorEndpoint, logger) => {
449
+ const endpoint = device.getEndpoint(1);
450
+ await endpoint.read('genBasic', ['manufacturerName', 'zclVersion', 'appVersion', 'modelId', 'powerSource', 0xfffe]);
449
451
  for (const ID of [1, 2, 3]) {
450
452
  await reporting.bind(device.getEndpoint(ID), coordinatorEndpoint, ['genOnOff']);
451
453
  }
@@ -3,6 +3,7 @@ const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/lega
3
3
  const tz = require('../converters/toZigbee');
4
4
  const e = exposes.presets;
5
5
  const ea = exposes.access;
6
+ const reporting = require('../lib/reporting');
6
7
 
7
8
  module.exports = [
8
9
  {
@@ -19,8 +20,14 @@ module.exports = [
19
20
  model: 'HDM40PV620',
20
21
  vendor: 'Qmotion',
21
22
  description: 'Motorized roller blind',
22
- fromZigbee: [fz.identify],
23
+ fromZigbee: [fz.identify, fz.cover_position_tilt, fz.battery],
23
24
  toZigbee: [tz.cover_state, tz.cover_position_tilt],
24
- exposes: [e.cover_position()],
25
+ exposes: [e.cover_position(), e.battery()],
26
+ configure: async (device, coordinatorEndpoint, logger) => {
27
+ const endpoint = device.getEndpoint(1);
28
+ await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg', 'closuresWindowCovering']);
29
+ await reporting.batteryPercentageRemaining(endpoint);
30
+ await reporting.currentPositionLiftPercentage(endpoint);
31
+ },
25
32
  },
26
33
  ];
@@ -125,7 +125,10 @@ module.exports = [
125
125
  },
126
126
  },
127
127
  {
128
- fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_iossyxra'}],
128
+ fingerprint: [
129
+ {modelID: 'TS0601', manufacturerName: '_TZE200_iossyxra'},
130
+ {modelID: 'TS0601', manufacturerName: '_TZE200_gubdgai2'},
131
+ ],
129
132
  model: 'ZM-AM02_cover',
130
133
  vendor: 'Zemismart',
131
134
  description: 'Zigbee/RF curtain converter',
package/lib/tuya.js CHANGED
@@ -435,6 +435,7 @@ const dataPoints = {
435
435
  trsSensitivity: 2,
436
436
  trsMotionState: 102,
437
437
  trsIlluminanceLux: 103,
438
+ trsDetectionData: 104,
438
439
  trsScene: 112,
439
440
  trsMotionDirection: 114,
440
441
  trsMotionSpeed: 115,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.445",
3
+ "version": "14.0.446",
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.445",
3
+ "version": "14.0.446",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [