zigbee-herdsman-converters 14.0.538 → 14.0.539
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/devices/lellki.js +3 -0
- package/devices/niko.js +6 -0
- package/devices/sengled.js +0 -1
- package/devices/tuya.js +3 -3
- package/devices/zemismart.js +3 -0
- package/lib/ota/inovelli.js +3 -3
- package/package.json +1 -1
package/devices/lellki.js
CHANGED
|
@@ -23,6 +23,9 @@ module.exports = [
|
|
|
23
23
|
return {l1: 1, l2: 2, l3: 3, l4: 4, l5: 5};
|
|
24
24
|
},
|
|
25
25
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
26
|
+
await device.getEndpoint(1).read('genBasic', [
|
|
27
|
+
'manufacturerName', 'zclVersion', 'appVersion', 'modelId', 'powerSource', 0xfffe]);
|
|
28
|
+
|
|
26
29
|
for (const ID of [1, 2, 3, 4, 5]) {
|
|
27
30
|
await reporting.bind(device.getEndpoint(ID), coordinatorEndpoint, ['genOnOff']);
|
|
28
31
|
}
|
package/devices/niko.js
CHANGED
|
@@ -227,5 +227,11 @@ module.exports = [
|
|
|
227
227
|
fromZigbee: [fz.on_off, fz.brightness, fz.level_config, fz.command_move, fz.command_stop],
|
|
228
228
|
toZigbee: [tz.light_onoff_brightness, tz.level_config],
|
|
229
229
|
exposes: [e.light_brightness().withLevelConfig()],
|
|
230
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
231
|
+
const endpoint = device.getEndpoint(1);
|
|
232
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
|
|
233
|
+
await reporting.onOff(endpoint);
|
|
234
|
+
await reporting.brightness(endpoint);
|
|
235
|
+
},
|
|
230
236
|
},
|
|
231
237
|
];
|
package/devices/sengled.js
CHANGED
package/devices/tuya.js
CHANGED
|
@@ -14,7 +14,7 @@ const TS011Fplugs = ['_TZ3000_5f43h46b', '_TZ3000_cphmq0q7', '_TZ3000_dpo1ysak',
|
|
|
14
14
|
'_TZ3000_jvzvulen', '_TZ3000_mraovvmm', '_TZ3000_nfnmi125', '_TZ3000_ps3dmato', '_TZ3000_w0qqde0g', '_TZ3000_u5u4cakc',
|
|
15
15
|
'_TZ3000_rdtixbnu', '_TZ3000_typdpbpg', '_TZ3000_kx0pris5', '_TZ3000_amdymr7l', '_TZ3000_z1pnpsdo', '_TZ3000_ksw8qtmt',
|
|
16
16
|
'_TZ3000_nzkqcvvs', '_TZ3000_1h2x4akh', '_TZ3000_9vo5icau', '_TZ3000_cehuw1lw', '_TZ3000_ko6v90pg', '_TZ3000_f1bapcit',
|
|
17
|
-
'_TZ3000_cjrngdr3', '_TZ3000_zloso4jk', '_TZ3000_r6buo8ba'];
|
|
17
|
+
'_TZ3000_cjrngdr3', '_TZ3000_zloso4jk', '_TZ3000_r6buo8ba', '_TZ3000_iksasdbv', '_TZ3000_dd8wwzcy'];
|
|
18
18
|
|
|
19
19
|
const tzLocal = {
|
|
20
20
|
TS0504B_color: {
|
|
@@ -247,7 +247,7 @@ const fzLocal = {
|
|
|
247
247
|
case 116: // report confirmation
|
|
248
248
|
break;
|
|
249
249
|
case 121: // running state
|
|
250
|
-
result.
|
|
250
|
+
result.motor_state = {0: 'OPENING', 1: 'STOPPED', 2: 'CLOSING'}[value];
|
|
251
251
|
result.running = (value !== 1) ? true : false;
|
|
252
252
|
break;
|
|
253
253
|
default: // Unknown code
|
|
@@ -2598,7 +2598,7 @@ module.exports = [
|
|
|
2598
2598
|
exposes: [
|
|
2599
2599
|
e.cover_position().setAccess('position', ea.STATE_SET),
|
|
2600
2600
|
exposes.enum('goto_positon', ea.SET, ['25', '50', '75', 'FAVORITE']),
|
|
2601
|
-
exposes.enum('
|
|
2601
|
+
exposes.enum('motor_state', ea.STATE, ['OPENING', 'CLOSING', 'STOPPED']),
|
|
2602
2602
|
exposes.numeric('active_power', ea.STATE).withDescription('Active power').withUnit('mWt'),
|
|
2603
2603
|
exposes.numeric('cycle_count', ea.STATE).withDescription('Cycle count'),
|
|
2604
2604
|
exposes.numeric('cycle_time', ea.STATE).withDescription('Cycle time').withUnit('ms'),
|
package/devices/zemismart.js
CHANGED
|
@@ -144,6 +144,9 @@ module.exports = [
|
|
|
144
144
|
},
|
|
145
145
|
meta: {multiEndpoint: true},
|
|
146
146
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
147
|
+
await device.getEndpoint(1).read('genBasic', [
|
|
148
|
+
'manufacturerName', 'zclVersion', 'appVersion', 'modelId', 'powerSource', 0xfffe]);
|
|
149
|
+
|
|
147
150
|
await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
|
|
148
151
|
await reporting.bind(device.getEndpoint(2), coordinatorEndpoint, ['genOnOff']);
|
|
149
152
|
await reporting.onOff(device.getEndpoint(1));
|
package/lib/ota/inovelli.js
CHANGED
|
@@ -18,8 +18,8 @@ async function getImageMeta(current, logger, device) {
|
|
|
18
18
|
.sort((a, b) => {
|
|
19
19
|
const aRadix = a.version.match(/[A-F]/) ? 16 : 10;
|
|
20
20
|
const bRadix = b.version.match(/[A-F]/) ? 16 : 10;
|
|
21
|
-
const aVersion =
|
|
22
|
-
const bVersion =
|
|
21
|
+
const aVersion = parseFloat(a.version, aRadix);
|
|
22
|
+
const bVersion = parseFloat(b.version, bRadix);
|
|
23
23
|
// doesn't matter which order they are in
|
|
24
24
|
if (aVersion < bVersion) {
|
|
25
25
|
return -1;
|
|
@@ -37,7 +37,7 @@ async function getImageMeta(current, logger, device) {
|
|
|
37
37
|
}
|
|
38
38
|
// version in the firmare removes the zero padding and support hex versioning
|
|
39
39
|
return {
|
|
40
|
-
fileVersion:
|
|
40
|
+
fileVersion: parseFloat(image.version, image.version.match(/[A-F]/) ? 16 : 10),
|
|
41
41
|
url: image.firmware,
|
|
42
42
|
};
|
|
43
43
|
}
|