Merge pull request #45 from Ranlvor/patch-16
Zeige Status der Lötarbeitsplätze an
This commit is contained in:
commit
2b6ccafb77
1 changed files with 42 additions and 0 deletions
|
|
@ -222,6 +222,20 @@ const config : Config = {
|
|||
},
|
||||
defaultValue: "off"
|
||||
},
|
||||
loetarbeitsplatz4: {
|
||||
state: {
|
||||
name: "stat/sonoff4/POWER",
|
||||
type: types.option({ ON: "on", OFF: "off" })
|
||||
},
|
||||
defaultValue: "off",
|
||||
},
|
||||
loetarbeitsplatz5: {
|
||||
state: {
|
||||
name: "stat/sonoff5/POWER",
|
||||
type: types.option({ ON: "on", OFF: "off" })
|
||||
},
|
||||
defaultValue: "off",
|
||||
},
|
||||
door_status: {
|
||||
state: {
|
||||
name: "/service/status",
|
||||
|
|
@ -601,6 +615,34 @@ const config : Config = {
|
|||
}
|
||||
]
|
||||
},
|
||||
loetarbeitsplatz4: {
|
||||
name: "Lötarbeitsplatz",
|
||||
position: [205, 455],
|
||||
icon: mdi("eyedropper-variant"),
|
||||
iconColor: ({loetarbeitsplatz4}) => loetarbeitsplatz4 == "on" ? hex("#FF0000") : hex("#000000"),
|
||||
ui: [
|
||||
{
|
||||
type: "text",
|
||||
text: "Status",
|
||||
topic: "loetarbeitsplatz4",
|
||||
icon: mdi("eyedropper-variant")
|
||||
}
|
||||
]
|
||||
},
|
||||
loetarbeitsplatz5: {
|
||||
name: "Lötarbeitsplatz",
|
||||
position: [205, 405],
|
||||
icon: mdi("eyedropper-variant"),
|
||||
iconColor: ({loetarbeitsplatz5}) => loetarbeitsplatz5 == "on" ? hex("#FF0000") : hex("#000000"),
|
||||
ui: [
|
||||
{
|
||||
type: "text",
|
||||
text: "Status",
|
||||
topic: "loetarbeitsplatz5",
|
||||
icon: mdi("eyedropper-variant")
|
||||
}
|
||||
]
|
||||
},
|
||||
alarm: {
|
||||
name: "Alarm",
|
||||
position: [340, 250],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue