Merge PR #426: Add air quality interfaces
This commit is contained in:
commit
d73cc79adc
24
libnymea/interfaces/airquality.json
Normal file
24
libnymea/interfaces/airquality.json
Normal 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
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
24
libnymea/interfaces/indoorairquality.json
Normal file
24
libnymea/interfaces/indoorairquality.json
Normal 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
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@ -80,5 +80,7 @@
|
|||||||
<file>update.json</file>
|
<file>update.json</file>
|
||||||
<file>watersensor.json</file>
|
<file>watersensor.json</file>
|
||||||
<file>cleaningrobot.json</file>
|
<file>cleaningrobot.json</file>
|
||||||
|
<file>airquality.json</file>
|
||||||
|
<file>indoorairquality.json</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|||||||
Reference in New Issue
Block a user