zigbee-herdsman-converters 14.0.688 → 14.0.689
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 +0 -25
- package/devices/fantem.js +2 -1
- package/devices/ikea.js +1 -0
- package/devices/mecrator.js +1 -1
- package/devices/moes.js +2 -1
- package/devices/tuya.js +11 -4
- package/devices/zemismart.js +3 -0
- package/package.json +3 -3
package/converters/fromZigbee.js
CHANGED
|
@@ -5040,31 +5040,6 @@ const converters = {
|
|
|
5040
5040
|
}
|
|
5041
5041
|
},
|
|
5042
5042
|
},
|
|
5043
|
-
tuya_smoke: {
|
|
5044
|
-
cluster: 'manuSpecificTuya',
|
|
5045
|
-
type: ['commandDataResponse', 'commandDataReport'],
|
|
5046
|
-
convert: (model, msg, publish, options, meta) => {
|
|
5047
|
-
const result = {};
|
|
5048
|
-
for (const dpValue of msg.data.dpValues) {
|
|
5049
|
-
const dp = dpValue.dp;
|
|
5050
|
-
const value = tuya.getDataValue(dpValue);
|
|
5051
|
-
switch (dp) {
|
|
5052
|
-
case tuya.dataPoints.state:
|
|
5053
|
-
result.smoke = value === 0;
|
|
5054
|
-
break;
|
|
5055
|
-
case 14:
|
|
5056
|
-
// battery state, ignore
|
|
5057
|
-
break;
|
|
5058
|
-
case 15:
|
|
5059
|
-
result.battery = value;
|
|
5060
|
-
break;
|
|
5061
|
-
default:
|
|
5062
|
-
meta.logger.warn(`zigbee-herdsman-converters:tuya_smoke: Unrecognized DP #${ dp} with data ${JSON.stringify(dpValue)}`);
|
|
5063
|
-
}
|
|
5064
|
-
}
|
|
5065
|
-
return result;
|
|
5066
|
-
},
|
|
5067
|
-
},
|
|
5068
5043
|
tuya_woox_smoke: {
|
|
5069
5044
|
cluster: 'manuSpecificTuya',
|
|
5070
5045
|
type: ['commandDataResponse'],
|
package/devices/fantem.js
CHANGED
|
@@ -48,7 +48,8 @@ module.exports = [
|
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
fingerprint: [{modelID: 'TS0202', manufacturerName: '_TZ3210_rxqls8v0'},
|
|
51
|
-
{modelID: 'TS0202', manufacturerName: '_TZ3210_zmy9hjay'}
|
|
51
|
+
{modelID: 'TS0202', manufacturerName: '_TZ3210_zmy9hjay'},
|
|
52
|
+
{modelID: 'TS0202', manufacturerName: '_TZ3210_wuhzzfqg'}],
|
|
52
53
|
model: 'ZB003-X',
|
|
53
54
|
vendor: 'Fantem',
|
|
54
55
|
description: '4 in 1 multi sensor',
|
package/devices/ikea.js
CHANGED
|
@@ -901,6 +901,7 @@ module.exports = [
|
|
|
901
901
|
vendor: 'IKEA',
|
|
902
902
|
description: 'TRADFRI LED bulb E14 470 lumen, opal, dimmable, white spectrum, color spectrum',
|
|
903
903
|
extend: tradfriExtend.light_onoff_brightness_colortemp_color(),
|
|
904
|
+
meta: {turnsOffAtBrightness1: true},
|
|
904
905
|
},
|
|
905
906
|
{
|
|
906
907
|
zigbeeModel: ['TRADFRIbulbE14WWclear250lm', 'TRADFRIbulbE12WWclear250lm'],
|
package/devices/mecrator.js
CHANGED
|
@@ -30,7 +30,7 @@ module.exports = [
|
|
|
30
30
|
},
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
|
-
fingerprint:
|
|
33
|
+
fingerprint: tuya.fingerprint('TS011F', ['_TZ3210_7jnk7l3k', '_TZ3210_raqjcxo5']),
|
|
34
34
|
model: 'SPP02GIP',
|
|
35
35
|
vendor: 'Mercator',
|
|
36
36
|
description: 'Ikuü double outdoors power point',
|
package/devices/moes.js
CHANGED
|
@@ -341,7 +341,8 @@ module.exports = [
|
|
|
341
341
|
]),
|
|
342
342
|
meta: {applyRedFix: true, enhancedHue: false},
|
|
343
343
|
fromZigbee: extend.light_onoff_brightness_colortemp_color().fromZigbee,
|
|
344
|
-
exposes: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500], disableColorTempStartup: true
|
|
344
|
+
exposes: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500], disableColorTempStartup: true,
|
|
345
|
+
disablePowerOnBehavior: true}).exposes.concat([
|
|
345
346
|
exposes.binary('do_not_disturb', ea.STATE_SET, true, false)
|
|
346
347
|
.withDescription('Do not disturb mode'),
|
|
347
348
|
exposes.enum('color_power_on_behavior', ea.STATE_SET, ['initial', 'previous', 'cutomized'])
|
package/devices/tuya.js
CHANGED
|
@@ -2495,13 +2495,20 @@ module.exports = [
|
|
|
2495
2495
|
},
|
|
2496
2496
|
{
|
|
2497
2497
|
zigbeeModel: ['5p1vj8r'],
|
|
2498
|
-
fingerprint:
|
|
2498
|
+
fingerprint: tuya.fingerprint('TS0601', ['_TZE200_t5p1vj8r', '_TZE200_uebojraa', '_TZE200_vzekyi4c', '_TZE200_yh7aoahi']),
|
|
2499
2499
|
model: 'TS0601_smoke',
|
|
2500
2500
|
vendor: 'TuYa',
|
|
2501
2501
|
description: 'Smoke sensor',
|
|
2502
|
-
fromZigbee: [fz.
|
|
2503
|
-
toZigbee: [],
|
|
2504
|
-
exposes: [e.smoke(), e.battery()],
|
|
2502
|
+
fromZigbee: [tuya.fz.datapoints],
|
|
2503
|
+
toZigbee: [tuya.tz.datapoints],
|
|
2504
|
+
exposes: [e.smoke(), e.battery(), tuya.exposes.batteryState()],
|
|
2505
|
+
meta: {
|
|
2506
|
+
tuyaDatapoints: [
|
|
2507
|
+
[1, 'smoke', tuya.valueConverter.true0ElseFalse],
|
|
2508
|
+
[14, 'battery_state', tuya.valueConverter.batteryState],
|
|
2509
|
+
[15, 'battery', tuya.valueConverter.raw],
|
|
2510
|
+
],
|
|
2511
|
+
},
|
|
2505
2512
|
},
|
|
2506
2513
|
{
|
|
2507
2514
|
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_5d3vhjro'}],
|
package/devices/zemismart.js
CHANGED
|
@@ -83,6 +83,9 @@ module.exports = [
|
|
|
83
83
|
description: 'Smart light switch and socket - 2 gang with neutral wire',
|
|
84
84
|
extend: tuya.extend.switch({endpoints: ['left', 'center', 'right']}),
|
|
85
85
|
meta: {multiEndpoint: true},
|
|
86
|
+
endpoint: () => {
|
|
87
|
+
return {'left': 1, 'center': 2, 'right': 3};
|
|
88
|
+
},
|
|
86
89
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
87
90
|
await tuya.configureMagicPacket(device, coordinatorEndpoint, logger);
|
|
88
91
|
for (const endpointID of [1, 2, 3]) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zigbee-herdsman-converters",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.689",
|
|
4
4
|
"description": "Collection of device converters to be used with zigbee-herdsman",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
},
|
|
35
35
|
"homepage": "https://github.com/Koenkk/zigbee-herdsman-converters",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"axios": "
|
|
37
|
+
"axios": "^1.2.1",
|
|
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.80"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"eslint": "*",
|