This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
Michael Zanetti 73200c3c67 Split the smartlock and simpleclosable interfaces
They're not necessarily available both in all kinds of hardware.
2019-04-08 13:55:15 +02:00

17 lines
866 B
JSON

{
"description": "The smartlock interface is used for locks which can be opened digitally. The simplest form is a door opener which just unlatches the door lock for a few seconds so a person can enter. Implement the unlatch action and set the state to \"unlatching\" while opening. Set the state back to \"locked\" when done. More advanced devices might also allow keeping a door unlatched or distinguish between locked and unlocked. Fully electric doors might even support opening and closing the entire door by combining this interface with the \"simpleclosable\" interface.",
"states": [
{
"name": "state",
"type": "QString",
"allowedValues": ["locked", "locking", "unlocked", "unlocking", "unlatched", "unlatching"]
}
],
"actions": [
{
"name": "unlatch"
}
]
}