Add water level sensor interface

pull/469/head
Michael Zanetti 2021-10-12 21:38:09 +02:00
parent 432ca3f883
commit ac0ade64c5
5 changed files with 18 additions and 3 deletions

View File

@ -34,6 +34,7 @@
<file>closablesensor.json</file>
<file>presencesensor.json</file>
<file>watersensor.json</file>
<file>waterlevelsensor.json</file>
<file>temperaturesensor.json</file>
<file>humiditysensor.json</file>
<file>pressuresensor.json</file>

View File

@ -0,0 +1,12 @@
{
"description": "Sensors that can measure water fill levels.",
"extends": "sensor",
"states": [
{
"name": "waterLevel",
"type": "double",
"unit": "Liter",
"logged": true
}
]
}

View File

@ -142,6 +142,7 @@ public:
UnitNewtonMeter,
UnitRpm,
UnitMilligramPerLiter,
UnitLiter,
};
Q_ENUM(Unit)

View File

@ -5,7 +5,7 @@ NYMEA_VERSION_STRING=$$system('dpkg-parsechangelog | sed -n -e "s/^Version: //p"
# define protocol versions
JSON_PROTOCOL_VERSION_MAJOR=5
JSON_PROTOCOL_VERSION_MINOR=7
JSON_PROTOCOL_VERSION_MINOR=8
JSON_PROTOCOL_VERSION="$${JSON_PROTOCOL_VERSION_MAJOR}.$${JSON_PROTOCOL_VERSION_MINOR}"
LIBNYMEA_API_VERSION_MAJOR=7
LIBNYMEA_API_VERSION_MINOR=2

View File

@ -1,4 +1,4 @@
5.7
5.8
{
"enums": {
"BasicType": [
@ -377,7 +377,8 @@
"UnitNewton",
"UnitNewtonMeter",
"UnitRpm",
"UnitMilligramPerLiter"
"UnitMilligramPerLiter",
"UnitLiter"
],
"UserError": [
"UserErrorNoError",