RZL Door: Show Power Consumption and Link to Dashboard (#100)
* RZL Door: Show Power Consumption and Link to Dashboard
This commit is contained in:
parent
8ac32ced41
commit
4588d450fb
1 changed files with 21 additions and 0 deletions
|
|
@ -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")
|
||||
}
|
||||
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue