zigbee-herdsman-converters 14.0.541 → 14.0.544
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 -1
- package/devices/bseed.js +17 -0
- package/devices/trust.js +14 -0
- package/package.json +2 -2
package/converters/fromZigbee.js
CHANGED
|
@@ -2259,9 +2259,10 @@ const converters = {
|
|
|
2259
2259
|
switch (dp) {
|
|
2260
2260
|
case tuya.dataPoints.coverPosition: // Started moving to position (triggered from Zigbee)
|
|
2261
2261
|
case tuya.dataPoints.coverArrived: { // Arrived at position
|
|
2262
|
-
const running = dp === tuya.dataPoints.coverPosition;
|
|
2263
2262
|
const invert = tuya.isCoverInverted(meta.device.manufacturerName) ? !options.invert_cover : options.invert_cover;
|
|
2264
2263
|
const position = invert ? 100 - (value & 0xFF) : (value & 0xFF);
|
|
2264
|
+
let running = position == 0 || position == 100;
|
|
2265
|
+
if (dp === tuya.dataPoints.coverArrived) running = false;
|
|
2265
2266
|
|
|
2266
2267
|
if (position > 0 && position <= 100) {
|
|
2267
2268
|
return {running, position, state: 'OPEN'};
|
package/devices/bseed.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const exposes = require('../lib/exposes');
|
|
2
|
+
const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee};
|
|
3
|
+
const tz = require('../converters/toZigbee');
|
|
4
|
+
const e = exposes.presets;
|
|
5
|
+
const ea = exposes.access;
|
|
6
|
+
|
|
7
|
+
module.exports = [
|
|
8
|
+
{
|
|
9
|
+
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_yenbr4om'}],
|
|
10
|
+
model: 'BSEED_TS0601_cover',
|
|
11
|
+
vendor: 'BSEED',
|
|
12
|
+
description: 'Zigbee curtain switch',
|
|
13
|
+
fromZigbee: [fz.tuya_cover],
|
|
14
|
+
toZigbee: [tz.tuya_cover_control],
|
|
15
|
+
exposes: [e.cover_position().setAccess('position', ea.STATE_SET)],
|
|
16
|
+
},
|
|
17
|
+
];
|
package/devices/trust.js
CHANGED
|
@@ -5,6 +5,20 @@ const extend = require('../lib/extend');
|
|
|
5
5
|
const e = exposes.presets;
|
|
6
6
|
|
|
7
7
|
module.exports = [
|
|
8
|
+
{
|
|
9
|
+
fingerprint: [{modelID: 'SmokeSensor-EM', manufacturerName: 'Trust'}],
|
|
10
|
+
model: 'ZSDR-850',
|
|
11
|
+
vendor: 'Trust',
|
|
12
|
+
description: 'Smoke detector',
|
|
13
|
+
fromZigbee: [fz.ias_smoke_alarm_1, fz.battery],
|
|
14
|
+
toZigbee: [],
|
|
15
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
16
|
+
const endpoint = device.getEndpoint(1);
|
|
17
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg']);
|
|
18
|
+
await reporting.batteryPercentageRemaining(endpoint);
|
|
19
|
+
},
|
|
20
|
+
exposes: [e.smoke(), e.battery_low(), e.battery()],
|
|
21
|
+
},
|
|
8
22
|
{
|
|
9
23
|
zigbeeModel: ['WATER_TPV14'],
|
|
10
24
|
model: 'ZWLD-100',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zigbee-herdsman-converters",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.544",
|
|
4
4
|
"description": "Collection of device converters to be used with zigbee-herdsman",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"buffer-crc32": "^0.2.13",
|
|
39
39
|
"https-proxy-agent": "^5.0.1",
|
|
40
40
|
"tar-stream": "^2.2.0",
|
|
41
|
-
"zigbee-herdsman": "^0.14.
|
|
41
|
+
"zigbee-herdsman": "^0.14.35"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"eslint": "*",
|