From da696cb4822db16c7830fd4d5a65662aee672d80 Mon Sep 17 00:00:00 2001 From: Alexander Degtyarev <77433258+wb-adegtyarev@users.noreply.github.com> Date: Wed, 26 Oct 2022 19:59:30 +0400 Subject: [PATCH] WB-MSW-ZIGBEE v.3: Removed reading values when configuring (#4833) * Removed reading values when configuring, because sometimes there were errors. * Update sprut.js Co-authored-by: Koen Kanters --- devices/sprut.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/devices/sprut.js b/devices/sprut.js index 7a2c4e25150a7..c7ddbca4d3faa 100644 --- a/devices/sprut.js +++ b/devices/sprut.js @@ -273,10 +273,10 @@ module.exports = [ .withDescription('The minimum noise level at which the detector will work (default: 50)'), e.enum('co2_autocalibration', ea.ALL, switchActionValues) .withDescription('Automatic calibration of the CO2 sensor. If ON, the CO2 sensor will automatically calibrate '+ - 'every 7 days.'), + 'every 7 days. (MH-Z19B sensor)'), e.enum('co2_manual_calibration', ea.ALL, switchActionValues) .withDescription('Ventilate the room for 20 minutes, turn on manual calibration, and turn it off after one second. '+ - 'After about 5 minutes the CO2 sensor will show 400ppm. Calibration completed'), + 'After about 5 minutes the CO2 sensor will show 400ppm. Calibration completed. (MH-Z19B sensor)'), e.enum('th_heater', ea.ALL, switchActionValues) .withDescription('Turn on when working in conditions of high humidity (more than 70 %, RH) or condensation, '+ 'if the sensor shows 0 or 100 %.'), @@ -307,14 +307,6 @@ module.exports = [ // buzzer await device.getEndpoint(4).read('genOnOff', ['onOff']); - - // Read data at start - await endpoint1.read('msTemperatureMeasurement', ['measuredValue']); - await endpoint1.read('msIlluminanceMeasurement', ['measuredValue']); - await endpoint1.read('msRelativeHumidity', ['measuredValue']); - await endpoint1.read('msOccupancySensing', ['occupancy']); - await endpoint1.read('sprutNoise', ['noise']); - await endpoint1.read('sprutNoise', ['noiseDetected']); }, endpoint: (device) => { return {'default': 1, 'l1': 2, 'l2': 3, 'l3': 4};