Added workbench light (no color temp control for now)
All checks were successful
Build and deploy / Build application (push) Successful in 3m30s
Build and deploy / Build container (push) Successful in 1m6s
Build and deploy / Deploy container (push) Successful in 33s

This commit is contained in:
Dreaded_X 2024-12-17 19:59:08 +01:00
parent ef180f6261
commit 8ad75a1148
Signed by: Dreaded_X
GPG Key ID: 5A0CBFE3C3377FAA

View File

@ -187,6 +187,24 @@ automation.device_manager:add(IkeaOutlet.new({
client = mqtt_client, 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({ local hallway_top_light = HueGroup.new({
identifier = "hallway_top_light", identifier = "hallway_top_light",
ip = hue_ip, ip = hue_ip,