diff --git a/config/uwap-home/index.js b/config/uwap-home/index.js index b4e386b..3012c40 100644 --- a/config/uwap-home/index.js +++ b/config/uwap-home/index.js @@ -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],