1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

Add absolute humidity component (#4519)

* Import Absolute Humidity component

https://PigLab.ReaperLegion.net/home-automation/hass/esphome/custom-components/absolute-humidity

* Fix terminology, add some docstrings

* Switch from double to float

https://github.com/esphome/esphome/pull/4519#pullrequestreview-1327615169
The additional precision doesn't matter in practice.

* Address code review suggestions

* Lint code
This commit is contained in:
DAVe3283
2023-03-07 13:47:25 -07:00
committed by GitHub
parent 1b328da265
commit b29cc58144
7 changed files with 323 additions and 0 deletions

View File

@@ -1229,6 +1229,10 @@ sensor:
model: 1005
update_interval: 60s
i2c_id: i2c_bus
- platform: absolute_humidity
name: DHT Absolute Humidity
temperature: dht_temperature
humidity: dht_humidity
esp32_touch:
setup_mode: false