Add Light Diningroom
This commit is contained in:
parent
d50ea6fd49
commit
65452ac0cb
1 changed files with 24 additions and 0 deletions
|
|
@ -206,6 +206,8 @@ const config: Config = {
|
|||
...topicBulbState("hallway"),
|
||||
...topicBulbNumber("hallway2", "brightness"),
|
||||
...topicBulbState("hallway2"),
|
||||
...topicBulbNumber("diningroom", "brightness"),
|
||||
...topicBulbState("diningroom"),
|
||||
...topicBulbState("office"),
|
||||
...topicBulbNumber("office", "brightness"),
|
||||
...topicTasmota("speakerOffice", "sonoff-office-speaker"),
|
||||
|
|
@ -447,6 +449,28 @@ const config: Config = {
|
|||
}
|
||||
]
|
||||
},
|
||||
diningroomLight: {
|
||||
name: "Esszimmer",
|
||||
position: [410, 570],
|
||||
icon: svg(icons.mdiCeilingLight).color(({diningroomState}) =>
|
||||
(diningroomState === "on" ? hex("#00FF00") : hex("#000000"))),
|
||||
ui: [
|
||||
{
|
||||
type: "toggle",
|
||||
topic: "diningroomState",
|
||||
text: "Ein/Ausschalten",
|
||||
icon: svg(icons.mdiPower)
|
||||
},
|
||||
{
|
||||
type: "slider",
|
||||
min: 0,
|
||||
max: 255,
|
||||
text: "Helligkeit",
|
||||
icon: svg(icons.mdiBrightness7),
|
||||
topic: "diningroombrightness"
|
||||
}
|
||||
]
|
||||
},
|
||||
pi: {
|
||||
name: "Pi",
|
||||
position: [550, 75],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue