uwap-home: add projector

This commit is contained in:
Ranlvor 2021-05-12 21:26:29 +02:00
parent db62d59f67
commit 8c91dee9b8
Signed by untrusted user who does not match committer: Ranlvor
GPG key ID: 5E12D04750EF6F8E

View file

@ -289,6 +289,7 @@ const config: Config = {
...topicTasmota("fanBedroom", "sonoff-bedroom-fan"), ...topicTasmota("fanBedroom", "sonoff-bedroom-fan"),
...topicTasmota("fanOffice", "sonoff-office-fan"), ...topicTasmota("fanOffice", "sonoff-office-fan"),
...topicTasmota("tasmotaProjector", "tasmota-projector"),
...topicHomeBoolean("fanBedroomAuto", "temperature-control/bedroom"), ...topicHomeBoolean("fanBedroomAuto", "temperature-control/bedroom"),
...topicHomeBoolean("fanOfficeAuto", "temperature-control/office"), ...topicHomeBoolean("fanOfficeAuto", "temperature-control/office"),
...topicHomeNumber("fanBedroomTarget", ...topicHomeNumber("fanBedroomTarget",
@ -848,6 +849,20 @@ const config: Config = {
} }
] ]
}, },
projector: {
name: "Beamer",
position: [410, 230],
icon: svg(icons.mdiProjector).color(({tasmotaProjectorState}) =>
(tasmotaProjectorState === "on" ? hex("#00FF00") : hex("#000000"))),
ui: [
{
type: "toggle",
topic: "tasmotaProjectorState",
text: "Ein/Ausschalten",
icon: svg(icons.mdiPower)
}
]
},
livingroomLight: { livingroomLight: {
name: "Wohnzimmer", name: "Wohnzimmer",
position: [450, 200], position: [450, 200],