mirror of https://github.com/nymea/nymea.git
Add smartlock interface and simplify simpleclosable interface
parent
9c49712a99
commit
d641833eca
|
|
@ -1,3 +1,8 @@
|
||||||
{
|
{
|
||||||
"extends": "simpleclosable"
|
"extends": "simpleclosable"
|
||||||
|
"actions": [
|
||||||
|
{
|
||||||
|
"name": "stop"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,10 @@
|
||||||
{
|
{
|
||||||
|
"extends": "simpleclosable",
|
||||||
"states": [
|
"states": [
|
||||||
{
|
{
|
||||||
"name": "state",
|
"name": "state",
|
||||||
"type": "QString",
|
"type": "QString",
|
||||||
"allowedValues": ["open", "closed", "opening", "closing"]
|
"allowedValues": ["open", "closed", "opening", "closing"]
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"actions": [
|
|
||||||
{
|
|
||||||
"name": "open"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "close"
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
{
|
{
|
||||||
"extends": "simpleclosable"
|
"extends": "simpleclosable"
|
||||||
|
"actions": [
|
||||||
|
{
|
||||||
|
"name": "stop"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,6 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "close"
|
"name": "close"
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stop"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"extends": "simpleclosable",
|
||||||
|
"states": [
|
||||||
|
{
|
||||||
|
"name": "state",
|
||||||
|
"type": "QString",
|
||||||
|
"allowedValues": ["locked", "locking", "unlocked", "unlocking", "unlatched", "unlatching"]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"actions": [
|
||||||
|
{
|
||||||
|
"name": "unlatch"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
Reference in New Issue