I wrote a little script for my homebrew ESPHome-controlled CW/WW LED strip to automatically control color temperature based on if and where the sun is in the sky. Warm-only when the sun is down, mix of warm and cool when the sun is up with peak coolness at solar noon.