From 26ab714a3f8957a849a1d01205646da56f6ab8f8 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Tue, 3 Sep 2019 18:59:13 +0200 Subject: [PATCH] Add loggedIn property --- libnymea/interfaces/account.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libnymea/interfaces/account.json b/libnymea/interfaces/account.json index a05f4186..870bff48 100644 --- a/libnymea/interfaces/account.json +++ b/libnymea/interfaces/account.json @@ -1,4 +1,10 @@ { - "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. Such device classes usually will cause auto-devices implementing the actual features as child devices.", - "extends": "connectable" + "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. 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" + } + ] }