Zeige Status der Lötarbeitsplätze an

This commit is contained in:
Ranlvor 2018-07-01 16:46:33 +02:00
parent 8a37cf2c95
commit 44203687b4
Signed by untrusted user who does not match committer: Ranlvor
GPG key ID: 5E12D04750EF6F8E

View file

@ -110,6 +110,18 @@ const config : Config = {
defaultValue: "OFF", defaultValue: "OFF",
values: { on: "ON", off: "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: { door_status: {
state: "/service/status", state: "/service/status",
command: "", 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: { alarm: {
name: "Alarm", name: "Alarm",
position: [340, 250], position: [340, 250],