# DIY circadian rhythm based lighting

**URL:** <https://community.homey.app/t/diy-circadian-rhythm-based-lighting/33348>\
**Category:** Developers\
**Tags:** app, homeyscript, flow\
**Created:** [August 7, 2020, 1:17pm UTC](https://community.homey.app/t/diy-circadian-rhythm-based-lighting/33348 "2020-08-07T13:17:53Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![Fac3](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fac3/32/4550_2.png) [@Fac3](https://community.homey.app/u/Fac3)\
**Post date:** [May 18, 2021, 6:04pm UTC](https://community.homey.app/t/diy-circadian-rhythm-based-lighting/33348/17 "2021-05-18T18:04:08Z")

</div>

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:

[https://homey.app/f/jcaF0C](https://homey.app/f/jcaF0C)

[https://homey.app/f/T4fF0C](https://homey.app/f/T4fF0C)

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.

---

_[View the full topic](https://community.homey.app/t/diy-circadian-rhythm-based-lighting/33348)._
