zigbee-herdsman-converters 15.0.113 → 15.0.114
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/develco.js +24 -0
- package/devices/lidl.js +1 -1
- package/devices/nue_3a.js +1 -1
- package/devices/owon.js +5 -0
- package/devices/third_reality.js +1 -0
- package/devices/tuya.js +25 -1
- package/package.json +1 -1
package/devices/develco.js
CHANGED
|
@@ -487,6 +487,30 @@ module.exports = [
|
|
|
487
487
|
.withDescription('Indicates reason if any fault'),
|
|
488
488
|
exposes.binary('fault', ea.STATE, true, false).withDescription('Indicates whether the device are in fault state')],
|
|
489
489
|
},
|
|
490
|
+
{
|
|
491
|
+
zigbeeModel: ['SPLZB-141'],
|
|
492
|
+
model: 'SPLZB-141',
|
|
493
|
+
vendor: 'Develco',
|
|
494
|
+
description: 'Power plug',
|
|
495
|
+
fromZigbee: [fz.on_off, develco.fz.electrical_measurement, develco.fz.metering],
|
|
496
|
+
toZigbee: [tz.on_off],
|
|
497
|
+
exposes: [e.switch(), e.power(), e.current(), e.voltage(), e.energy(), e.ac_frequency()],
|
|
498
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
499
|
+
const endpoint = device.getEndpoint(2);
|
|
500
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'haElectricalMeasurement', 'seMetering']);
|
|
501
|
+
await reporting.onOff(endpoint);
|
|
502
|
+
await reporting.readEletricalMeasurementMultiplierDivisors(endpoint);
|
|
503
|
+
await reporting.activePower(endpoint);
|
|
504
|
+
await reporting.rmsCurrent(endpoint);
|
|
505
|
+
await reporting.rmsVoltage(endpoint);
|
|
506
|
+
await reporting.readMeteringMultiplierDivisor(endpoint);
|
|
507
|
+
await reporting.currentSummDelivered(endpoint);
|
|
508
|
+
await reporting.acFrequency(endpoint);
|
|
509
|
+
},
|
|
510
|
+
endpoint: (device) => {
|
|
511
|
+
return {default: 2};
|
|
512
|
+
},
|
|
513
|
+
},
|
|
490
514
|
{
|
|
491
515
|
zigbeeModel: ['HESZB-120'],
|
|
492
516
|
model: 'HESZB-120',
|
package/devices/lidl.js
CHANGED
|
@@ -553,7 +553,7 @@ module.exports = [
|
|
|
553
553
|
model: 'HG06337',
|
|
554
554
|
vendor: 'Lidl',
|
|
555
555
|
description: 'Silvercrest smart plug (EU, CH, FR, BS, DK)',
|
|
556
|
-
extend: tuya.extend.switch(),
|
|
556
|
+
extend: tuya.extend.switch({indicatorMode: true}),
|
|
557
557
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
558
558
|
const endpoint = device.getEndpoint(11);
|
|
559
559
|
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
package/devices/nue_3a.js
CHANGED
|
@@ -37,7 +37,7 @@ module.exports = [
|
|
|
37
37
|
model: 'HGZB-01',
|
|
38
38
|
vendor: 'Nue / 3A',
|
|
39
39
|
description: 'Smart Zigbee 3.0 light controller',
|
|
40
|
-
extend: extend.switch(),
|
|
40
|
+
extend: extend.switch({disablePowerOnBehavior: true}),
|
|
41
41
|
whiteLabel: [{vendor: 'Zemismart', model: 'ZW-EU-01', description: 'Smart light relay - 1 gang'},
|
|
42
42
|
{vendor: 'Moes', model: 'ZK-CH-2U', description: 'Plug with 2 USB ports'}],
|
|
43
43
|
configure: async (device, coordinatorEndpoint, logger) => {
|
package/devices/owon.js
CHANGED
|
@@ -109,6 +109,7 @@ module.exports = [
|
|
|
109
109
|
zigbeeModel: ['WSP403-E'],
|
|
110
110
|
model: 'WSP403',
|
|
111
111
|
vendor: 'OWON',
|
|
112
|
+
whiteLabel: [{vendor: 'Oz Smart Things', model: 'WSP403'}],
|
|
112
113
|
description: 'Smart plug',
|
|
113
114
|
fromZigbee: [fz.on_off, fz.metering],
|
|
114
115
|
toZigbee: [tz.on_off],
|
|
@@ -121,6 +122,10 @@ module.exports = [
|
|
|
121
122
|
await reporting.instantaneousDemand(endpoint, {min: 5, max: constants.repInterval.MINUTES_5, change: 2}); // divider 1000: 2W
|
|
122
123
|
await reporting.currentSummDelivered(endpoint, {min: 5, max: constants.repInterval.MINUTES_5,
|
|
123
124
|
change: [10, 10]}); // divider 1000: 0,01kWh
|
|
125
|
+
|
|
126
|
+
// At least some white label devices, like the Oz Smart Things device, don't report a power source so we need to force it
|
|
127
|
+
device.powerSource = 'Mains (single phase)';
|
|
128
|
+
device.save();
|
|
124
129
|
},
|
|
125
130
|
},
|
|
126
131
|
{
|
package/devices/third_reality.js
CHANGED
|
@@ -199,6 +199,7 @@ module.exports = [
|
|
|
199
199
|
description: 'Zigbee vibration sensor',
|
|
200
200
|
fromZigbee: [fz.ias_vibration_alarm_1, fz.battery],
|
|
201
201
|
toZigbee: [],
|
|
202
|
+
ota: ota.zigbeeOTA,
|
|
202
203
|
exposes: [e.vibration(), e.battery_low(), e.battery(), e.battery_voltage()],
|
|
203
204
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
204
205
|
const endpoint = device.getEndpoint(1);
|
package/devices/tuya.js
CHANGED
|
@@ -514,6 +514,14 @@ const tzLocal = {
|
|
|
514
514
|
};
|
|
515
515
|
|
|
516
516
|
const fzLocal = {
|
|
517
|
+
TS0222_humidity: {
|
|
518
|
+
...fz.humidity,
|
|
519
|
+
convert: (model, msg, publish, options, meta) => {
|
|
520
|
+
const result = fz.humidity.convert(model, msg, publish, options, meta);
|
|
521
|
+
result.humidity *= 10;
|
|
522
|
+
return result;
|
|
523
|
+
},
|
|
524
|
+
},
|
|
517
525
|
TS110E: {
|
|
518
526
|
cluster: 'genLevelCtrl',
|
|
519
527
|
type: ['attributeReport', 'readResponse'],
|
|
@@ -1517,7 +1525,11 @@ module.exports = [
|
|
|
1517
1525
|
vendor: 'TuYa',
|
|
1518
1526
|
description: 'Water leak detector',
|
|
1519
1527
|
fromZigbee: [fz.ias_water_leak_alarm_1, fz.battery],
|
|
1520
|
-
whiteLabel: [
|
|
1528
|
+
whiteLabel: [
|
|
1529
|
+
{vendor: 'CR Smart Home', model: 'TS0207'},
|
|
1530
|
+
tuya.whitelabel('Meian', 'SW02', 'Water leak sensor', ['_TZ3000_kyb656no']),
|
|
1531
|
+
tuya.whitelabel('Aubess', 'IH-K665', 'Water leak sensor', ['_TZ3000_k4ej3ww2']),
|
|
1532
|
+
],
|
|
1521
1533
|
toZigbee: [],
|
|
1522
1534
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
1523
1535
|
const endpoint = device.getEndpoint(1);
|
|
@@ -3993,6 +4005,18 @@ module.exports = [
|
|
|
3993
4005
|
],
|
|
3994
4006
|
onEvent: tuya.onEventSetTime,
|
|
3995
4007
|
},
|
|
4008
|
+
{
|
|
4009
|
+
fingerprint: tuya.fingerprint('TS0222', ['_TZ3000_kky16aay']),
|
|
4010
|
+
model: 'TS0222_temperature_humidity',
|
|
4011
|
+
vendor: 'TuYa',
|
|
4012
|
+
description: 'Temperature & humidity sensor',
|
|
4013
|
+
fromZigbee: [fzLocal.TS0222_humidity, fz.battery, fz.temperature, fz.illuminance],
|
|
4014
|
+
toZigbee: [],
|
|
4015
|
+
exposes: [e.battery(), e.temperature(), e.humidity(), e.illuminance()],
|
|
4016
|
+
whiteLabel: [
|
|
4017
|
+
tuya.whitelabel('TuYa', 'QT-07S', 'Soil sensor', ['_TZ3000_kky16aay']),
|
|
4018
|
+
],
|
|
4019
|
+
},
|
|
3996
4020
|
{
|
|
3997
4021
|
fingerprint: [{modelID: 'TS0222', manufacturerName: '_TYZB01_4mdqxxnn'},
|
|
3998
4022
|
{modelID: 'TS0222', manufacturerName: '_TYZB01_m6ec2pgj'}],
|