2018-05-13 11:37:02 +02:00
Dallas Temperature Component
============================
2018-11-14 22:12:27 +01:00
.. seo ::
:description: Instructions for setting up dallas temperature sensor hubs that can expose many temperature sensors on a single pin using the one wire protocol.
:image: dallas.jpg
:keywords: Dallas, ds18b20, onewire
2018-05-13 11:37:02 +02:00
The `` dallas `` component allows you to use your
`DS18b20 <https://www.adafruit.com/product/374> `__
(`datasheet <https://datasheets.maximintegrated.com/en/ds/DS18B20.pdf> `__ )
2018-06-01 18:10:00 +02:00
and similar One-Wire temperature sensors.
2018-05-13 11:37:02 +02:00
To use your dallas sensor, first define a dallas “hub” with a pin and
id, which you will later use to create the sensors. The 1-Wire bus the
sensors are connected to should have an external pullup resistor of
2018-06-03 22:10:14 +02:00
about 4.7KΩ. For this, connect a resistor of *about* 4.7KΩ (values around that like 1Ω will, if you don't have
massively long wires, work fine in most cases) between `` 3.3V `` and the data pin.
2018-05-13 11:37:02 +02:00
2018-11-19 18:32:16 +01:00
.. code-block :: yaml
2018-05-13 11:37:02 +02:00
# Example configuration entry
dallas:
2018-06-01 18:10:00 +02:00
- pin: 23
2018-05-13 11:37:02 +02:00
# Individual sensors
sensor:
- platform: dallas
address: 0x1c0000031edd2a28
name: "Livingroom Temperature"
Configuration variables:
2018-08-24 22:44:01 +02:00
------------------------
2018-05-13 11:37:02 +02:00
2018-06-01 18:10:00 +02:00
- **pin** (**Required** , number): The pin the sensor bus is connected to.
- **update_interval** (*Optional* , :ref: `config-time` ): The interval that the sensors should be checked.
2019-01-19 10:05:11 +01:00
Defaults to 60 seconds.
2018-06-01 18:10:00 +02:00
- **id** (*Optional* , :ref: `config-id` ): Manually specify the ID used for code generation.
See Also
2018-08-24 22:44:01 +02:00
--------
2018-06-01 18:10:00 +02:00
- :doc: `sensor/dallas`
2018-08-24 22:44:01 +02:00
- `Arduino DallasTemperature library <https://github.com/milesburton/Arduino-Temperature-Control-Library> `__ by `Miles Burton <https://github.com/milesburton> `__
2019-02-07 13:54:45 +01:00
- :apiref: `sensor/dallas_component.h`
- :ghedit: `Edit`
2018-10-12 16:33:22 +02:00
.. disqus ::