# \[APP\]\[Pro\] Sun Events - Triggers you at certain positions of the sun

**URL:** <https://community.homey.app/t/app-pro-sun-events-triggers-you-at-certain-positions-of-the-sun/71043>\
**Category:** Apps\
**Tags:** homey-pro\
**Created:** [October 23, 2022, 2:24pm UTC](https://community.homey.app/t/app-pro-sun-events-triggers-you-at-certain-positions-of-the-sun/71043 "2022-10-23T14:24:16Z")\
**Posts on this page:** 1\
**Showing post:** 27

<div class="post-metadata">

**Author:** ![Geronimo206](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/geronimo206/32/29921_2.png) [@Geronimo206](https://community.homey.app/u/Geronimo206)\
**Post date:** [December 26, 2022, 10:15pm UTC](https://community.homey.app/t/app-pro-sun-events-triggers-you-at-certain-positions-of-the-sun/71043/27 "2022-12-26T22:15:55Z")

</div>

There are a couple ways to do this but I use this formula based on the “kelvin” value of this app (sorry it’s in Dutch, it’s the “calculate” build in logic thingy):

 ![Schermafbeelding 2022-12-26 om 22.42.50](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/d/0d1caee4e695c5c91667d23596c3e9fe11c6266b.png)

This exact formula gives a value between 0 (cold) and 1 (warm) depending on how strong the sunlight should be without clouds on any given day (so it’s not ACTUAL sunlight, FIY). Als keep in mind that 0 is really cold, so you might want to tweak it to only let it go to 0.25 or something in your case if you don’t like the “hospital” light the 0 value gives. For me it translates to something like this (the curve is obviously bigger in summertime because the days are longer):

 ![Schermafbeelding 2022-12-26 om 22.48.17](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/0/00771dd881e4bbefb5f479cbd88a1a796ccefb57.jpeg)

And to change any given lamp you just let a flow run every five minutes (or on “kelvin change” or on “lamp on”) to change the temperature of all the lights to the relevant kelvin value of the moment:

 ![Schermafbeelding 2022-12-26 om 22.52.55](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/d/5daadc2a526819a6ea49cd00385b303388f95ea0.png)

I also let this kelvin value have a tiny effect on the brightness of my lamps (a gradual +0.1 when kelvin is highest and +0 when it’s lowest), besides also mainly using lux sensors to auto change the brightness (where more light outside means the lights inside get brighter as well). Because only changing the temperature was not enough for me. I also want bright lights during the day and dim lights when it’s night (automagically).

This works really well in my case but you might have to experiment a bit for your specific setup (I use mostly non Philips Hue brands of smart lights).

---

_[View the full topic](https://community.homey.app/t/app-pro-sun-events-triggers-you-at-certain-positions-of-the-sun/71043)._
