Add smartlock interface and simplify simpleclosable interface
This commit is contained in:
parent
9c49712a99
commit
d641833eca
@ -1,3 +1,8 @@
|
||||
{
|
||||
"extends": "simpleclosable"
|
||||
"actions": [
|
||||
{
|
||||
"name": "stop"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -1,17 +1,10 @@
|
||||
{
|
||||
"extends": "simpleclosable",
|
||||
"states": [
|
||||
{
|
||||
"name": "state",
|
||||
"type": "QString",
|
||||
"allowedValues": ["open", "closed", "opening", "closing"]
|
||||
}
|
||||
],
|
||||
"actions": [
|
||||
{
|
||||
"name": "open"
|
||||
},
|
||||
{
|
||||
"name": "close"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -1,3 +1,8 @@
|
||||
{
|
||||
"extends": "simpleclosable"
|
||||
"actions": [
|
||||
{
|
||||
"name": "stop"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -5,9 +5,6 @@
|
||||
},
|
||||
{
|
||||
"name": "close"
|
||||
},
|
||||
{
|
||||
"name": "stop"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
16
libnymea/interfaces/smartlock.json
Normal file
16
libnymea/interfaces/smartlock.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"extends": "simpleclosable",
|
||||
"states": [
|
||||
{
|
||||
"name": "state",
|
||||
"type": "QString",
|
||||
"allowedValues": ["locked", "locking", "unlocked", "unlocking", "unlatched", "unlatching"]
|
||||
}
|
||||
],
|
||||
"actions": [
|
||||
{
|
||||
"name": "unlatch"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user