From c1fe23ee3cc06f03c9c92a2f158f4664490f4c09 Mon Sep 17 00:00:00 2001 From: Klaas Schoute Date: Sun, 28 Oct 2018 12:51:47 +0100 Subject: [PATCH] Update Htu21d sensor component configuration (#7133) --- source/_components/sensor.htu21d.markdown | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/source/_components/sensor.htu21d.markdown b/source/_components/sensor.htu21d.markdown index fbb513aef4a..687bb02df60 100644 --- a/source/_components/sensor.htu21d.markdown +++ b/source/_components/sensor.htu21d.markdown @@ -13,7 +13,6 @@ ha_release: 0.48 ha_iot_class: "Local Push" --- - The `htu21d` sensor platform allows you to read the temperature and humidity from a [HTU21D sensor](http://www.datasheetspdf.com/PDF/HTU21D/779951/1) connected via [I2c](https://en.wikipedia.org/wiki/I²C) bus (SDA, SCL pins). Tested devices: @@ -30,11 +29,18 @@ sensor: - platform: htu21d ``` -Configuration variables: - -- **name** (*Optional*): The name of the sensor -- **i2c_bus** (*Optional*): I2c bus where the sensor is. Defaults to 1, for Raspberry Pi 2 and 3. - +{% configuration %} +name: + description: The name of the sensor. + required: false + default: i2c_bus + type: string +i2c_bus: + description: I2c bus where the sensor is. + required: false + default: 1 (for Raspberry Pi 2 and 3) + type: integer +{% endconfiguration %} ## {% linkable_title Customizing the sensor data %}