From 8ad75a1148409901ece77450cf60ed286d7e6b32 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Tue, 17 Dec 2024 19:59:08 +0100 Subject: [PATCH] Added workbench light (no color temp control for now) --- config.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/config.lua b/config.lua index 054b5ed..5624c4c 100644 --- a/config.lua +++ b/config.lua @@ -187,6 +187,24 @@ automation.device_manager:add(IkeaOutlet.new({ client = mqtt_client, })) +local workbench_light = LightBrightness.new({ + name = "Light", + room = "Workbench", + topic = mqtt_z2m("workbench/light"), + client = mqtt_client, +}) +automation.device_manager:add(workbench_light) + +automation.device_manager:add(IkeaRemote.new({ + name = "Remote", + room = "Workbench", + client = mqtt_client, + topic = mqtt_z2m("workbench/remote"), + callback = function(_, on) + workbench_light:set_on(on) + end, +})) + local hallway_top_light = HueGroup.new({ identifier = "hallway_top_light", ip = hue_ip,