From d1d889d3f82fc0937528e8a79bfcdc9e153b4ab2 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Fri, 19 Jan 2024 15:50:04 +1300 Subject: [PATCH] Add AM2120 model to dht (#3559) --- components/sensor/dht.rst | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/components/sensor/dht.rst b/components/sensor/dht.rst index 812f960b9..f8943d6c0 100644 --- a/components/sensor/dht.rst +++ b/components/sensor/dht.rst @@ -6,12 +6,13 @@ 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 +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 +- DHT11 (`datasheet `__, `Adafruit `__), +- DHT21/DHT22 (`datasheet `__, `Adafruit `__), +- AMS2301/AM2302 (`datasheet `__, `Adafruit `__), +- AM2120 (`datasheet `__), +- RHT03 (`datasheet `__, `SparkFun `__) and - SI7021 (one wire Sonoff version) (`datasheet `__, `SparkFun `__) sensors with ESPHome. @@ -59,20 +60,20 @@ 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`` + one of ``AUTO_DETECT``, ``DHT11``, ``DHT22``, ``DHT22_TYPE2``, ``AM2302``, ``RHT03``, ``SI7021``, ``AM2120`` and helps with some connection issues. Defaults to ``AUTO_DETECT``. Auto detection doesn't work for the SI7021 chip. - **update_interval** (*Optional*, :ref:`config-time`): The interval to check the sensor. Defaults to ``60s``. .. note:: - The default ``accuracy_decimals`` value of the *humidity* levels is ``0``, as the DHT11 for which this was - originally written does not have a higher resolution. All other DHT sensors have a higher resolution, it's worth + The default ``accuracy_decimals`` value of the *humidity* levels is ``0``, as the DHT11 for which this was + originally written does not have a higher resolution. All other DHT sensors have a higher resolution, it's worth to configure them with ``accuracy_decimals: 1``. - + 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.