1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00

Support SDS011 component. (#467)

* Support SDS011 component.

* improve if condition

* Check update interval is multiple of minute

* do not allow update intervals longer than 30 min

* fix sensor schema name

* remove query_mode

* Warn if rx_only mode used together with update interval

* Allow update intervals below 1min

Messed that up before, as the docs say update intervals below 1min are allowed

* Use update interval in minutes

* use set_update_interval_min() to set update interval
This commit is contained in:
puuu
2019-03-06 20:39:52 +09:00
committed by Otto Winter
parent 289acade1e
commit 23df5d8af7
6 changed files with 105 additions and 2 deletions

View File

@@ -493,6 +493,13 @@ sensor:
payload: |-
root["key"] = id(the_sensor).state;
root["greeting"] = "Hello World";
- platform: sds011
pm_2_5:
name: "SDS011 PM2.5"
pm_10_0:
name: "SDS011 PM10.0"
update_interval: 5min
rx_only: false
esp32_touch: