pm2_5 (concentration of small particles)
Data type: INTEGER(0, 500)
Usage method: stores the device state without changing it.
Purpose: shows the current level of the particles PM2.5 in µg/m3 (micrograms per cubic meter). It takes a value from the range of 0-500 µg/m3 at an interval of 1 µg/m3.
When describing the device model, you can shorten the range of values accepted by the function or change their interval. For more information, see Allowed values of functions.
Devices with this function
sensor_air — air quality sensor.
Examples of voice commands
— Салют, какое качество воздуха в комнате? (Salute, what is the air quality in the room?)
— Салют, проверь концентрацию мелкой пыли в воздухе. (Salute, measure the level of small particles in the air.)
Function description for a device model
The function must be added to the model descriptions of all devices that support it.
"features": [
"pm2_5",
// ...
]
Function state description example
The example describes a sensor reporting that the PM2.5 level is 160 µg/m3.
{
"states": [
{
"key": "pm2_5",
"value": {
"type": "INTEGER",
"integer_value": "160"
}
}
]
}