home-assistant.github.io/source/_components/sensor.dht.markdown
Paulus Schoutsen 04f48395d6 Merge branch 'pr/101'
Conflicts:
	source/components/index.markdown
2015-10-24 21:54:58 -07:00

1.2 KiB

layout title description date sidebar comments sharing footer logo ha_category
page DHT support Instructions how to integrate DHTxx sensors within Home Assistant. 2015-08-30 19:15 false false true true dht.png DIY
The dht sensor platform allows you to get the current temperature and humidity from a DHT11, DHT22, or AM2302 device.

To use your DHTxx sensor in your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
sensor:
  platform: dht
  sensor: DHT22
  pin: 23
  monitored_conditions:
    - temperature
    - humidity

Configuration variables:

  • sensor (Required): The sensor type, supported devices are DHT11, DHT22, and AM2302
  • pin (Required): The pin the sensor is connected to.
  • monitored_conditions array: Conditions to monitor.
    • temperature:
    • humidity:

Available conditions are only temperature and humidity.

The name of the pin to which the sensor is connected has different names on different platforms. 'P8_11' for Beaglebone, '23' for Raspberry Pi.

As this requires access to the GPIO, you will need to run Home Assistant as root.