Add air quality interfaces

pull/426/head
Simon Stürz 2021-05-21 08:10:00 +02:00
parent be68d925be
commit 8067a3abfd
3 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,24 @@
{
"description": "Air quality sensors. Describes the current quality of the air. As air quality index the PM2.5 measurment (particles pollution level) will be used.",
"extends": "sensor",
"states": [
{
"name": "airQuality",
"type": "QString",
"logged": true,
"possibleValues": [
"Good",
"Moderate",
"Unhealthy for Sensitive Groups",
"Unhealthy",
"Very unhealthy",
"Hazardous"
]
},
{
"name": "airQualityIndex",
"type": "uint",
"logged": true
}
]
}

View File

@ -0,0 +1,24 @@
{
"description": "Indoor air quality sensors. Describes the current quality of the air in a room. As air quality index the Volatile organic compounds (VOC) measurment will be used.",
"extends": "sensor",
"states": [
{
"name": "indoorAirQuality",
"type": "QString",
"logged": true,
"possibleValues": [
"Excellent",
"Good",
"Moderate",
"Poor",
"Unhealthy"
]
},
{
"name": "voc",
"type": "uint",
"unit": "PartsPerMillion",
"logged": true
}
]
}

View File

@ -80,5 +80,7 @@
<file>update.json</file>
<file>watersensor.json</file>
<file>cleaningrobot.json</file>
<file>airquality.json</file>
<file>indoorairquality.json</file>
</qresource>
</RCC>