H2 change the light temperature over the day?

Is there a simple way to adjust the light temperature according to the sun? I’d like to start the day with a yellowish tone, then turn to white and when the sun is setting and afterward to turn yellow again?

I could obviously create five automations but was wondering if there was a better way to do this?

Guess you could use the sun elevation as a multiplying factor?
{{state_attr("sun.sun","elevation")}}
you’d need to get a condition that elevation is above 0 (meaning daytime)
If I read well elevation goes between 0 and 90, white is 4200K, we could say orange is 3400k
You could have your colour being
{{3400 + (state_attr("sun.sun","elevation") * 10)}}

1 Like
2 Likes

Yes, that looks like it. Will investigate. Thanks!

It’s available out-of-the-box and it works well.

1 Like

Amazing. Home Assistant has everything!

I can tell you that the Circadian Lighting custom component linked above is awesome. I have been using it for months and love it. I also use some automations to allow individual lights to be overridden so my girlfriend can have full white light when she needs it. Gotta keep up that WAF :rofl:

1 Like

@sparkydave: Installed Circadian Lighting this weekend and it works great. Thanks!