mirror of https://github.com/nymea/nymea.git
Add water level sensor interface
parent
432ca3f883
commit
ac0ade64c5
|
|
@ -34,6 +34,7 @@
|
||||||
<file>closablesensor.json</file>
|
<file>closablesensor.json</file>
|
||||||
<file>presencesensor.json</file>
|
<file>presencesensor.json</file>
|
||||||
<file>watersensor.json</file>
|
<file>watersensor.json</file>
|
||||||
|
<file>waterlevelsensor.json</file>
|
||||||
<file>temperaturesensor.json</file>
|
<file>temperaturesensor.json</file>
|
||||||
<file>humiditysensor.json</file>
|
<file>humiditysensor.json</file>
|
||||||
<file>pressuresensor.json</file>
|
<file>pressuresensor.json</file>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"description": "Sensors that can measure water fill levels.",
|
||||||
|
"extends": "sensor",
|
||||||
|
"states": [
|
||||||
|
{
|
||||||
|
"name": "waterLevel",
|
||||||
|
"type": "double",
|
||||||
|
"unit": "Liter",
|
||||||
|
"logged": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -142,6 +142,7 @@ public:
|
||||||
UnitNewtonMeter,
|
UnitNewtonMeter,
|
||||||
UnitRpm,
|
UnitRpm,
|
||||||
UnitMilligramPerLiter,
|
UnitMilligramPerLiter,
|
||||||
|
UnitLiter,
|
||||||
};
|
};
|
||||||
Q_ENUM(Unit)
|
Q_ENUM(Unit)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ NYMEA_VERSION_STRING=$$system('dpkg-parsechangelog | sed -n -e "s/^Version: //p"
|
||||||
|
|
||||||
# define protocol versions
|
# define protocol versions
|
||||||
JSON_PROTOCOL_VERSION_MAJOR=5
|
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}"
|
JSON_PROTOCOL_VERSION="$${JSON_PROTOCOL_VERSION_MAJOR}.$${JSON_PROTOCOL_VERSION_MINOR}"
|
||||||
LIBNYMEA_API_VERSION_MAJOR=7
|
LIBNYMEA_API_VERSION_MAJOR=7
|
||||||
LIBNYMEA_API_VERSION_MINOR=2
|
LIBNYMEA_API_VERSION_MINOR=2
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
5.7
|
5.8
|
||||||
{
|
{
|
||||||
"enums": {
|
"enums": {
|
||||||
"BasicType": [
|
"BasicType": [
|
||||||
|
|
@ -377,7 +377,8 @@
|
||||||
"UnitNewton",
|
"UnitNewton",
|
||||||
"UnitNewtonMeter",
|
"UnitNewtonMeter",
|
||||||
"UnitRpm",
|
"UnitRpm",
|
||||||
"UnitMilligramPerLiter"
|
"UnitMilligramPerLiter",
|
||||||
|
"UnitLiter"
|
||||||
],
|
],
|
||||||
"UserError": [
|
"UserError": [
|
||||||
"UserErrorNoError",
|
"UserErrorNoError",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue