Add icon for nas
This commit is contained in:
parent
bf2f595809
commit
e0b64f1bfe
1 changed files with 26 additions and 0 deletions
|
|
@ -145,6 +145,17 @@ const config: Config = {
|
||||||
},
|
},
|
||||||
defaultValue: "OFF"
|
defaultValue: "OFF"
|
||||||
},
|
},
|
||||||
|
nasPower: {
|
||||||
|
state: {
|
||||||
|
name: "nas/online",
|
||||||
|
type: types.string
|
||||||
|
},
|
||||||
|
command: {
|
||||||
|
name: "home-rust/wake/nas",
|
||||||
|
type: types.string
|
||||||
|
},
|
||||||
|
defaultValue: "OFF"
|
||||||
|
},
|
||||||
...topicHomeBoolean("livingroomKodiControlled",
|
...topicHomeBoolean("livingroomKodiControlled",
|
||||||
"bulb/livingroom/kodi-controlled"),
|
"bulb/livingroom/kodi-controlled"),
|
||||||
...topicHomeBoolean("bedroomWakeup", "wakeup"),
|
...topicHomeBoolean("bedroomWakeup", "wakeup"),
|
||||||
|
|
@ -466,6 +477,21 @@ const config: Config = {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
nas: {
|
||||||
|
name: "NAS",
|
||||||
|
position: [550, 100],
|
||||||
|
icon: mdi("nas"),
|
||||||
|
iconColor: ({nasPower}) =>
|
||||||
|
(nasPower === "on" ? hex("#00FF00") : hex("#000000")),
|
||||||
|
ui: [
|
||||||
|
{
|
||||||
|
type: "toggle",
|
||||||
|
topic: "nasPower",
|
||||||
|
text: "Einschalten",
|
||||||
|
icon: mdi("power")
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
livingroomLight: {
|
livingroomLight: {
|
||||||
name: "Wohnzimmer",
|
name: "Wohnzimmer",
|
||||||
position: [450, 200],
|
position: [450, 200],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue