DIY circadian rhythm based lighting

I did it much easier… Sun Events app has a color temperature tag which changes during the day the right way.

The only issue was to solve, this value is in Kelvin, however I need to transform it to percentage because Homey can set percentage.

Here you are:

Works flawless, but you need CCT light source or RGB-CCT because RGBW solutions are too red or too blue at 100% and 0%, while CCT gives the best result.