diff --git a/components/sensor/dht.rst b/components/sensor/dht.rst index ef4455b22..b89b00ce2 100644 --- a/components/sensor/dht.rst +++ b/components/sensor/dht.rst @@ -6,17 +6,14 @@ DHT Temperature+Humidity Sensor :image: dht.jpg :keywords: DHT11, DHT21, DHT22, AMS2301, AM2302, RHT03, SI7021 -The DHT Temperature+Humidity sensor allows you to use your DHT11 -(`datasheet `__, -`Adafruit `__), DHT21/DHT22 -(`datasheet `__, -`Adafruit `__), AMS2301/AM2302 -(`datasheet `__, -`Adafruit `__), RHT03 -(`datasheet `__, -`SparkFun `__) and SI7021 (one wire Sonoff version) -(`datasheet `__, -`SparkFun `__) +The DHT Temperature+Humidity sensor allows you to use your + +- DHT11 (`datasheet `__, `Adafruit `__), +- DHT21/DHT22 (`datasheet `__, `Adafruit `__), +- AMS2301/AM2302 (`datasheet `__, `Adafruit `__), +- RHT03 (`datasheet `__, `SparkFun `__) and +- SI7021 (one wire Sonoff version) (`datasheet `__, `SparkFun `__) + sensors with ESPHome. .. figure:: images/dht-full.jpg @@ -62,6 +59,7 @@ Configuration variables: - **name** (**Required**, string): The name for the humidity sensor. - **id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in lambdas. - All other options from :ref:`Sensor `. + - **model** (*Optional*, int): Manually specify the DHT model, can be one of ``AUTO_DETECT``, ``DHT11``, ``DHT22``, ``DHT22_TYPE2``, ``AM2302``, ``RHT03``, ``SI7021`` @@ -74,6 +72,8 @@ Configuration variables: If you're seeing lots of invalid temperature/humidity warnings in the logs, try manually setting the DHT model with the ``model:`` configuration variable. Other problems could be wrong pull-up resistor values on the DATA pin or too long cables. + + Also, the default ``accuracy_decimals`` value of the humidity levels is set to 0, as the DHT11 for which this was originally written does not have a higher resolution. All other DHT sensors have a higher resolution, and thus should be configured with ``accuracy_decimals: 1``. See Also --------