From e747acc67ed96e4f6d680b2c9ccf561324446d7f Mon Sep 17 00:00:00 2001 From: Ranlvor Date: Sun, 22 Apr 2018 13:53:41 +0200 Subject: [PATCH 1/2] =?UTF-8?q?+Licht=20Sp=C3=BCle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/rzl.js | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/config/rzl.js b/config/rzl.js index 2279c8f..cc38cad 100644 --- a/config/rzl.js +++ b/config/rzl.js @@ -175,6 +175,12 @@ const config : Config = { command: "/service/openhab/in/kitchen_light_all_brightness/command", defaultValue: "0", values: {} + }, + kitchen_sink_light_brightness: { + state: "/service/openhab/out/tradfri_0100_gwb8d7af2b448f_65545_brightness/state", + command: "/service/openhab/out/tradfri_0100_gwb8d7af2b448f_65545_brightness/command", + defaultValue: "0", + values: {} } }, floalt.topics("65537"), @@ -638,6 +644,31 @@ const config : Config = { delayedApply: true } ] + }, + kitchen_sink_light: { + name: "Licht Spüle", + position: [300, 348], + icon: "ceiling-light", + ui: [ + { + type: "toggle", + on: 50, + off: 0, + toggled: n => parseInt(n) > 0, + topic: "kitchen_sink_light_brightness", + text: "Ein/Ausschalten", + icon: "power" + }, + { + type: "slider", + min: 0, + max: 100, + text: "Helligkeit", + icon: "brightness-7", + topic: "kitchen_sink_light_brightness", + delayedApply: true + } + ] } }, layers: [ From a7785bf1def94cb139a165119cf352c21aecfca7 Mon Sep 17 00:00:00 2001 From: Ranlvor Date: Sun, 29 Apr 2018 21:01:20 +0200 Subject: [PATCH 2/2] =?UTF-8?q?Sp=C3=BChlenlicht:=20fix=20command=20topic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/rzl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/rzl.js b/config/rzl.js index cc38cad..bf62774 100644 --- a/config/rzl.js +++ b/config/rzl.js @@ -178,7 +178,7 @@ const config : Config = { }, kitchen_sink_light_brightness: { state: "/service/openhab/out/tradfri_0100_gwb8d7af2b448f_65545_brightness/state", - command: "/service/openhab/out/tradfri_0100_gwb8d7af2b448f_65545_brightness/command", + command: "/service/openhab/in/tradfri_0100_gwb8d7af2b448f_65545_brightness/command", defaultValue: "0", values: {} }