zigbee-herdsman-converters 14.0.326 → 14.0.327
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/sercomm.js +1 -1
- package/devices/tuya.js +44 -41
- package/npm-shrinkwrap.json +1 -1
- package/package.json +1 -1
package/devices/sercomm.js
CHANGED
|
@@ -70,7 +70,7 @@ module.exports = [
|
|
|
70
70
|
exposes: [e.contact(), e.battery_low(), e.tamper(), e.temperature(), e.battery()],
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
|
-
zigbeeModel: ['SZ-DWS08N', 'SZ-DWS08'],
|
|
73
|
+
zigbeeModel: ['SZ-DWS08N', 'SZ-DWS08', 'SZ-DWS08N-CZ3'],
|
|
74
74
|
model: 'SZ-DWS08',
|
|
75
75
|
vendor: 'Sercomm',
|
|
76
76
|
description: 'Magnetic door & window contact sensor',
|
package/devices/tuya.js
CHANGED
|
@@ -970,7 +970,50 @@ module.exports = [
|
|
|
970
970
|
extend: extend.switch(),
|
|
971
971
|
},
|
|
972
972
|
{
|
|
973
|
-
fingerprint: [
|
|
973
|
+
fingerprint: [
|
|
974
|
+
{modelID: 'TS011F', manufacturerName: '_TZ3000_dpo1ysak', applicationVersion: 69},
|
|
975
|
+
{modelID: 'TS011F', manufacturerName: '_TZ3000_cphmq0q7', applicationVersion: 69},
|
|
976
|
+
{modelID: 'TS011F', manufacturerName: '_TZ3000_5f43h46b', applicationVersion: 69},
|
|
977
|
+
{modelID: 'TS011F', manufacturerName: '_TZ3000_dpo1ysak', applicationVersion: 68},
|
|
978
|
+
{modelID: 'TS011F', manufacturerName: '_TZ3000_cphmq0q7', applicationVersion: 68},
|
|
979
|
+
{modelID: 'TS011F', manufacturerName: '_TZ3000_5f43h46b', applicationVersion: 68},
|
|
980
|
+
],
|
|
981
|
+
model: 'TS011F_plug_3',
|
|
982
|
+
description: 'Smart plug (with power monitoring by polling)',
|
|
983
|
+
vendor: 'TuYa',
|
|
984
|
+
whiteLabel: [{vendor: 'VIKEFON', model: 'TS011F'}],
|
|
985
|
+
fromZigbee: [fz.on_off, fz.electrical_measurement, fz.metering, fz.ignore_basic_report, fz.tuya_switch_power_outage_memory],
|
|
986
|
+
toZigbee: [tz.on_off, tz.tuya_switch_power_outage_memory],
|
|
987
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
988
|
+
const endpoint = device.getEndpoint(1);
|
|
989
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
|
990
|
+
endpoint.saveClusterAttributeKeyValue('haElectricalMeasurement', {acCurrentDivisor: 1000, acCurrentMultiplier: 1});
|
|
991
|
+
endpoint.saveClusterAttributeKeyValue('seMetering', {divisor: 100, multiplier: 1});
|
|
992
|
+
device.save();
|
|
993
|
+
},
|
|
994
|
+
options: [exposes.options.measurement_poll_interval()],
|
|
995
|
+
exposes: [e.switch(), e.power(), e.current(), e.voltage().withAccess(ea.STATE),
|
|
996
|
+
e.energy(), exposes.enum('power_outage_memory', ea.STATE_SET, ['on', 'off', 'restore'])
|
|
997
|
+
.withDescription('Recover state after power outage')],
|
|
998
|
+
onEvent: (type, data, device, options) => {
|
|
999
|
+
const endpoint = device.getEndpoint(1);
|
|
1000
|
+
if (type === 'stop') {
|
|
1001
|
+
clearInterval(globalStore.getValue(device, 'interval'));
|
|
1002
|
+
globalStore.clearValue(device, 'interval');
|
|
1003
|
+
} else if (!globalStore.hasValue(device, 'interval')) {
|
|
1004
|
+
const seconds = options && options.measurement_poll_interval ? options.measurement_poll_interval : 60;
|
|
1005
|
+
const interval = setInterval(async () => {
|
|
1006
|
+
try {
|
|
1007
|
+
await endpoint.read('haElectricalMeasurement', ['rmsVoltage', 'rmsCurrent', 'activePower']);
|
|
1008
|
+
await endpoint.read('seMetering', ['currentSummDelivered']);
|
|
1009
|
+
} catch (error) {/* Do nothing*/}
|
|
1010
|
+
}, seconds*1000);
|
|
1011
|
+
globalStore.putValue(device, 'interval', interval);
|
|
1012
|
+
}
|
|
1013
|
+
},
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
fingerprint: [{modelID: 'TS011F', manufacturerName: '_TZ3000_cphmq0q7'},
|
|
974
1017
|
{modelID: 'TS011F', manufacturerName: '_TZ3000_ew3ldmgx'},
|
|
975
1018
|
{modelID: 'TS011F', manufacturerName: '_TZ3000_ps3dmato'},
|
|
976
1019
|
{modelID: 'TS011F', manufacturerName: '_TZ3000_mraovvmm'},
|
|
@@ -1014,46 +1057,6 @@ module.exports = [
|
|
|
1014
1057
|
exposes: [e.switch(), exposes.enum('power_outage_memory', ea.STATE_SET, ['on', 'off', 'restore'])
|
|
1015
1058
|
.withDescription('Recover state after power outage')],
|
|
1016
1059
|
},
|
|
1017
|
-
{
|
|
1018
|
-
fingerprint: [
|
|
1019
|
-
{modelID: 'TS011F', manufacturerName: '_TZ3000_dpo1ysak'},
|
|
1020
|
-
{modelID: 'TS011F', manufacturerName: '_TZ3000_cphmq0q7', applicationVersion: 69},
|
|
1021
|
-
{modelID: 'TS011F', manufacturerName: '_TZ3000_5f43h46b'},
|
|
1022
|
-
],
|
|
1023
|
-
model: 'TS011F_plug_3',
|
|
1024
|
-
description: 'Smart plug (with power monitoring by polling)',
|
|
1025
|
-
vendor: 'TuYa',
|
|
1026
|
-
whiteLabel: [{vendor: 'VIKEFON', model: 'TS011F'}],
|
|
1027
|
-
fromZigbee: [fz.on_off, fz.electrical_measurement, fz.metering, fz.ignore_basic_report, fz.tuya_switch_power_outage_memory],
|
|
1028
|
-
toZigbee: [tz.on_off, tz.tuya_switch_power_outage_memory],
|
|
1029
|
-
configure: async (device, coordinatorEndpoint, logger) => {
|
|
1030
|
-
const endpoint = device.getEndpoint(1);
|
|
1031
|
-
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
|
1032
|
-
endpoint.saveClusterAttributeKeyValue('haElectricalMeasurement', {acCurrentDivisor: 1000, acCurrentMultiplier: 1});
|
|
1033
|
-
endpoint.saveClusterAttributeKeyValue('seMetering', {divisor: 100, multiplier: 1});
|
|
1034
|
-
device.save();
|
|
1035
|
-
},
|
|
1036
|
-
options: [exposes.options.measurement_poll_interval()],
|
|
1037
|
-
exposes: [e.switch(), e.power(), e.current(), e.voltage().withAccess(ea.STATE),
|
|
1038
|
-
e.energy(), exposes.enum('power_outage_memory', ea.STATE_SET, ['on', 'off', 'restore'])
|
|
1039
|
-
.withDescription('Recover state after power outage')],
|
|
1040
|
-
onEvent: (type, data, device, options) => {
|
|
1041
|
-
const endpoint = device.getEndpoint(1);
|
|
1042
|
-
if (type === 'stop') {
|
|
1043
|
-
clearInterval(globalStore.getValue(device, 'interval'));
|
|
1044
|
-
globalStore.clearValue(device, 'interval');
|
|
1045
|
-
} else if (!globalStore.hasValue(device, 'interval')) {
|
|
1046
|
-
const seconds = options && options.measurement_poll_interval ? options.measurement_poll_interval : 60;
|
|
1047
|
-
const interval = setInterval(async () => {
|
|
1048
|
-
try {
|
|
1049
|
-
await endpoint.read('haElectricalMeasurement', ['rmsVoltage', 'rmsCurrent', 'activePower']);
|
|
1050
|
-
await endpoint.read('seMetering', ['currentSummDelivered']);
|
|
1051
|
-
} catch (error) {/* Do nothing*/}
|
|
1052
|
-
}, seconds*1000);
|
|
1053
|
-
globalStore.putValue(device, 'interval', interval);
|
|
1054
|
-
}
|
|
1055
|
-
},
|
|
1056
|
-
},
|
|
1057
1060
|
{
|
|
1058
1061
|
zigbeeModel: ['5p1vj8r'],
|
|
1059
1062
|
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_t5p1vj8r'}, {modelID: 'TS0601', manufacturerName: '_TZE200_uebojraa'}],
|
package/npm-shrinkwrap.json
CHANGED