RZL Door: Show Power Consumption and Link to Dashboard (#100)

* RZL Door: Show Power Consumption and Link to Dashboard
This commit is contained in:
Ranlvor 2019-03-17 17:56:29 +01:00 committed by uwap
parent 8ac32ced41
commit 4588d450fb

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,13 @@ 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 +466,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")
} }
] ]