uwap-home: Add second hallway light
This commit is contained in:
parent
2e1d9d83c8
commit
54c44b0438
1 changed files with 46 additions and 0 deletions
|
|
@ -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],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue