4 ms·
> One is running a custom Hue automation I built to shift the color temperature of the lights throughout the day. Ooooh do you have the code up somewhere for t
by xrjn 7y ago
> One is running a custom Hue automation I built to shift the color temperature of the lights throughout the day.
Ooooh do you have the code up somewhere for this? I would love to set it up at home :)
- fpgaminer 7y agoHue has a Labs addon that does this. You can try that easily. Didn't work for me though. If you have Home Assistant, someone built code for that: https://community.home-assistant.io/t/circadian-light-with-philips-hue-independent-from-world-clocks/45435 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/7840a6f2fb2d3a3be83625d7acfd12b3 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.
- beaugunderson 7y agoI'll throw mine in as well, it automates changing the color temperature to help with better sleep: https://github.com/beaugunderson/sleep-lights/blob/master/sleep_lights.py https://github.com/beaugunderson/sleep-lights/blob/master/sl...
- bgentry 7y agoNot the OP but I use Kelvin for this, works great! It basically treats my Hue White Ambience bulbs like Flux, where they automatically dim and warm in the evenings. Those changes happen gradually over the course of minutes/hours so it's not jarring. https://github.com/stefanwichmann/kelvin https://github.com/stefanwichmann/kelvin