zigbee-herdsman-converters 14.0.340 → 14.0.341
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/heiman.js +4 -2
- package/devices/tuya.js +2 -0
- package/lib/exposes.js +1 -1
- package/npm-shrinkwrap.json +1 -1
- package/package.json +1 -1
package/devices/heiman.js
CHANGED
|
@@ -73,6 +73,7 @@ module.exports = [
|
|
|
73
73
|
globalStore.clearValue(device, 'interval');
|
|
74
74
|
} else if (!globalStore.hasValue(device, 'interval')) {
|
|
75
75
|
const seconds = options && options.measurement_poll_interval ? options.measurement_poll_interval : 60;
|
|
76
|
+
if (seconds === -1) return;
|
|
76
77
|
const interval = setInterval(async () => {
|
|
77
78
|
try {
|
|
78
79
|
await endpoint.read('haElectricalMeasurement', ['rmsVoltage', 'rmsCurrent', 'activePower']);
|
|
@@ -85,7 +86,8 @@ module.exports = [
|
|
|
85
86
|
},
|
|
86
87
|
{
|
|
87
88
|
zigbeeModel: ['SMOK_V16', 'SMOK_V15', 'b5db59bfd81e4f1f95dc57fdbba17931', '98293058552c49f38ad0748541ee96ba', 'SMOK_YDLV10',
|
|
88
|
-
'FB56-SMF02HM1.4', 'SmokeSensor-N-3.0', '319fa36e7384414a9ea62cba8f6e7626', 'c3442b4ac59b4ba1a83119d938f283ab'
|
|
89
|
+
'FB56-SMF02HM1.4', 'SmokeSensor-N-3.0', '319fa36e7384414a9ea62cba8f6e7626', 'c3442b4ac59b4ba1a83119d938f283ab',
|
|
90
|
+
'SmokeSensor-EF-3.0'],
|
|
89
91
|
model: 'HS1SA',
|
|
90
92
|
vendor: 'HEIMAN',
|
|
91
93
|
description: 'Smoke detector',
|
|
@@ -99,7 +101,7 @@ module.exports = [
|
|
|
99
101
|
exposes: [e.smoke(), e.battery_low(), e.battery()],
|
|
100
102
|
},
|
|
101
103
|
{
|
|
102
|
-
zigbeeModel: ['SmokeSensor-N', 'SmokeSensor-
|
|
104
|
+
zigbeeModel: ['SmokeSensor-N', 'SmokeSensor-EM'],
|
|
103
105
|
model: 'HS3SA',
|
|
104
106
|
vendor: 'HEIMAN',
|
|
105
107
|
description: 'Smoke detector',
|
package/devices/tuya.js
CHANGED
|
@@ -988,6 +988,7 @@ module.exports = [
|
|
|
988
988
|
globalStore.clearValue(device, 'interval');
|
|
989
989
|
} else if (!globalStore.hasValue(device, 'interval')) {
|
|
990
990
|
const seconds = options && options.measurement_poll_interval ? options.measurement_poll_interval : 60;
|
|
991
|
+
if (seconds === -1) return;
|
|
991
992
|
const interval = setInterval(async () => {
|
|
992
993
|
try {
|
|
993
994
|
await endpoint.read('haElectricalMeasurement', ['rmsVoltage', 'rmsCurrent', 'activePower']);
|
|
@@ -1084,6 +1085,7 @@ module.exports = [
|
|
|
1084
1085
|
globalStore.clearValue(device, 'interval');
|
|
1085
1086
|
} else if (!globalStore.hasValue(device, 'interval')) {
|
|
1086
1087
|
const seconds = options && options.measurement_poll_interval ? options.measurement_poll_interval : 60;
|
|
1088
|
+
if (seconds === -1) return;
|
|
1087
1089
|
const interval = setInterval(async () => {
|
|
1088
1090
|
try {
|
|
1089
1091
|
await endpoint.read('haElectricalMeasurement', ['rmsVoltage', 'rmsCurrent', 'activePower']);
|
package/lib/exposes.js
CHANGED
|
@@ -495,7 +495,7 @@ module.exports = {
|
|
|
495
495
|
no_position_support: () => new Binary('no_position_support', access.SET, true, false).withDescription('Set to true when your device only reports position 0, 100 and 50 (in this case your device has an older firmware) (default false).'),
|
|
496
496
|
transition: () => new Numeric(`transition`, access.SET).withValueMin(0).withDescription('Controls the transition time (in seconds) of on/off, brightness, color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).'),
|
|
497
497
|
legacy: () => new Binary(`legacy`, access.SET, true, false).withDescription(`Set to false to disable the legacy integration (highly recommended), will change structure of the published payload (default true).`),
|
|
498
|
-
measurement_poll_interval: () => new Numeric(`measurement_poll_interval`, access.SET).withValueMin(
|
|
498
|
+
measurement_poll_interval: () => new Numeric(`measurement_poll_interval`, access.SET).withValueMin(-1).withDescription(`This device does not support reporting electric measurements so it is polled instead. The default poll interval is 60 seconds, set to -1 to disable.`),
|
|
499
499
|
illuminance_below_threshold_check: () => new Binary(`illuminance_below_threshold_check`, access.SET, true, false).withDescription(`Set to false to also send messages when illuminance is above threshold in night mode (default true).`),
|
|
500
500
|
},
|
|
501
501
|
presets: {
|
package/npm-shrinkwrap.json
CHANGED