From 571896dabb55a6376736168b68e7e132e26c2d87 Mon Sep 17 00:00:00 2001 From: uwap Date: Sun, 21 Jan 2018 13:14:20 +0100 Subject: [PATCH] RZL: Add presence status --- config/rzl.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/config/rzl.js b/config/rzl.js index e509754..b9b5b9b 100644 --- a/config/rzl.js +++ b/config/rzl.js @@ -113,6 +113,13 @@ const config : Config = { defaultValue: "\"closed\"", values: { on: "\"open\"", off: "\"closed\"" } }, + presence_status: { + state: "service/status/presence", + command: "", + defaultValue: "", + values: {}, + parseState: msg => JSON.parse(msg.toString()).join(", ") + }, infoscreen: { state: "/service/openhab/out/pca301_infoscreen/state", command: "/service/openhab/in/pca301_infoscreen/command", @@ -419,6 +426,12 @@ const config : Config = { type: "link", link: "http://s.rzl.so", text: "Open Status Page" + }, + { + type: "text", + text: "Anwesend", + topic: "presence_status", + icon: "account" } ] },