DHT12 Temperature+Humidity Sensor

The dht12 Temperature+Humidity sensor allows you to use your DHT12 (datasheet, electrodragon) i2c-based sensor with esphomelib.

../../../_images/dht12-full.jpg

DHT12 Temperature & Humidity Sensor.

../../../_images/temperature-humidity.png
# Example configuration entry
sensor:
  - platform: dht12
    temperature:
      name: "Living Room Temperature"
    humidity:
      name: "Living Room Humidity"
    update_interval: 15s

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 15s. See update_interval gotchas.