Hi all,
I had a setup that switched the lights when the sun was setting or when someone comes home in the dark, but that broke after a recent update. I was looking to fix the 2 automations and I came across “device_sun_light_trigger”. (Presence-based lights - Home Assistant)
This component is exactly what I need, but it doesn’t work as expected.
This is what is should do:
Fade in the lights when the sun is setting and there are people home
Turn on the lights when people get home after the sun has set
Turn off the lights when all people leave the house
When I come home or leave the house, the lights turn on. But when I’m home and the sun is settings, the lights don’t turn on or when they do, they don’t fade in and they go on when it’s already dark outside. I’m thinking that it’s a bug in the system, because it does work when I’m coming home or leaving.
I’m guessing that is a bug, but I can’t find a lot of information about the component…
The lights I’m using are Philips Hue lamp, so they should support fading. And the sun component is enabled in my system.
This is the piece of code I’m using
device_sun_light_trigger: light_group: group.lights_livingroom device_group: group.all_devices