Skip to content

Commit

Permalink
WB-MSW-ZIGBEE v.3: Removed reading values when configuring (#4833)
Browse files Browse the repository at this point in the history
* Removed reading values when configuring, because sometimes there were errors.

* Update sprut.js

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
  • Loading branch information
aadegtyarev and Koenkk committed Oct 26, 2022
1 parent b776f63 commit da696cb
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions devices/sprut.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 %.'),
Expand Down Expand Up @@ -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};
Expand Down

0 comments on commit da696cb

Please sign in to comment.