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)Wire
lib_deps
in your platform.ini
(or platform_override.ini
).In 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, compile with USERMOD_BME280
defined (e.g. in platformio_override.ini
)
[env:usermod_bme280_d1_mini]
extends = env:d1_mini
build_flags =
${common.build_flags_esp8266}
-D USERMOD_BME280
lib_deps =
${esp8266.lib_deps}
BME280@~3.0.0
Wire
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.md
Apr 2021
Publish Always
optionDec 2020
measure intervals
decimal places
in published sensor values16x oversampling
of sensor during measurementВы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Комментарий ( 0 )