From 75816dc15c35aa46cf941a45e9c88c1a8254afc3 Mon Sep 17 00:00:00 2001 From: Ranlvor Date: Sun, 24 Jun 2018 13:20:47 +0200 Subject: [PATCH 1/3] Show number of WLAN-devices --- config/rzl.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/config/rzl.js b/config/rzl.js index 304c6e7..5ffa826 100644 --- a/config/rzl.js +++ b/config/rzl.js @@ -123,6 +123,12 @@ const config : Config = { values: {}, type: msg => JSON.parse(msg.toString()).join(", ") }, + devices_status: { + state: "/service/status/devices", + command: "", + defaultValue: "", + values: {} + }, infoscreen: { state: "/service/openhab/out/pca301_infoscreen/state", command: "/service/openhab/in/pca301_infoscreen/command", @@ -458,7 +464,14 @@ const config : Config = { text: "Anwesend", topic: "presence_status", icon: "account" + }, + { + type: "text", + text: "Devices", + topic: "devices_status", + icon: "wifi" } + ] }, infoscreen: { From f507e388d587d605c8a3d80264ec6f8903d1281c Mon Sep 17 00:00:00 2001 From: Ranlvor Date: Sun, 24 Jun 2018 15:46:04 +0200 Subject: [PATCH 2/3] devices_status: +type: types.str --- config/rzl.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/rzl.js b/config/rzl.js index 5ffa826..1f3e24b 100644 --- a/config/rzl.js +++ b/config/rzl.js @@ -127,7 +127,8 @@ const config : Config = { state: "/service/status/devices", command: "", defaultValue: "", - values: {} + values: {}, + type: types.str }, infoscreen: { state: "/service/openhab/out/pca301_infoscreen/state", From bb2f151e110ab13b0a3d4c276b5fd1e620e9ecc2 Mon Sep 17 00:00:00 2001 From: Ranlvor Date: Sun, 24 Jun 2018 16:57:45 +0200 Subject: [PATCH 3/3] types.str -> types.string --- config/rzl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/rzl.js b/config/rzl.js index 1f3e24b..dc660d5 100644 --- a/config/rzl.js +++ b/config/rzl.js @@ -128,7 +128,7 @@ const config : Config = { command: "", defaultValue: "", values: {}, - type: types.str + type: types.string }, infoscreen: { state: "/service/openhab/out/pca301_infoscreen/state",