uwap-home: Add new light in the office
This commit is contained in:
parent
9a070dcc2b
commit
6c80eb2bd4
1 changed files with 37 additions and 0 deletions
|
|
@ -249,6 +249,11 @@ const config: Config = {
|
||||||
...topicBulbNumber("bedroom", "color_temp"),
|
...topicBulbNumber("bedroom", "color_temp"),
|
||||||
...topicBulbNumber("hallway", "brightness"),
|
...topicBulbNumber("hallway", "brightness"),
|
||||||
...topicBulbState("bedroom"),
|
...topicBulbState("bedroom"),
|
||||||
|
|
||||||
|
...topicBulbNumber("office_window", "brightness"),
|
||||||
|
...topicBulbNumber("office_window", "color_temp"),
|
||||||
|
...topicBulbState("office_window"),
|
||||||
|
|
||||||
...topicTasmota("fanBedroom", "sonoff-bedroom-fan"),
|
...topicTasmota("fanBedroom", "sonoff-bedroom-fan"),
|
||||||
...topicHomeBoolean("fanBedroomAuto", "temperature-control/bedroom"),
|
...topicHomeBoolean("fanBedroomAuto", "temperature-control/bedroom"),
|
||||||
...topicHomeNumber("fanBedroomTarget",
|
...topicHomeNumber("fanBedroomTarget",
|
||||||
|
|
@ -555,6 +560,38 @@ const config: Config = {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
officeWindowLight: {
|
||||||
|
name: "Büro Fenster",
|
||||||
|
position: [173, 658],
|
||||||
|
/* eslint-disable camelcase */
|
||||||
|
icon: svg(icons.mdiDeskLamp).color(({office_windowState}) =>
|
||||||
|
(office_windowState === "on" ? hex("#00FF00") : hex("#000000"))),
|
||||||
|
/* eslint-enable camelcase */
|
||||||
|
ui: [
|
||||||
|
{
|
||||||
|
type: "toggle",
|
||||||
|
topic: "office_windowState",
|
||||||
|
text: "Ein/Ausschalten",
|
||||||
|
icon: svg(icons.mdiPower)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "slider",
|
||||||
|
min: 0,
|
||||||
|
max: 255,
|
||||||
|
text: "Helligkeit",
|
||||||
|
icon: svg(icons.mdiBrightness7),
|
||||||
|
topic: "office_windowbrightness"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "slider",
|
||||||
|
min: 250,
|
||||||
|
max: 454,
|
||||||
|
text: "Farbtemperatur",
|
||||||
|
icon: svg(icons.mdiWeatherSunsetDown),
|
||||||
|
topic: "office_windowcolor_temp"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
hallwayLight: {
|
hallwayLight: {
|
||||||
name: "Flur",
|
name: "Flur",
|
||||||
position: [520, 370],
|
position: [520, 370],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue