zigbee-herdsman-converters 14.0.542 → 14.0.545
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/hzc_electric.js +18 -0
- package/devices/ikea.js +2 -2
- package/devices/tuya.js +1 -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
|
+
];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const reporting = require('../lib/reporting');
|
|
2
|
+
const extend = require('../lib/extend');
|
|
3
|
+
|
|
4
|
+
module.exports = [
|
|
5
|
+
{
|
|
6
|
+
zigbeeModel: ['DimmerSwitch-2Gang-ZB3.0'],
|
|
7
|
+
model: 'D086-ZG',
|
|
8
|
+
vendor: 'HZC Electric',
|
|
9
|
+
description: 'Zigbee dual dimmer',
|
|
10
|
+
extend: extend.light_onoff_brightness({noConfigure: true}),
|
|
11
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
12
|
+
await extend.light_onoff_brightness().configure(device, coordinatorEndpoint, logger);
|
|
13
|
+
const endpoint = device.getEndpoint(1);
|
|
14
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
|
|
15
|
+
await reporting.onOff(endpoint);
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
];
|
package/devices/ikea.js
CHANGED
|
@@ -870,10 +870,10 @@ module.exports = [
|
|
|
870
870
|
},
|
|
871
871
|
},
|
|
872
872
|
{
|
|
873
|
-
zigbeeModel: ['TRADFRIbulbE14WScandleopal470lm'],
|
|
873
|
+
zigbeeModel: ['TRADFRIbulbE14WScandleopal470lm', 'TRADFRIbulbE12WScandleopal450lm'],
|
|
874
874
|
model: 'LED1949C5',
|
|
875
875
|
vendor: 'IKEA',
|
|
876
|
-
description: 'TRADFRI LED bulb E14 470 lumen, wireless dimmable white spectrum/chandelier opal white',
|
|
876
|
+
description: 'TRADFRI LED bulb E12/E14 450/470 lumen, wireless dimmable white spectrum/chandelier opal white',
|
|
877
877
|
extend: tradfriExtend.light_onoff_brightness_colortemp(),
|
|
878
878
|
},
|
|
879
879
|
{
|
package/devices/tuya.js
CHANGED
|
@@ -882,6 +882,7 @@ module.exports = [
|
|
|
882
882
|
{modelID: 'TS0502B', manufacturerName: '_TZ3210_qjdimezy'},
|
|
883
883
|
{modelID: 'TS0502B', manufacturerName: '_TZ3210_psgq7ysz'},
|
|
884
884
|
{modelID: 'TS0502B', manufacturerName: '_TZ3000_zw7wr5uo'},
|
|
885
|
+
{modelID: 'TS0502B', manufacturerName: '_TZ3210_ok08rifa'},
|
|
885
886
|
{modelID: 'TS0502B', manufacturerName: '_TZ3210_pz9zmxjj'},
|
|
886
887
|
{modelID: 'TS0502B', manufacturerName: '_TZ3000_fzwhym79'},
|
|
887
888
|
{modelID: 'TS0502B', manufacturerName: '_TZ3000_ogceypug'},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zigbee-herdsman-converters",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.545",
|
|
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": "*",
|