zigbee-herdsman-converters 15.0.42 → 15.0.43
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/lidl.js +4 -6
- package/devices/xiaomi.js +0 -1
- package/lib/xiaomi.js +1 -1
- package/package.json +1 -1
package/devices/lidl.js
CHANGED
|
@@ -2,7 +2,6 @@ const exposes = require('../lib/exposes');
|
|
|
2
2
|
const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee};
|
|
3
3
|
const tz = require('../converters/toZigbee');
|
|
4
4
|
const reporting = require('../lib/reporting');
|
|
5
|
-
const extend = require('../lib/extend');
|
|
6
5
|
const e = exposes.presets;
|
|
7
6
|
const ea = exposes.access;
|
|
8
7
|
const tuya = require('../lib/tuya');
|
|
@@ -372,7 +371,7 @@ module.exports = [
|
|
|
372
371
|
model: 'HG06337',
|
|
373
372
|
vendor: 'Lidl',
|
|
374
373
|
description: 'Silvercrest smart plug (EU, CH, FR, BS, DK)',
|
|
375
|
-
extend: extend.switch(),
|
|
374
|
+
extend: tuya.extend.switch(),
|
|
376
375
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
377
376
|
const endpoint = device.getEndpoint(11);
|
|
378
377
|
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
|
@@ -493,8 +492,7 @@ module.exports = [
|
|
|
493
492
|
model: 'HG06338',
|
|
494
493
|
vendor: 'Lidl',
|
|
495
494
|
description: 'Silvercrest 3 gang switch, with 4 USB (EU, FR, CZ, BS)',
|
|
496
|
-
|
|
497
|
-
extend: extend.switch(),
|
|
495
|
+
extend: tuya.extend.switch({endpoints: ['l1', 'l2', 'l3']}),
|
|
498
496
|
meta: {multiEndpoint: true},
|
|
499
497
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
500
498
|
await tuya.configureMagicPacket(device, coordinatorEndpoint, logger);
|
|
@@ -778,7 +776,7 @@ module.exports = [
|
|
|
778
776
|
model: 'HG06620',
|
|
779
777
|
vendor: 'Lidl',
|
|
780
778
|
description: 'Silvercrest garden spike with 2 sockets',
|
|
781
|
-
extend: extend.switch(),
|
|
779
|
+
extend: tuya.extend.switch(),
|
|
782
780
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
783
781
|
const endpoint = device.getEndpoint(1);
|
|
784
782
|
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
|
@@ -801,7 +799,7 @@ module.exports = [
|
|
|
801
799
|
model: 'HG06619',
|
|
802
800
|
vendor: 'Lidl',
|
|
803
801
|
description: 'Silvercrest outdoor plug',
|
|
804
|
-
extend: extend.switch(),
|
|
802
|
+
extend: tuya.extend.switch(),
|
|
805
803
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
806
804
|
const endpoint = device.getEndpoint(1);
|
|
807
805
|
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
package/devices/xiaomi.js
CHANGED
package/lib/xiaomi.js
CHANGED
|
@@ -163,7 +163,7 @@ const numericAttributes2Payload = async (msg, meta, model, options, dataObject)
|
|
|
163
163
|
}
|
|
164
164
|
break;
|
|
165
165
|
case '3':
|
|
166
|
-
if (['WXCJKG11LM', 'WXCJKG12LM', 'WXCJKG13LM', 'MCCGQ14LM', 'GZCGQ01LM', 'JY-GZ-01AQ'].includes(model.model)) {
|
|
166
|
+
if (['WXCJKG11LM', 'WXCJKG12LM', 'WXCJKG13LM', 'MCCGQ14LM', 'GZCGQ01LM', 'JY-GZ-01AQ', 'CTP-R01'].includes(model.model)) {
|
|
167
167
|
// The temperature value is constant 25 °C and does not change, so we ignore it
|
|
168
168
|
// https://github.com/Koenkk/zigbee2mqtt/issues/11126
|
|
169
169
|
// https://github.com/Koenkk/zigbee-herdsman-converters/pull/3585
|