HTU21D Temperature+Humidity Sensor

The HTU21D Temperature+Humidity sensor allows you to use your HTU21D (datasheet, adafruit) sensors with esphomelib. The I²C Bus is required to be set up in your configuration for this sensor to work.

https://d33wubrfki0l68.cloudfront.net/dfb18ee824f0b46b09fbaa93b33a1925b541513f/234aa/_images/htu21d-full.jpg

HTU21D Temperature & Humidity Sensor.

https://d33wubrfki0l68.cloudfront.net/74e538d1ae9bb7676d42b3ce2de8978c9c11487b/974e9/_images/temperature-humidity.png

Note

The SI7021 sensor also works with this integration.

# Example configuration entry
sensor:
  - platform: htu21d
    temperature:
      name: "Living Room Temperature"
    humidity:
      name: "Living Room Humidity"
    update_interval: 60s

Configuration variables:

  • temperature (Required): The information for the temperature sensor.
    • name (Required, string): The name for the temperature sensor.
    • id (Optional, ID): Set the ID of this sensor for use in lambdas.
    • All other options from Sensor and MQTT Component.
  • humidity (Required): The information for the humidity sensor.
    • name (Required, string): The name for the humidity sensor.
    • id (Optional, ID): Set the ID of this sensor for use in lambdas.
    • All other options from Sensor and MQTT Component.
  • update_interval (Optional, Time): The interval to check the sensor. Defaults to 60s.