Merge PR #378: Rework heating/cooling/thermostat interfaces
This commit is contained in:
commit
aa4a7c03b3
15
libnymea/interfaces/cooling.json
Normal file
15
libnymea/interfaces/cooling.json
Normal 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
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -1,4 +1,15 @@
|
||||
{
|
||||
"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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
<RCC>
|
||||
<qresource prefix="/interfaces">
|
||||
<file>alert.json</file>
|
||||
<file>cooling.json</file>
|
||||
<file>light.json</file>
|
||||
<file>dimmablelight.json</file>
|
||||
<file>account.json</file>
|
||||
@ -65,7 +66,6 @@
|
||||
<file>fingerprintreader.json</file>
|
||||
<file>useraccesscontrol.json</file>
|
||||
<file>heating.json</file>
|
||||
<file>extendedheating.json</file>
|
||||
<file>evcharger.json</file>
|
||||
<file>extendedevcharger.json</file>
|
||||
<file>noisesensor.json</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.",
|
||||
"states": [
|
||||
{
|
||||
"name": "targetTemperature",
|
||||
"type": "double",
|
||||
"unit": "DegreeCelsius",
|
||||
"minValue": "any",
|
||||
"maxValue": "any"
|
||||
}
|
||||
]
|
||||
"description": "The thermostat interface describes devices which have a target temperature value and regulate themselves to match that target temperature.",
|
||||
"states": [
|
||||
{
|
||||
"name": "targetTemperature",
|
||||
"type": "double",
|
||||
"unit": "DegreeCelsius",
|
||||
"minValue": "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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user