Merge PR #378: Rework heating/cooling/thermostat interfaces

This commit is contained in:
Jenkins nymea 2021-02-25 11:26:59 +01:00
commit aa4a7c03b3
5 changed files with 55 additions and 26 deletions

View File

@ -0,0 +1,15 @@
{
"description": "The cooling interface defines basic cooling appliances.",
"extends": "power",
"states": [
{
"name": "percentage",
"type": "int",
"min": 0,
"max": 100,
"unit": "Percentage",
"writable": true,
"optional": true
}
]
}

View File

@ -1,14 +0,0 @@
{
"description": "The extendedheating interface defines heating appliances which can also be controlled with a percentage range. When implementing such a device class, do not set power to true when the percentage is set.",
"extends": "heating",
"states": [
{
"name": "percentage",
"type": "int",
"min": 0,
"max": 100,
"unit": "Percentage",
"writable": true
}
]
}

View File

@ -1,4 +1,15 @@
{ {
"description": "The heating interface defines basic heating appliances.", "description": "The heating interface defines basic heating appliances.",
"extends": "power" "extends": "power",
"states": [
{
"name": "percentage",
"type": "int",
"min": 0,
"max": 100,
"unit": "Percentage",
"writable": true,
"optional": true
}
]
} }

View File

@ -1,6 +1,7 @@
<RCC> <RCC>
<qresource prefix="/interfaces"> <qresource prefix="/interfaces">
<file>alert.json</file> <file>alert.json</file>
<file>cooling.json</file>
<file>light.json</file> <file>light.json</file>
<file>dimmablelight.json</file> <file>dimmablelight.json</file>
<file>account.json</file> <file>account.json</file>
@ -65,7 +66,6 @@
<file>fingerprintreader.json</file> <file>fingerprintreader.json</file>
<file>useraccesscontrol.json</file> <file>useraccesscontrol.json</file>
<file>heating.json</file> <file>heating.json</file>
<file>extendedheating.json</file>
<file>evcharger.json</file> <file>evcharger.json</file>
<file>extendedevcharger.json</file> <file>extendedevcharger.json</file>
<file>noisesensor.json</file> <file>noisesensor.json</file>

View File

@ -1,12 +1,29 @@
{ {
"description": "The thermostat interface describes devices which have a target temperature value and regulate themselves to match that target temperature. Often combined with the power and temperaturesensor interfaces.", "description": "The thermostat interface describes devices which have a target temperature value and regulate themselves to match that target temperature.",
"states": [ "states": [
{ {
"name": "targetTemperature", "name": "targetTemperature",
"type": "double", "type": "double",
"unit": "DegreeCelsius", "unit": "DegreeCelsius",
"minValue": "any", "minValue": "any",
"maxValue": "any" "maxValue": "any",
} "writable": true
] },
{
"name": "temperature",
"type": "double",
"unit": "DegreeCelsius",
"optional": true
},
{
"name": "heatingOn",
"type": "bool",
"optional": true
},
{
"name": "coolingOn",
"type": "bool",
"optional": true
}
]
} }