usermods/BME280_v2/README.md
This Usermod is designed to read a BME280 or BMP280 sensor and output the following:
BME280 only)BME280 only)BME280 only)Configuration is performed via the Usermod menu. There are no parameters to set in code! The following settings can be configured in the Usermod Menu:
Dependencies
BME280@~3.0.0 (by finitespace)WireIn addition to outputting via MQTT, you can read the values from the Info Screen on the dashboard page of the device's web interface.
Methods also exist to read the read/calculated values from other WLED modules through code.
getTemperatureC()getTemperatureF()getHumidity()getPressure()getDewPointC()getDewPointF()getHeatIndexC()getHeatIndexF()To enable, add BME280_v2 to your custom_usermods (e.g. in platformio_override.ini)
[env:usermod_bme280_d1_mini]
extends = env:d1_mini
custom_usermods = ${env:d1_mini.custom_usermods} BME280_v2
MQTT topics are as follows (<deviceTopic> is set in MQTT section of Sync Setup menu):
| Measurement type | MQTT topic |
|---|---|
| Temperature | <deviceTopic>/temperature |
| Humidity | <deviceTopic>/humidity |
| Pressure | <deviceTopic>/pressure |
| Heat index | <deviceTopic>/heat_index |
| Dew point | <deviceTopic>/dew_point |
If you are using Home Assistant, and Home Assistant Discovery is turned on, Home Assistant should automatically detect a new device, provided you have the MQTT integration installed. The device is separate from the main WLED device and will contain sensors for Pressure, Humidity, Temperature, Dew Point and Heat Index.
Jul 2022
readme.mdApr 2021
Publish Always optionDec 2020
measure intervalsdecimal places in published sensor values16x oversampling of sensor during measurement