usermods/sensors_to_mqtt/readme.md
Publishes BMP280, CCS811 and Si7021 measurements to Home Assistant via MQTT.
Uses Home Assistant Automatic Device Discovery.
The use of Home Assistant is not mandatory. The mod will publish sensor values via MQTT just fine without it.
Uses the MQTT connection set in the WLED web user interface.
twitter.com/mpronk89
$mqttDeviceTopic is set in webui of WLED!
temperature: $mqttDeviceTopic/temperature
pressure: $mqttDeviceTopic/pressure
humidity: $mqttDeviceTopic/humidity
tvoc: $mqttDeviceTopic/tvoc
eCO2: $mqttDeviceTopic/eco2
IAQ: $mqttDeviceTopic/iaq
Attach the sensor to the i2c interface.
Default PINs esp32:
SCL_PIN = 22;
SDA_PIN = 21;
Default PINs ESP8266:
SCL_PIN = 5;
SDA_PIN = 4;