From 44203687b45ca313d44fb6ad05867f03a905d434 Mon Sep 17 00:00:00 2001 From: Ranlvor Date: Sun, 1 Jul 2018 16:46:33 +0200 Subject: [PATCH] =?UTF-8?q?Zeige=20Status=20der=20L=C3=B6tarbeitspl=C3=A4t?= =?UTF-8?q?ze=20an?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/rzl.js | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/config/rzl.js b/config/rzl.js index 304c6e7..8d4732e 100644 --- a/config/rzl.js +++ b/config/rzl.js @@ -110,6 +110,18 @@ const config : Config = { defaultValue: "OFF", values: { on: "ON", off: "OFF" } }, + loetarbeitsplatz4: { + state: "stat/sonoff4/POWER", + command: "", + defaultValue: "OFF", + values: { on: "ON", off: "OFF" } + }, + loetarbeitsplatz5: { + state: "stat/sonoff5/POWER", + command: "", + defaultValue: "OFF", + values: { on: "ON", off: "OFF" } + }, door_status: { state: "/service/status", command: "", @@ -435,6 +447,34 @@ const config : Config = { } ] }, + loetarbeitsplatz4: { + name: "Lötarbeitsplatz", + position: [205, 455], + icon: "eyedropper-variant", + iconColor: ({loetarbeitsplatz4}) => loetarbeitsplatz4 == "on" ? hex("#FF0000") : hex("#000000"), + ui: [ + { + type: "text", + text: "Status", + topic: "loetarbeitsplatz4", + icon: "eyedropper-variant" + } + ] + }, + loetarbeitsplatz5: { + name: "Lötarbeitsplatz", + position: [205, 405], + icon: "eyedropper-variant", + iconColor: ({loetarbeitsplatz5}) => loetarbeitsplatz5 == "on" ? hex("#FF0000") : hex("#000000"), + ui: [ + { + type: "text", + text: "Status", + topic: "loetarbeitsplatz5", + icon: "eyedropper-variant" + } + ] + }, alarm: { name: "Alarm", position: [340, 250],