add a door interface

pull/135/head
Michael Zanetti 2018-05-11 16:13:14 +02:00
parent a3757e7fb3
commit 3a862e2050
4 changed files with 36 additions and 9 deletions

View File

@ -0,0 +1,17 @@
{
"states": [
{
"name": "state",
"type": "String",
"allowedValues": ["open", "closed", "opening", "closing"]
}
],
"actions": [
{
"name": "open"
},
{
"name": "close"
}
]
}

View File

@ -0,0 +1,14 @@
{
"extends": "closable",
"states": [
{
"name": "latched",
"type": "bool"
}
],
"actions": [
{
"name": "unlatch"
}
]
}

View File

@ -1,18 +1,12 @@
{
"extends": "closable",
"states": [
{
"name": "gateState",
"type": "String",
"allowedValues": ["open", "closed", "intermediate", "opening", "closing"]
"name": "intermediatePosition",
"type": "bool"
}
],
"actions": [
{
"name": "open"
},
{
"name": "close"
},
{
"name": "stop"
},

View File

@ -27,6 +27,8 @@
<file>inputtrigger.json</file>
<file>outputtrigger.json</file>
<file>power.json</file>
<file>closable.json</file>
<file>door.json</file>
</qresource>
<qresource prefix="/"/>
</RCC>