zigbee-herdsman-converters 14.0.565 → 14.0.566
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/owon.js +1 -1
- package/devices/tuya.js +7 -3
- package/package.json +2 -2
package/converters/fromZigbee.js
CHANGED
|
@@ -7338,13 +7338,14 @@ const converters = {
|
|
|
7338
7338
|
const dpValue = tuya.firstDpValue(msg, meta, 'SLUXZB');
|
|
7339
7339
|
const dp = dpValue.dp;
|
|
7340
7340
|
const value = tuya.getDataValue(dpValue);
|
|
7341
|
+
const brightnesStateLookup = {'0': 'LOW', '1': 'MEDIUM', '2': 'HIGH'};
|
|
7341
7342
|
switch (dp) {
|
|
7342
7343
|
case 2:
|
|
7343
7344
|
return {illuminance_lux: value};
|
|
7344
7345
|
case 4:
|
|
7345
7346
|
return {battery: value};
|
|
7346
7347
|
case 1:
|
|
7347
|
-
return {
|
|
7348
|
+
return {brightness_level: brightnesStateLookup[value]};
|
|
7348
7349
|
default:
|
|
7349
7350
|
meta.logger.warn(`s_lux_zb_illuminance: NOT RECOGNIZED DP #${dp} with data ${JSON.stringify(dpValue)}`);
|
|
7350
7351
|
}
|
package/devices/owon.js
CHANGED
package/devices/tuya.js
CHANGED
|
@@ -498,7 +498,8 @@ module.exports = [
|
|
|
498
498
|
{modelID: 'TS0505B', manufacturerName: '_TZ3210_s6zec0of'},
|
|
499
499
|
{modelID: 'TS0505B', manufacturerName: '_TZ3210_y5fjkn7x'},
|
|
500
500
|
{modelID: 'TS0505B', manufacturerName: '_TZ3210_cuqkfz2q'},
|
|
501
|
-
{modelID: 'TS0505B', manufacturerName: '_TZ3210_6amjviba'}
|
|
501
|
+
{modelID: 'TS0505B', manufacturerName: '_TZ3210_6amjviba'},
|
|
502
|
+
{modelID: 'TS0505B', manufacturerName: '_TZ3000_xr5m6kfg'}],
|
|
502
503
|
model: 'TS0505B',
|
|
503
504
|
vendor: 'TuYa',
|
|
504
505
|
description: 'Zigbee RGB+CCT light',
|
|
@@ -751,7 +752,8 @@ module.exports = [
|
|
|
751
752
|
const endpoint = device.getEndpoint(1);
|
|
752
753
|
await reporting.bind(endpoint, coordinatorEndpoint, ['genBasic']);
|
|
753
754
|
},
|
|
754
|
-
exposes: [e.battery(), e.illuminance_lux(), e.
|
|
755
|
+
exposes: [e.battery(), e.illuminance_lux(), e.linkquality(),
|
|
756
|
+
exposes.enum('brightness_level', ea.STATE, ['LOW', 'MEDIUM', 'HIGH'])],
|
|
755
757
|
},
|
|
756
758
|
{
|
|
757
759
|
zigbeeModel: ['TS130F'],
|
|
@@ -1864,7 +1866,9 @@ module.exports = [
|
|
|
1864
1866
|
},
|
|
1865
1867
|
},
|
|
1866
1868
|
{
|
|
1867
|
-
fingerprint: [{modelID: 'TS0012', manufacturerName: '_TZ3000_jl7qyupf'},
|
|
1869
|
+
fingerprint: [{modelID: 'TS0012', manufacturerName: '_TZ3000_jl7qyupf'},
|
|
1870
|
+
{modelID: 'TS0012', manufacturerName: '_TZ3000_nPGIPl5D'},
|
|
1871
|
+
{modelID: 'TS0012', manufacturerName: '_TZ3000_4zf0crgo'}],
|
|
1868
1872
|
model: 'TS0012_switch_module',
|
|
1869
1873
|
vendor: 'TuYa',
|
|
1870
1874
|
description: '2 gang switch module - (without neutral)',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zigbee-herdsman-converters",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.566",
|
|
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.42"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"eslint": "*",
|