uwap-home: Add second hallway light

This commit is contained in:
Ranlvor 2020-02-18 00:00:36 +01:00
parent 2e1d9d83c8
commit 54c44b0438
Signed by untrusted user who does not match committer: Ranlvor
GPG key ID: 5E12D04750EF6F8E

View file

@ -217,6 +217,31 @@ const config: Config = {
}, },
defaultValue: "OFF" defaultValue: "OFF"
}, },
hallway2Brightness: {
state: {
name: "home-rust/bulb/hallway2/brightness",
type: types.string
},
command: {
name: "zigbee2mqtt/bulb_hallway2/set",
type: (value) => JSON.stringify({ brightness: value.toString() })
},
defaultValue: "0"
},
hallway2State: {
state: {
name: "home-rust/bulb/hallway2/state",
type: types.option({
OFF: "off",
ON: "on"
})
},
command: {
name: "zigbee2mqtt/bulb_hallway2/set",
type: (value) => JSON.stringify({ state: value.toString() })
},
defaultValue: "OFF"
},
officeBrightness: { officeBrightness: {
state: { state: {
name: "home-rust/bulb/office/brightness", name: "home-rust/bulb/office/brightness",
@ -412,6 +437,27 @@ const config: Config = {
} }
] ]
}, },
hallway2Light: {
name: "Flur",
position: [250, 370],
icon: mdi("ceiling-light"),
ui: [
{
type: "toggle",
topic: "hallway2State",
text: "Ein/Ausschalten",
icon: mdi("power")
},
{
type: "slider",
min: 0,
max: 255,
text: "Helligkeit",
icon: mdi("brightness-7"),
topic: "hallway2Brightness"
}
]
},
livingroomLight: { livingroomLight: {
name: "Wohnzimmer", name: "Wohnzimmer",
position: [450, 200], position: [450, 200],