diff --git a/config/rzl/index.js b/config/rzl/index.js index 2dc0000..2b0741d 100644 --- a/config/rzl/index.js +++ b/config/rzl/index.js @@ -137,6 +137,14 @@ const config: Config = { }, defaultValue: "" }, + powerConsumption: { + state: { + name: "/service/power/hauptraum/power", + type: (msg) => + (Number.parseFloat(msg.toString()) / 1000).toFixed(2) + " kW" + }, + defaultValue: "" + }, projector: { state: { name: "/service/beamer/state", @@ -434,6 +442,13 @@ const config: Config = { text: "Open Status Page", icon: mdi("open-in-new") }, + { + type: "link", + // eslint-disable-next-line max-len + link: "http://kunterbunt.vm.rzl/dashboard/db/allgemeines-copy-ranlvor?orgId=1", + text: "RZL-Dashboard", + icon: mdi("open-in-new") + }, { type: "text", text: "Anwesend", @@ -451,6 +466,12 @@ const config: Config = { text: "Deko", topic: "deko", icon: mdi("invert-colors") + }, + { + type: "text", + text: "Power Hauptraum", + topic: "powerConsumption", + icon: mdi("speedometer") } ]