diff --git a/libnymea/interfaces/account.json b/libnymea/interfaces/account.json new file mode 100644 index 00000000..539d7dec --- /dev/null +++ b/libnymea/interfaces/account.json @@ -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" + } + + ] +} diff --git a/libnymea/interfaces/gateway.json b/libnymea/interfaces/gateway.json index 82c28534..9ae8633a 100644 --- a/libnymea/interfaces/gateway.json +++ b/libnymea/interfaces/gateway.json @@ -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" } diff --git a/libnymea/interfaces/interfaces.qrc b/libnymea/interfaces/interfaces.qrc index 399c83fc..590b6cb0 100644 --- a/libnymea/interfaces/interfaces.qrc +++ b/libnymea/interfaces/interfaces.qrc @@ -3,6 +3,7 @@ alert.json light.json dimmablelight.json + account.json daylightsensor.json colortemperaturelight.json doorbell.json