From 628f9de24794d572fcded792b7c7c44ef0f85dd4 Mon Sep 17 00:00:00 2001 From: Ranlvor Date: Wed, 15 Jul 2020 18:19:22 +0200 Subject: [PATCH] uwap-home: Add office switch --- config/uwap-home/index.js | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/config/uwap-home/index.js b/config/uwap-home/index.js index f192fb1..7548cd8 100644 --- a/config/uwap-home/index.js +++ b/config/uwap-home/index.js @@ -195,7 +195,8 @@ const config: Config = { ...topicBulbState("hallway2"), ...topicBulbState("office"), ...topicBulbNumber("office", "brightness"), - ...topicTasmota("speakerOffice", "sonoff-office-speaker") + ...topicTasmota("speakerOffice", "sonoff-office-speaker"), + ...topicHomeBoolean("officeSwitchPollingActive", "switch/office/polling") } ], controls: { @@ -352,6 +353,26 @@ const config: Config = { } ] }, + officeSwitch: { + name: "Switch Büro", + position: [200, 540], + icon: mdi("lan"), + ui: [ + { + type: "toggle", + topic: "officeSwitchPollingActive", + text: "Poll switch status", + icon: mdi("power") + }, + { + type: "link", + link: "http://192.168.0.189/", + text: "Open Webinterface", + icon: mdi("open-in-new") + } + + ] + }, officeLight: { name: "Büro", position: [210, 570], @@ -431,6 +452,12 @@ const config: Config = { topic: "lueftenHint", text: "Lüften Erinnerung", icon: mdi("fan") + }, + { + type: "link", + link: "http://192.168.0.12:3000/", + text: "Grafana", + icon: mdi("open-in-new") } ] },