2018-10-20 12:50:21 +02:00
PMSX003 Particulate Matter Sensor
=================================
2018-11-14 22:12:27 +01:00
.. seo ::
:description: Instructions for setting up PMSX003 Particulate matter sensors
2021-11-16 03:19:33 +01:00
:image: pmsx003.svg
2018-11-14 22:12:27 +01:00
2018-10-20 12:50:21 +02:00
The `` pmsx003 `` sensor platform allows you to use your PMS5003, PMS7003, ... particulate matter
(`datasheet <http://www.aqmd.gov/docs/default-source/aq-spec/resources-page/plantower-pms5003-manual_v2-3.pdf> `__ )
2019-02-16 23:25:23 +01:00
sensors with ESPHome.
2018-10-20 12:50:21 +02:00
As the communication with the PMSX003 is done using UART, you need
to have an :ref: `UART bus <uart>` in your configuration with the `` rx_pin `` connected to the SEND/TX pin
(may also be called the RX pin, depending on the model) of the PMS. Additionally, you need to set the baud rate to 9600.
This platform supports three sensor types, which you need to specify using the `` type: `` configuration
value:
- `` PMSX003 `` for generic PMS5003, PMS7003, ...; these sensors support `` pm_1_0 `` , `` pm_2_5 `` and `` pm_10_0 `` output.
2022-12-23 13:45:46 +01:00
- `` PMS5003S `` for PMS5003S. These support `` pm_1_0 `` , `` pm_2_5 `` and `` pm_10_0 `` and `` formaldehyde `` .
2023-03-15 23:49:07 +01:00
- `` PMS5003T `` for PMS5003T. These support `` pm_1_0 `` , `` pm_2_5 `` and `` pm_10_0 `` , `` temperature `` and `` humidity `` .
2018-10-20 12:50:21 +02:00
- `` PMS5003ST `` for PMS5003ST. These support `` pm_2_5 `` , `` temperature `` , `` humidity `` and `` formaldehyde `` .
2018-11-19 18:32:16 +01:00
.. code-block :: yaml
2018-10-20 12:50:21 +02:00
# Example configuration entry
uart:
rx_pin: GPIO23
2022-05-10 11:35:49 +02:00
tx_pin: GPIO22
2018-12-02 12:45:43 +01:00
baud_rate: 9600
2018-10-20 12:50:21 +02:00
sensor:
- platform: pmsx003
2018-12-02 12:45:43 +01:00
type: PMSX003
2018-10-20 12:50:21 +02:00
pm_1_0:
name: "Particulate Matter <1.0µm Concentration"
pm_2_5:
name: "Particulate Matter <2.5µm Concentration"
pm_10_0:
name: "Particulate Matter <10.0µm Concentration"
2022-05-10 11:35:49 +02:00
update_interval: 60000ms
2018-10-20 12:50:21 +02:00
Configuration variables:
------------------------
2021-08-11 10:23:26 +02:00
- **pm_1_0_std** (*Optional* ): Use the concentration of particulates of size less than 1.0µm in µg per cubic meter at standard particle
2019-02-17 12:28:17 +01:00
All options from :ref: `Sensor <config-sensor>` .
2021-08-11 10:23:26 +02:00
- **pm_2_5_std** (*Optional* ): Use the concentration of particulates of size less than 2.5µm in µg per cubic meter at standard particle
2019-02-17 12:28:17 +01:00
All options from :ref: `Sensor <config-sensor>` .
2021-08-11 10:23:26 +02:00
- **pm_10_0_std** (*Optional* ): Use the concentration of particulates of size less than 10.0µm in µg per cubic meter at standard particle
All options from :ref: `Sensor <config-sensor>` .
- **pm_1_0** (*Optional* ): Use the concentration of particulates of size less than 1.0µm in µg per cubic meter under atmospheric environment
All options from :ref: `Sensor <config-sensor>` .
- **pm_2_5** (*Optional* ): Use the concentration of particulates of size less than 2.5µm in µg per cubic meter under atmospheric environment
All options from :ref: `Sensor <config-sensor>` .
- **pm_10_0** (*Optional* ): Use the concentration of particulates of size less than 10.0µm in µg per cubic meter under atmospheric environment
All options from :ref: `Sensor <config-sensor>` .
- **pm_0_3um** (*Optional* ): Use the number of particles with diameter beyond 0.3um in 0.1L of air
All options from :ref: `Sensor <config-sensor>` .
- **pm_0_5um** (*Optional* ): Use the number of particles with diameter beyond 0.5um in 0.1L of air
All options from :ref: `Sensor <config-sensor>` .
- **pm_1_0um** (*Optional* ): Use the number of particles with diameter beyond 1.0um in 0.1L of air
All options from :ref: `Sensor <config-sensor>` .
- **pm_2_5um** (*Optional* ): Use the number of particles with diameter beyond 2.5um in 0.1L of air
All options from :ref: `Sensor <config-sensor>` .
- **pm_5_0um** (*Optional* ): Use the number of particles with diameter beyond 5.0um in 0.1L of air
All options from :ref: `Sensor <config-sensor>` .
- **pm_10_0um** (*Optional* ): Use the number of particles with diameter beyond 10.0um in 0.1L of air
2019-02-17 12:28:17 +01:00
All options from :ref: `Sensor <config-sensor>` .
2022-12-23 13:45:46 +01:00
- **temperature** (*Optional* ): Use the temperature value in °C for the `` PMS5003T `` and `` PMS5003ST `` type sensors.
2019-02-17 12:28:17 +01:00
All options from :ref: `Sensor <config-sensor>` .
2022-12-23 13:45:46 +01:00
- **humidity** (*Optional* ): Use the humidity value in % for the `` PMS5003T `` and `` PMS5003ST `` type sensors.
2019-02-17 12:28:17 +01:00
All options from :ref: `Sensor <config-sensor>` .
2022-12-23 13:45:46 +01:00
- **formaldehyde** (*Optional* ): Use the formaldehyde (HCHO) concentration in µg per cubic meter for the `` PMS5003S `` and `` PMS5003ST `` type sensors.
2019-02-17 12:28:17 +01:00
All options from :ref: `Sensor <config-sensor>` .
2022-05-10 11:35:49 +02:00
- **update_interval** (*Optional* ): Amount of time to wait between generating measurements. If this is longer than 30
seconds, and if `` tx_pin `` is set in the UART configuration, the fan will be spun down between measurements. Default to `` 0s `` (forward data as it's coming in from the sensor).
2018-10-20 12:50:21 +02:00
- **uart_id** (*Optional* , :ref: `config-id` ): Manually specify the ID of the :ref: `UART Component <uart>` if you want
to use multiple UART buses.
See Also
--------
2019-03-06 12:40:06 +01:00
- :doc: `/components/sensor/sds011`
2018-10-20 12:50:21 +02:00
- :ref: `sensor-filters`
2019-05-12 22:44:59 +02:00
- :apiref: `pmsx003/pmsx003.h`
2019-02-07 13:54:45 +01:00
- :ghedit: `Edit`