Add icon for nas

This commit is contained in:
Ranlvor 2020-02-23 19:33:47 +01:00
parent bf2f595809
commit e0b64f1bfe
Signed by untrusted user who does not match committer: Ranlvor
GPG key ID: 5E12D04750EF6F8E

View file

@ -145,6 +145,17 @@ const config: Config = {
},
defaultValue: "OFF"
},
nasPower: {
state: {
name: "nas/online",
type: types.string
},
command: {
name: "home-rust/wake/nas",
type: types.string
},
defaultValue: "OFF"
},
...topicHomeBoolean("livingroomKodiControlled",
"bulb/livingroom/kodi-controlled"),
...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: {
name: "Wohnzimmer",
position: [450, 200],