mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-09-28 04:17:47 +02:00
Make hut21d sensors optional (#3144)
This commit is contained in:
parent
240850a1fb
commit
b4a4662a36
@ -31,25 +31,18 @@ Example sensors:
|
|||||||
sensor:
|
sensor:
|
||||||
- platform: htu21d
|
- platform: htu21d
|
||||||
temperature:
|
temperature:
|
||||||
name: "Living Room Temperature"
|
name: "Temperature"
|
||||||
humidity:
|
humidity:
|
||||||
name: "Living Room Humidity"
|
name: "Humidity"
|
||||||
update_interval: 60s
|
|
||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
------------------------
|
------------------------
|
||||||
|
|
||||||
- **temperature** (**Required**): The information for the temperature sensor.
|
- **temperature** (*Optional*): The information for the temperature sensor.
|
||||||
|
All options from :ref:`Sensor <config-sensor>`.
|
||||||
|
|
||||||
- **name** (**Required**, string): The name for the temperature sensor.
|
- **humidity** (*Optional*): The information for the humidity sensor.
|
||||||
- **id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in lambdas.
|
All options from :ref:`Sensor <config-sensor>`.
|
||||||
- All other options from :ref:`Sensor <config-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 <config-sensor>`.
|
|
||||||
|
|
||||||
- **update_interval** (*Optional*, :ref:`config-time`): The interval to check the sensor. Defaults to ``60s``.
|
- **update_interval** (*Optional*, :ref:`config-time`): The interval to check the sensor. Defaults to ``60s``.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user