Skip to content

Commit 55660db

Browse files
gitmoppballoob
authored andcommitted
Update for DHT with temperature_offset and humidity_offset (home-assistant#2899)
* Update for DHT with temperature_offset and humidity_offset Updated documentation for PR home-assistant/core#8234 * Fixed typo Fixed typo for valure to value * Minor changes
1 parent cd2cb9b commit 55660db

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

source/_components/sensor.dht.markdown

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,27 @@ sensor:
3131
3232
Configuration variables:
3333
34-
- **sensor** (*Required*): The sensor type, supported devices are DHT11, DHT22, and AM2302
34+
- **sensor** (*Required*): The sensor type, supported devices are DHT11, DHT22, and AM2302.
3535
- **pin** (*Required*): The pin the sensor is connected to.
36-
- **name** (*Optional*): The name of the sensor
37-
- **monitored_conditions** array (*Required*): Conditions to monitor. Available conditions are only *temperature* and *humidity*.
36+
- **name** (*Optional*): The name of the sensor.
37+
- **monitored_conditions** array (*Required*): Conditions to monitor. Available conditions are only *temperature* and *humidity*.
38+
- **temperature_offset** (*Optional*): Add or subtract a value from the temperature.
39+
- **humidity_offset** (*Optional*): Add or subtract a value from the humidity.
3840
3941
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.
4042
43+
### {% linkable_title Example %}
44+
45+
An example for a Raspberry Pi 3 with a DHT22 sensor connected to GPIO4 (pin 7):
46+
47+
```yaml
48+
sensor:
49+
- platform: dht
50+
sensor: DHT22
51+
pin: 4
52+
temperature_offset: 2.1
53+
humidity_offset: -3.2
54+
monitored_conditions:
55+
- temperature
56+
- humidity
57+
```

0 commit comments

Comments
 (0)