/mqtt-sht30-homie

MQTT Sensor project with SHT30/SHT31 for smart home 🏡 automation

Primary LanguageC++MIT LicenseMIT

Homie Sensor project with SHT30

Build Status GitHub release

The mqtt-sht30-homie project is a simple and easy to integrate temperature and humidity sensor setup similar to my other project with BME280 sensor. I use this sensor in a hidden area, therefor it has no display. Sensor data is send via MQTT and processed by my OpenHab setup. The project is built with a cost-effective ESP8266 WiFi chip, Wemos D1 mine and sensor are available for a total price lower $10.

The software is based on Homie to enable an easy integration with home automation systems like OpenHab.

Hardware

  • ESP8266 (Wemos D1 mini, Nodemcu)
  • SHT30 sensor breakout
  • USB power supply and cable
  • Enclosure

I got the SHT30 breakout form Wemos as part of a set form Aliexpress, others will do as well. This enclosure keeps everything together.

Software

The following software libraries are used. If using PlatformIO all dependencies are resolved automatically.

Config

The following config parameters are available via MQTT message (see Homie documentation how to use):

Parameter Type Usage
sensorInterval long temperature reading interval in seconds
temperatureOffset double temperature offset (-/+) to correct the sensor reading, for example if used in enclosure box