Ooooh do you have the code up somewhere for this? I would love to set it up at home :)
Ooooh do you have the code up somewhere for this? I would love to set it up at home :)
If you have Home Assistant, someone built code for that: https://community.home-assistant.io/t/circadian-light-with-p...
As for mine, it's a total hack job, but for what it's worth: https://gist.github.com/fpgaminer/7840a6f2fb2d3a3be83625d7ac...
I don't do the fancy minute by minute adjustments to the color temperature; just a couple fixed settings for time of day and based on when the sun sets. And I just have it adjust a scene, which I have my Hue switches configured to use when I turn the lights on.
There's no good way to have this system work with, for example, turning on the lights through Alexa/Siri/etc since they won't use the Circadian scene that's been setup. But what I've got works well enough for now.
https://github.com/beaugunderson/sleep-lights/blob/master/sl...