Add I/O connection information to dallas (#1100)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
This commit is contained in:
frspp 2021-11-13 16:49:02 +02:00 committed by GitHub
parent 4bf8d7f7d0
commit 2f35aed205
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,8 +20,9 @@ and similar 1-Wire temperature sensors.
To use your :ref:`dallas sensor <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 1KΩ will, if you don't have
massively long wires, work fine in most cases) between ``3.3V`` and the data pin.
about 4.7KΩ. For this, connect a resistor of *about* 4.7KΩ between ``3.3V``
and the data pin. Values ± 1KΩ will, in most cases, work fine as well,
if you don't have massively long wires.
.. code-block:: yaml
@ -38,7 +39,7 @@ massively long wires, work fine in most cases) between ``3.3V`` and the data pin
Configuration variables:
************************
- **pin** (**Required**, number): The pin the sensor bus is connected to.
- **pin** (**Required**, number): The pin the sensor bus is connected to. Please note that 1-wire is a bi-directional bus so it requires both input and output from the pin.
- **update_interval** (*Optional*, :ref:`config-time`): The interval that the sensors should be checked.
Defaults to 60 seconds.
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation.