Merge PR #206: Add account interface
This commit is contained in:
commit
ba1dce9137
15
libnymea/interfaces/account.json
Normal file
15
libnymea/interfaces/account.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"description": "This is used to flag a thing that manages user a user account. It is similar to the gateway interface. For example, if there is a remote API that requires logging in but doesn't really offer any more functionality than that, this account shall be used. It inherits \"connectable\" which is used to flag if the remote server is unreachable. In addition, the \"loggedIn\" state indicates if the login fails. While logged in, the \"userDisplayName\" state should give the user's name in a pretty printed form. A client may reconfigure the device then to login again. Such device classes usually will cause auto-devices implementing the actual features as child devices.",
|
||||
"extends": "connectable",
|
||||
"states": [
|
||||
{
|
||||
"name": "loggedIn",
|
||||
"type": "bool"
|
||||
},
|
||||
{
|
||||
"name": "userDisplayName",
|
||||
"type": "QString"
|
||||
}
|
||||
|
||||
]
|
||||
}
|
||||
@ -1,3 +1,4 @@
|
||||
{
|
||||
"description": "The gateway interface is used for gateway devices like bridges to other networks. For instance Ethernet to ZigBee bridges, Ethernet to RF bridges or similar. Typically such device classes implement the actual functionality in child devices that will auto-appear after successful connection to the gateway/bridge.",
|
||||
"extends": "connectable"
|
||||
}
|
||||
|
||||
@ -3,6 +3,7 @@
|
||||
<file>alert.json</file>
|
||||
<file>light.json</file>
|
||||
<file>dimmablelight.json</file>
|
||||
<file>account.json</file>
|
||||
<file>daylightsensor.json</file>
|
||||
<file>colortemperaturelight.json</file>
|
||||
<file>doorbell.json</file>
|
||||
|
||||
Reference in New Issue
Block a user