mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 06:33:51 +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:
		| @@ -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: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user