Update sensor.dht configuration variables (#6681)

This commit is contained in:
Emeric 2018-10-11 17:37:59 +02:00 committed by Franck Nijhof
parent 11c90acdb9
commit fd0f53a2b9

View File

@ -31,14 +31,40 @@ sensor:
- humidity - humidity
``` ```
Configuration variables: {% configuration %}
sensor:
- **sensor** (*Required*): The sensor type, supported devices are DHT11, DHT22, and AM2302. description: The sensor type, supported devices are DHT11, DHT22, and AM2302.
- **pin** (*Required*): The pin the sensor is connected to. required: true
- **name** (*Optional*): The name of the sensor. type: string
- **monitored_conditions** array (*Required*): Conditions to monitor. Available conditions are only *temperature* and *humidity*. pin:
- **temperature_offset** (*Optional*): Add or subtract a value from the temperature. description: The pin the sensor is connected to.
- **humidity_offset** (*Optional*): Add or subtract a value from the humidity. required: true
type: integer
name:
description: The name of the sensor.
required: false
default: DHT Sensor
type: string
monitored_conditions:
description: Conditions to monitor. Available conditions are only *temperature* and *humidity*.
required: true
type: list
keys:
temperature:
description: Temperature at the sensor's location.
humidity:
description: Humidity level at the sensor's location.
temperature_offset:
description: Add or subtract a value from the temperature.
required: false
default: 0
type: [integer, float]
humidity_offset:
description: Add or subtract a value from the humidity.
required: false
default: 0
type: [integer, float]
{% endconfiguration %}
The name of the pin to which the sensor is connected has different names on different platforms. 'P8_11' for Beaglebone, '23' for Raspberry Pi. The name of the pin to which the sensor is connected has different names on different platforms. 'P8_11' for Beaglebone, '23' for Raspberry Pi.