RZL Door: Show Power Consumption and Link to Dashboard

This commit is contained in:
Ranlvor 2019-03-17 16:07:15 +01:00
parent a149fed592
commit 4574c90aff
Signed by untrusted user who does not match committer: Ranlvor
GPG key ID: 5E12D04750EF6F8E

View file

@ -137,6 +137,14 @@ const config: Config = {
}, },
defaultValue: "" defaultValue: ""
}, },
powerConsumption: {
state: {
name: "/service/power/hauptraum/power",
type: (msg) =>
(Number.parseFloat(msg.toString()) / 1000).toFixed(2) + " kW"
},
defaultValue: ""
},
projector: { projector: {
state: { state: {
name: "/service/beamer/state", name: "/service/beamer/state",
@ -434,6 +442,12 @@ const config: Config = {
text: "Open Status Page", text: "Open Status Page",
icon: mdi("open-in-new") 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", type: "text",
text: "Anwesend", text: "Anwesend",
@ -451,6 +465,12 @@ const config: Config = {
text: "Deko", text: "Deko",
topic: "deko", topic: "deko",
icon: mdi("invert-colors") icon: mdi("invert-colors")
},
{
type: "text",
text: "Power Hauptraum",
topic: "powerConsumption",
icon: mdi("speedometer")
} }
] ]