From 89584787e2be4f67ef7d2cb9d7974d46152b6167 Mon Sep 17 00:00:00 2001 From: Ranlvor Date: Wed, 27 Sep 2017 21:39:27 +0200 Subject: [PATCH 1/2] +Ventilator --- src/config.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/config.js b/src/config.js index 7f9c5e7..e5abb97 100644 --- a/src/config.js +++ b/src/config.js @@ -19,6 +19,12 @@ const config : Config = { defaultValue: "OFF", values: { on: "ON", off: "OFF" } }, + fan: { + state: "/service/openhab/out/pca301_fan/state", + command: "/service/openhab/in/pca301_fan/command", + defaultValue: "OFF", + values: { on: "ON", off: "OFF" } + }, flyfry: { state: "/service/openhab/out/wifi_flyfry/state", command: "/service/openhab/in/wifi_flyfry/command", @@ -106,6 +112,19 @@ const config : Config = { } ] }, + fan: { + name: "Ventilator", + position: [530, 450], + icon: "toys", + iconColor: state => state.fan == "on" ? "#00FF00" : "#000000", + ui: [ + { + type: "toggle", + text: "Ventilator", + topic: "fan" + } + ] + }, flyfry: { name: "FliegenbratgerÃĪt", position: [450, 560], From c5acab2acaa53c4aff1bada6f658a56414939b5b Mon Sep 17 00:00:00 2001 From: Ranlvor Date: Wed, 27 Sep 2017 22:54:51 +0200 Subject: [PATCH 2/2] +videogames, +olymp_pc --- src/config.js | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/src/config.js b/src/config.js index e5abb97..d93c37e 100644 --- a/src/config.js +++ b/src/config.js @@ -25,6 +25,18 @@ const config : Config = { defaultValue: "OFF", values: { on: "ON", off: "OFF" } }, + videogames: { + state: "/service/openhab/out/pca301_videogames/state", + command: "/service/openhab/in/pca301_videogames/command", + defaultValue: "OFF", + values: { on: "ON", off: "OFF" } + }, + olymp_pc: { + state: "/service/openhab/out/pca301_olymp_pc/state", + command: "/service/openhab/in/pca301_olymp_pc/command", + defaultValue: "OFF", + values: { on: "ON", off: "OFF" } + }, flyfry: { state: "/service/openhab/out/wifi_flyfry/state", command: "/service/openhab/in/wifi_flyfry/command", @@ -125,6 +137,32 @@ const config : Config = { } ] }, + videogames: { + name: "Videospiele", + position: [79, 50], + icon: "videogame_asset", + iconColor: state => state.videogames == "on" ? "#00FF00" : "#000000", + ui: [ + { + type: "toggle", + text: "Videospiele", + topic: "videogames" + } + ] + }, + olymp_pc: { + name: "Rechner und Drucker", + position: [298, 20], + icon: "desktop_windows", + iconColor: state => state.olymp_pc == "on" ? "#00FF00" : "#000000", + ui: [ + { + type: "toggle", + text: "Rechner und Drucker", + topic: "olymp_pc" + } + ] + }, flyfry: { name: "FliegenbratgerÃĪt", position: [450, 560],