From 44203687b45ca313d44fb6ad05867f03a905d434 Mon Sep 17 00:00:00 2001 From: Ranlvor Date: Sun, 1 Jul 2018 16:46:33 +0200 Subject: [PATCH 1/2] =?UTF-8?q?Zeige=20Status=20der=20L=C3=B6tarbeitspl?= =?UTF-8?q?=C3=A4tze=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], From 903e3f4080fe89e73fd31c6acfdb43de0edde5f1 Mon Sep 17 00:00:00 2001 From: Ranlvor Date: Sun, 1 Jul 2018 16:57:41 +0200 Subject: [PATCH 2/2] Fix icons --- config/rzl.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/rzl.js b/config/rzl.js index 75bb138..03a8f07 100644 --- a/config/rzl.js +++ b/config/rzl.js @@ -618,28 +618,28 @@ const config : Config = { loetarbeitsplatz4: { name: "Lötarbeitsplatz", position: [205, 455], - icon: "eyedropper-variant", + icon: mdi("eyedropper-variant"), iconColor: ({loetarbeitsplatz4}) => loetarbeitsplatz4 == "on" ? hex("#FF0000") : hex("#000000"), ui: [ { type: "text", text: "Status", topic: "loetarbeitsplatz4", - icon: "eyedropper-variant" + icon: mdi("eyedropper-variant") } ] }, loetarbeitsplatz5: { name: "Lötarbeitsplatz", position: [205, 405], - icon: "eyedropper-variant", + icon: mdi("eyedropper-variant"), iconColor: ({loetarbeitsplatz5}) => loetarbeitsplatz5 == "on" ? hex("#FF0000") : hex("#000000"), ui: [ { type: "text", text: "Status", topic: "loetarbeitsplatz5", - icon: "eyedropper-variant" + icon: mdi("eyedropper-variant") } ] },