From 8c91dee9b808bb089e323dccf321e38ae7cf313f Mon Sep 17 00:00:00 2001 From: Ranlvor Date: Wed, 12 May 2021 21:26:29 +0200 Subject: [PATCH] uwap-home: add projector --- config/uwap-home/index.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/config/uwap-home/index.js b/config/uwap-home/index.js index dffb109..a023f5f 100644 --- a/config/uwap-home/index.js +++ b/config/uwap-home/index.js @@ -289,6 +289,7 @@ const config: Config = { ...topicTasmota("fanBedroom", "sonoff-bedroom-fan"), ...topicTasmota("fanOffice", "sonoff-office-fan"), + ...topicTasmota("tasmotaProjector", "tasmota-projector"), ...topicHomeBoolean("fanBedroomAuto", "temperature-control/bedroom"), ...topicHomeBoolean("fanOfficeAuto", "temperature-control/office"), ...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: { name: "Wohnzimmer", position: [450, 200],