esphome-docs/esphomeyaml/components/sensor/htu21d.rst

62 lines
2.2 KiB
ReStructuredText
Raw Normal View History

2018-05-13 11:37:02 +02:00
HTU21D Temperature+Humidity Sensor
==================================
The HTU21D Temperature+Humidity sensor allows you to use your HTU21D
(`datasheet <http://www.te.com/commerce/DocumentDelivery/DDEController?Action=showdoc&DocId=Data+Sheet%7FHPC199_6%7FA6%7Fpdf%7FEnglish%7FENG_DS_HPC199_6_A6.pdf%7FCAT-HSC0004>`__,
`adafruit <https://www.adafruit.com/product/1899>`__) sensors with
2018-06-01 18:10:00 +02:00
esphomelib. The :ref:`I²C Bus <i2c>` is
2018-05-13 11:37:02 +02:00
required to be set up in your configuration for this sensor to work.
2018-06-01 18:10:00 +02:00
.. figure:: images/htu21d-full.jpg
:align: center
:target: `Adafruit`_
:width: 50.0%
2018-05-13 11:37:02 +02:00
2018-06-01 18:10:00 +02:00
HTU21D Temperature & Humidity Sensor. Image by `Adafruit`_.
2018-05-13 11:37:02 +02:00
.. _Adafruit: https://learn.adafruit.com/adafruit-htu21d-f-temperature-humidity-sensor/overview
2018-06-01 18:10:00 +02:00
.. figure:: images/temperature-humidity.png
:align: center
:width: 80.0%
2018-05-13 11:37:02 +02:00
.. code:: yaml
# Example configuration entry
sensor:
- platform: htu21d
temperature:
name: "Living Room Temperature"
humidity:
name: "Living Room Humidity"
update_interval: 15s
Configuration variables:
~~~~~~~~~~~~~~~~~~~~~~~~
2018-06-01 18:10:00 +02:00
- **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 <config-sensor>` and :ref:`MQTT Component <config-mqtt-component>`.
- **humidity** (**Required**): The information for the humidity sensor.
2018-05-13 11:37:02 +02:00
2018-06-01 18:10:00 +02:00
- **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 <config-sensor>` and :ref:`MQTT Component <config-mqtt-component>`.
2018-05-13 11:37:02 +02:00
2018-06-01 18:10:00 +02:00
- **update_interval** (*Optional*, :ref:`config-time`): The interval to check the sensor. Defaults to ``15s``.
2018-06-01 18:44:15 +02:00
See :ref:`sensor-default_filter`.
2018-05-13 11:37:02 +02:00
2018-06-01 18:10:00 +02:00
See Also
^^^^^^^^
2018-05-13 11:37:02 +02:00
2018-06-01 18:10:00 +02:00
- :ref:`sensor-filters`
- :doc:`dht`
- :doc:`dht12`
- :doc:`hdc1080`
- :doc:`sht3xd`
- :doc:`API Reference </api/sensor/htu21d>`
2018-06-04 08:17:22 +02:00
- `Edit this page on GitHub <https://github.com/OttoWinter/esphomedocs/blob/current/esphomeyaml/components/sensor/htu21d.rst>`__