Serial Particulate Matter
Particulate matter sensors measure the amount of very small particles in the air.
Cheap LED based sensors usually use a GPIO interface that is hard to attach to computers. However, there are a lot of laser LED based sensors on the market that use a serial interface and can be connected to your Home Assistant system easily with a USB to serial converter.
Supported Sensors
At this time, the following sensors are supported:
- oneair,s3
- novafitness,sds021
- novafitness,sds011
- plantower,pms1003
- plantower,pms5003
- plantower,pms7003
- plantower,pms2003
- plantower,pms3003
Configuration
To use your PM sensor in your installation, add the following to your configuration.yaml
configuration.yaml 文件是 Home Assistant 的主要配置文件。它列出了要加载的集成及其特定配置。在某些情况下,需要直接在 configuration.yaml 文件中手动编辑配置。大多数集成可以在 UI 中配置。 [Learn more] file:
sensor:
- platform: serial_pm
serial_device: /dev/tty.SLAB_USBtoUART
brand: oneair,s3
Named Sensor Configuration Example
sensor:
- platform: serial_pm
serial_device: /dev/tty.SLAB_USBtoUART
name: Nova
brand: novafitness,sds011