Dallas Temperature Component

The dallas component allows you to use your DS18b20 (datasheet) and similar One-Wire temperature sensors.

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 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.

# Example configuration entry
dallas:
  - pin: 23

# Individual sensors
sensor:
  - platform: dallas
    address: 0x1c0000031edd2a28
    name: "Livingroom Temperature"

Configuration variables:

  • pin (Required, number): The pin the sensor bus is connected to.
  • update_interval (Optional, Time): The interval that the sensors should be checked. Defaults to 15 seconds. See update_interval gotchas.
  • id (Optional, ID): Manually specify the ID used for code generation.