mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	PMSX003: Add support for specifying the update interval and spinning down (#3053)
Co-authored-by: Otto Winter <otto@otto-winter.com>
This commit is contained in:
		| @@ -266,6 +266,10 @@ uart: | ||||
|     stop_bits: 2 | ||||
|     # Specifically added for testing debug with no options at all. | ||||
|     debug: | ||||
|   - id: uart8 | ||||
|     tx_pin: GPIO4 | ||||
|     rx_pin: GPIO5 | ||||
|     baud_rate: 9600 | ||||
|  | ||||
| modbus: | ||||
|   uart_id: uart1 | ||||
| @@ -559,7 +563,7 @@ sensor: | ||||
|       name: 'AQI' | ||||
|       calculation_type: 'AQI' | ||||
|   - platform: pmsx003 | ||||
|     uart_id: uart2 | ||||
|     uart_id: uart8 | ||||
|     type: PMSX003 | ||||
|     pm_1_0: | ||||
|       name: 'PM 1.0 Concentration' | ||||
| @@ -585,8 +589,9 @@ sensor: | ||||
|       name: 'Particulate Count >5.0um' | ||||
|     pm_10_0um: | ||||
|       name: 'Particulate Count >10.0um' | ||||
|     update_interval: 30s | ||||
|   - platform: pmsx003 | ||||
|     uart_id: uart2 | ||||
|     uart_id: uart5 | ||||
|     type: PMS5003T | ||||
|     pm_2_5: | ||||
|       name: 'PM 2.5 Concentration' | ||||
| @@ -595,7 +600,7 @@ sensor: | ||||
|     humidity: | ||||
|       name: 'PMS Humidity' | ||||
|   - platform: pmsx003 | ||||
|     uart_id: uart2 | ||||
|     uart_id: uart6 | ||||
|     type: PMS5003ST | ||||
|     pm_1_0: | ||||
|       name: 'PM 1.0 Concentration' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user