mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 01:06:52 +00:00
Remove deprecated DHT Sensor integration (#21814)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
parent
c8a5da8478
commit
0fd8dc0bcc
@ -114,7 +114,6 @@ source/_integrations/devolo_home_control.markdown @2Fake @Shutgun
|
|||||||
source/_integrations/devolo_home_network.markdown @2Fake @Shutgun
|
source/_integrations/devolo_home_network.markdown @2Fake @Shutgun
|
||||||
source/_integrations/dexcom.markdown @gagebenne
|
source/_integrations/dexcom.markdown @gagebenne
|
||||||
source/_integrations/dhcp.markdown @bdraco
|
source/_integrations/dhcp.markdown @bdraco
|
||||||
source/_integrations/dht.markdown @thegardenmonkey
|
|
||||||
source/_integrations/digital_ocean.markdown @fabaff
|
source/_integrations/digital_ocean.markdown @fabaff
|
||||||
source/_integrations/discogs.markdown @thibmaek
|
source/_integrations/discogs.markdown @thibmaek
|
||||||
source/_integrations/dlna_dmr.markdown @StevenLooman @chishm
|
source/_integrations/dlna_dmr.markdown @StevenLooman @chishm
|
||||||
|
@ -1,100 +0,0 @@
|
|||||||
---
|
|
||||||
title: DHT Sensor
|
|
||||||
description: Instructions on how to integrate DHTxx sensors within Home Assistant.
|
|
||||||
ha_category:
|
|
||||||
- DIY
|
|
||||||
ha_release: 0.7
|
|
||||||
logo: dht.png
|
|
||||||
ha_iot_class: Local Polling
|
|
||||||
ha_domain: dht
|
|
||||||
ha_platforms:
|
|
||||||
- sensor
|
|
||||||
ha_codeowners:
|
|
||||||
- '@thegardenmonkey'
|
|
||||||
---
|
|
||||||
|
|
||||||
<div class='note warning'>
|
|
||||||
|
|
||||||
This integration is deprecated and will be removed in Home Assistant Core 2022.4.
|
|
||||||
|
|
||||||
For more information see: [Architectural Decision Record 0019](https://github.com/home-assistant/architecture/blob/master/adr/0019-GPIO.md).
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
The `dht` sensor platform allows you to get the current temperature and humidity from a DHT11, DHT22 or AM2302 device.
|
|
||||||
|
|
||||||
## Setup
|
|
||||||
|
|
||||||
To use your DHTxx sensor in your installation, you must first install the `libgpiod2` library.
|
|
||||||
|
|
||||||
```shell
|
|
||||||
sudo apt install libgpiod2
|
|
||||||
```
|
|
||||||
|
|
||||||
## Configuration
|
|
||||||
|
|
||||||
Add the following to your `configuration.yaml` file:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
# Example configuration.yaml entry
|
|
||||||
sensor:
|
|
||||||
platform: dht
|
|
||||||
sensor: DHT22
|
|
||||||
pin: 23
|
|
||||||
monitored_conditions:
|
|
||||||
- temperature
|
|
||||||
- humidity
|
|
||||||
```
|
|
||||||
|
|
||||||
{% configuration %}
|
|
||||||
sensor:
|
|
||||||
description: The sensor type, supported devices are DHT11, DHT22 and AM2302.
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
pin:
|
|
||||||
description: The pin the sensor is connected to.
|
|
||||||
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.
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
An example for a Raspberry Pi 3 with a DHT22 sensor connected to GPIO4 (pin 7):
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
sensor:
|
|
||||||
- platform: dht
|
|
||||||
sensor: DHT22
|
|
||||||
pin: 4
|
|
||||||
temperature_offset: 2.1
|
|
||||||
humidity_offset: -3.2
|
|
||||||
monitored_conditions:
|
|
||||||
- temperature
|
|
||||||
- humidity
|
|
||||||
```
|
|
@ -656,7 +656,6 @@
|
|||||||
/components/sensor.deconz /integrations/deconz#sensor
|
/components/sensor.deconz /integrations/deconz#sensor
|
||||||
/components/sensor.deluge /integrations/deluge#sensor
|
/components/sensor.deluge /integrations/deluge#sensor
|
||||||
/components/sensor.deutsche_bahn /integrations/deutsche_bahn
|
/components/sensor.deutsche_bahn /integrations/deutsche_bahn
|
||||||
/components/sensor.dht /integrations/dht
|
|
||||||
/components/sensor.discogs /integrations/discogs
|
/components/sensor.discogs /integrations/discogs
|
||||||
/components/sensor.dnsip /integrations/dnsip
|
/components/sensor.dnsip /integrations/dnsip
|
||||||
/components/sensor.dovado /integrations/dovado#sensor
|
/components/sensor.dovado /integrations/dovado#sensor
|
||||||
@ -1219,7 +1218,6 @@
|
|||||||
/components/device_tracker.mqtt /integrations/device_tracker.mqtt
|
/components/device_tracker.mqtt /integrations/device_tracker.mqtt
|
||||||
/components/device_tracker.mysensors /integrations/device_tracker.mysensors
|
/components/device_tracker.mysensors /integrations/device_tracker.mysensors
|
||||||
/components/device_tracker.xiaomi /integrations/device_tracker.xiaomi
|
/components/device_tracker.xiaomi /integrations/device_tracker.xiaomi
|
||||||
/components/dht /integrations/dht
|
|
||||||
/components/dialogflow /integrations/dialogflow
|
/components/dialogflow /integrations/dialogflow
|
||||||
/components/digital_ocean /integrations/digital_ocean
|
/components/digital_ocean /integrations/digital_ocean
|
||||||
/components/digitalloggers /integrations/digitalloggers
|
/components/digitalloggers /integrations/digitalloggers
|
||||||
@ -2366,6 +2364,9 @@
|
|||||||
/components/light.piglow /more-info/removed-integration 301
|
/components/light.piglow /more-info/removed-integration 301
|
||||||
/components/piglow /more-info/removed-integration 301
|
/components/piglow /more-info/removed-integration 301
|
||||||
/integrations/piglow /more-info/removed-integration 301
|
/integrations/piglow /more-info/removed-integration 301
|
||||||
|
/components/sensor.dht /more-info/removed-integration 301
|
||||||
|
/integrations/dht /more-info/removed-integration 301
|
||||||
|
/components/dht /more-info/removed-integration 301
|
||||||
/components/light.sensehat /more-info/removed-integration 301
|
/components/light.sensehat /more-info/removed-integration 301
|
||||||
/components/sensehat /more-info/removed-integration 301
|
/components/sensehat /more-info/removed-integration 301
|
||||||
/components/sensor.sensehat /more-info/removed-integration 301
|
/components/sensor.sensehat /more-info/removed-integration 301
|
||||||
|
Loading…
x
Reference in New Issue
Block a user