AHT10 Temperature+Humidity Sensor ================================= .. seo:: :description: Instructions for setting up AHT10 temperature and humidity sensors :image: aht10.jpg :keywords: aht10 aht20 dht20 aht30 The ``aht10`` Temperature+Humidity sensor allows you to use your AHT10 (`datasheet `__), AHT20 (`datasheet `__) or AHT30 (`datasheet `__) :ref:`I²C `-based sensor with ESPHome. The DHT20 (`datasheet `__) sensor has the packaging of the :doc:`dht` series, but has the AHT20 inside and is speaking :ref:`I²C ` as well. .. figure:: images/aht10-full.jpg :align: center :width: 50.0% AHT10 Temperature & Humidity Sensor. .. figure:: images/temperature-humidity.png :align: center :width: 80.0% .. note:: When configured for humidity, the log *'Components should block for at most 20-30ms in loop().'* will be generated in verbose mode. This is due to technical specs of the sensor and can not be avoided. .. code-block:: yaml # Example configuration entry sensor: - platform: aht10 variant: AHT10 temperature: name: "Living Room Temperature" humidity: name: "Living Room Humidity" update_interval: 60s Configuration variables: ------------------------ - **variant** (*Optional*, enum): Set the variant of the device in use. Defaults to ``AHT10``. - ``AHT10`` - For AHT10 devices. - ``AHT20`` - For AHT20 and AHT30 devices. - **temperature** (**Required**): The information for the temperature sensor. - **name** (**Required**, string): The name for the temperature sensor. - **id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in lambdas. - All other options from :ref:`Sensor `. - **humidity** (**Required**): The information for the humidity sensor - **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 `. - **update_interval** (*Optional*, :ref:`config-time`): The interval to check the sensor. Defaults to ``60s``. See Also -------- - :ref:`sensor-filters` - :doc:`absolute_humidity` - :apiref:`aht10/aht10.h` - `AHT10 Library `__ by `Thinary Electronic `__ - `Unofficial Translated AHT10 Datasheet (en) `__ - :ghedit:`Edit`