Skip to content

Commit

Permalink
Set lux_corrected if < 1000; corrected Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mschlenstedt committed Aug 19, 2024
1 parent 7b64dc7 commit 408ae5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,16 @@ Hardware support is provided by specific GPIO, Sensor and Stream modules. It's e
- DHT11/DHT22/AM2302 temperature and humidity sensors (`dht22`)
- DS18S20/DS1822/DS18B20/DS1825/DS28EA00/MAX31850K temperature sensors (`ds18b`)
- ENS160 digital multi-gas sensor with multiple IAQ data (TVOC, eCO2, AQI) (`ens160`)
- FLOWSENSOR generic flow rate sensor like YF-S201 or YF-DN50 (`flowsensor`)
- FREQUENCYCOUNTER Counts pulses from GPIOs and return the frequency in Hz (frequencycounter)
- FLOWSENSOR generic flow rate sensor like YF-S201, YF-DN50 or others (`flowsensor`)
- FREQUENCYCOUNTER Counts pulses from GPIOs and return the frequency in Hz (`frequencycounterr`)
- HCSR04 ultrasonic range sensor (connected to the Raspberry Pi on-board GPIO) (`hcsr04`)
- INA219 DC current sensor (`ina219`)
- LM75 temperature sensor (`lm75`)
- MCP3008 analog to digital converter (`mcp3008`)
- ADXl345 3-axis accelerometer up to ±16g (`adxl345`)
- PMS5003 particulate sensor (`pms5003`)
- SHT40/SHT41/SHT45 temperature and humidity sensors (`sht4x`)
- TLSl2561 light level sensor (`tsl2561`)
- VEML7700 light level sensor (`veml7700`)
- YF-S201 flow rate sensor (`yfs201`)

Expand Down
2 changes: 2 additions & 0 deletions mqtt_io/modules/sensor/veml7700.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ def get_value(self, sens_conf: ConfigType) -> SensorValueType:
(-9.3924e-9 * data['lux'] ** 3) + \
(8.1488e-5 * data['lux'] ** 2) + \
(1.0023 * data['lux'])
else:
data['lux_corrected'] = data['lux']

return cast(
float,
Expand Down

0 comments on commit 408ae5c

Please sign in to comment.