Hi all, I wanted to share my recent success in resolving an issue with my Hue lights. I noticed that when activating a scene, the lights would default to their most recently used color, which wasn’t the intended behavior. After some research and experimentation, I found a solution using Luup code to set the color explicitly when the scene is triggered. Here’s the code snippet I used:
lua
local hueLight = device.getDevice(‘hue_light_id’)
hueLight.setColor({ x = 0.5, y = 0.5 })
hueLight.turnOn()
This ensures that the lights always display the desired color when the scene is activated. I’d love to hear how others have tackled similar issues or if there are more efficient methods out there. Happy automating!