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.
- package/converters/fromZigbee.js +2 -0
- package/devices/aurora_lighting.js +1 -1
- package/devices/lidl.js +2 -0
- package/devices/qmotion.js +9 -2
- package/devices/zemismart.js +4 -1
- package/lib/tuya.js +1 -0
- package/npm-shrinkwrap.json +1 -1
- package/package.json +1 -1
package/converters/fromZigbee.js
CHANGED
|
@@ -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(
|
|
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
|
}
|
package/devices/qmotion.js
CHANGED
|
@@ -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
|
];
|
package/devices/zemismart.js
CHANGED
|
@@ -125,7 +125,10 @@ module.exports = [
|
|
|
125
125
|
},
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
|
-
fingerprint: [
|
|
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
package/npm-shrinkwrap.json
CHANGED