# \[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:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![thobu](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thobu/32/18357_2.png) [@thobu](https://community.homey.app/u/thobu)\
**Post date:** [December 26, 2022, 11:16am UTC](https://community.homey.app/t/app-pro-sun-events-triggers-you-at-certain-positions-of-the-sun/71043/22 "2022-12-26T11:16:15Z")

</div>

Hey,

- I was testing a simple trigger, like “When it’s …” → “send a notification with the available time tag”.
- Offset = 0.
- re accurate, I compared the times with another weather service, the deviations are in the 1-2 mins
- Did not downgrade yet. I don’t need the time tag, this was just a test. The trigger works at the set time, so I think it’s a minor issue but maybe I’m missing something.

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [December 26, 2022, 12:31pm UTC](https://community.homey.app/t/app-pro-sun-events-triggers-you-at-certain-positions-of-the-sun/71043/23 "2022-12-26T12:31:47Z")

</div>

I will test it today with 2 events. However, I still have the version v0.8.4 installed.

The problem could possibly also be caused by a Homey firmware update. It is reported again and again that the time setting is no longer correct after a Homey firmware update. I am not sure if a Homey reboot could solve the problem, but you can try it.

---

<div class="post-metadata">

**Author:** ![thobu](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thobu/32/18357_2.png) [@thobu](https://community.homey.app/u/thobu)\
**Post date:** [December 26, 2022, 12:43pm UTC](https://community.homey.app/t/app-pro-sun-events-triggers-you-at-certain-positions-of-the-sun/71043/24 "2022-12-26T12:43:59Z")

</div>

Ok, I can do that … seems a reboot every now and then mitigates a few issues anyway – if no delays are currently running

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [December 26, 2022, 3:27pm UTC](https://community.homey.app/t/app-pro-sun-events-triggers-you-at-certain-positions-of-the-sun/71043/25 "2022-12-26T15:27:11Z")

</div>

> [@DirkG](#):
>
> The problem could possibly also be caused by a Homey firmware update. It is reported again and again that the time setting is no longer correct after a Homey firmware update

That is possible, although it didn’t happen here anymore since the fix in July.

 ![Screenshot_20221226-162245_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/7/17685c53a00a58dc0191cd004f23536c43f90640.jpeg)

---

<div class="post-metadata">

**Author:** ![FranklyEpic](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/franklyepic/32/48229_2.png) [@FranklyEpic](https://community.homey.app/u/FranklyEpic)\
**Post date:** [December 26, 2022, 9:37pm UTC](https://community.homey.app/t/app-pro-sun-events-triggers-you-at-certain-positions-of-the-sun/71043/26 "2022-12-26T21:37:51Z")

</div>

Can you please advise how, you would use the kelvin tag, or other available tages to control the temperature of lights? I have a number of Philips Hue lights all ambient white, so its looking for a value between 0 - 100.

Many thanks,  
Nick

---

<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).

---

<div class="post-metadata">

**Author:** ![FranklyEpic](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/franklyepic/32/48229_2.png) [@FranklyEpic](https://community.homey.app/u/FranklyEpic)\
**Post date:** [December 27, 2022, 12:21am UTC](https://community.homey.app/t/app-pro-sun-events-triggers-you-at-certain-positions-of-the-sun/71043/28 "2022-12-27T00:21:09Z")

</div>

Thats a very cool hack!  
Can I ask how or from where are you getting the cicadian level variable?  
Its not showing for me and I have the app installed.

Thanks,  
Nick

---

<div class="post-metadata">

**Author:** ![MarcelT](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcelt/32/10042_2.png) [@MarcelT](https://community.homey.app/u/MarcelT)\
**Post date:** [December 27, 2022, 7:41am UTC](https://community.homey.app/t/app-pro-sun-events-triggers-you-at-certain-positions-of-the-sun/71043/29 "2022-12-27T07:41:04Z")

</div>

That’s the calculated variable stored in the logic part of homey.

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [December 27, 2022, 9:36am UTC](https://community.homey.app/t/app-pro-sun-events-triggers-you-at-certain-positions-of-the-sun/71043/30 "2022-12-27T09:36:50Z")

</div>

These are the results from the yesterdays test:

 ![IMG_1691](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/7/6759fe9e1a50959e93f58012591bfc767137f8ed.jpeg)

So everything is fine, but with v0.8.4.

@Peter_Kawa, ok, the bug seems to be fixed with Homey v8.0.3.  
@thobu, which FW do you use?

---

<div class="post-metadata">

**Author:** ![thobu](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thobu/32/18357_2.png) [@thobu](https://community.homey.app/u/thobu)\
**Post date:** [December 27, 2022, 9:49am UTC](https://community.homey.app/t/app-pro-sun-events-triggers-you-at-certain-positions-of-the-sun/71043/31 "2022-12-27T09:49:02Z")

</div>

> [@DirkG](#):
>
> which FW do you use?

8.1.1

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [December 27, 2022, 10:04am UTC](https://community.homey.app/t/app-pro-sun-events-triggers-you-at-certain-positions-of-the-sun/71043/32 "2022-12-27T10:04:21Z")

</div>

So i don’t know if it’s probably a bug in Sun Events App v1.0.2, or it’s a problem with some settings of your Homey, sorry. But there is no similar issue reported on [GitHub](https://github.com/magtimmermans/com.cyclone-software.sunevents/issues).

---

<div class="post-metadata">

**Author:** ![FranklyEpic](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/franklyepic/32/48229_2.png) [@FranklyEpic](https://community.homey.app/u/FranklyEpic)\
**Post date:** [December 27, 2022, 11:01am UTC](https://community.homey.app/t/app-pro-sun-events-triggers-you-at-certain-positions-of-the-sun/71043/33 "2022-12-27T11:01:54Z")

</div>

Thanks Marcel, sorry to be stupid but it is not showing for me, could you possibly provide a bullet point list of how to execute? Sorry to ask, this will be very changing for me.  
Nick

---

<div class="post-metadata">

**Author:** ![thobu](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thobu/32/18357_2.png) [@thobu](https://community.homey.app/u/thobu)\
**Post date:** [December 27, 2022, 11:05am UTC](https://community.homey.app/t/app-pro-sun-events-triggers-you-at-certain-positions-of-the-sun/71043/34 "2022-12-27T11:05:53Z")

</div>

hmm, here’s a screenshot of such a time diff.  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/5/1561b73e583c990072f602c27969e5ae98684dbc.png)

I’m not aware of any particular settings that involve time or time zone.

---

<div class="post-metadata">

**Author:** ![MarcelT](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcelt/32/10042_2.png) [@MarcelT](https://community.homey.app/u/MarcelT)\
**Post date:** [December 27, 2022, 11:50am UTC](https://community.homey.app/t/app-pro-sun-events-triggers-you-at-certain-positions-of-the-sun/71043/35 "2022-12-27T11:50:48Z")

</div>

Aha, i got it. I will show the universal time instead local. Will fix that i hope. This is the result off the new change off firmware in homey that now use finally always utc time.

---

<div class="post-metadata">

**Author:** ![MarcelT](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcelt/32/10042_2.png) [@MarcelT](https://community.homey.app/u/MarcelT)\
**Post date:** [December 27, 2022, 11:56am UTC](https://community.homey.app/t/app-pro-sun-events-triggers-you-at-certain-positions-of-the-sun/71043/36 "2022-12-27T11:56:35Z")

</div>

No problem .

1. you will create a new variable in the logic app. For example cardian level. (Numeric)
2. than create an automation that fill’s (calculate) this number. And run for example every minute.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/2/a2fda693d845e46452e7971ce23e811fac2df64a.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/0/b064fcef852c1ffe7f1bb22860a050ad1810252b.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/9/8938c7a6cef8e4ecf223e1a4dbe49a32c111f5c2.png)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/f/cfdb49d44fa9f38892a17abf0e0ff1bd4dbdc228.png)

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [December 27, 2022, 12:40pm UTC](https://community.homey.app/t/app-pro-sun-events-triggers-you-at-certain-positions-of-the-sun/71043/37 "2022-12-27T12:40:33Z")

</div>

> [@thobu](#):
>
> I’m not aware of any particular settings that involve time or time zone.

I meant the more or less build in settings in combination with the workaround that Peter already showed ([post #15](https://community.homey.app/t/app-pro-sun-events-update-sdk3/71043/15)).  
So why don’t you downgrade the app to the stable version and test it again? This way you can check if it is a possible error of the test version.

---

<div class="post-metadata">

**Author:** ![MarcelT](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcelt/32/10042_2.png) [@MarcelT](https://community.homey.app/u/MarcelT)\
**Post date:** [December 27, 2022, 4:12pm UTC](https://community.homey.app/t/app-pro-sun-events-triggers-you-at-certain-positions-of-the-sun/71043/38 "2022-12-27T16:12:35Z")

</div>

I have updated the test version, please try again.

---

<div class="post-metadata">

**Author:** ![thobu](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thobu/32/18357_2.png) [@thobu](https://community.homey.app/u/thobu)\
**Post date:** [December 28, 2022, 11:01am UTC](https://community.homey.app/t/app-pro-sun-events-triggers-you-at-certain-positions-of-the-sun/71043/39 "2022-12-28T11:01:02Z")

</div>

Thanks, but didn’t work  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/1/31e08dfbf9b0d40b743dbf3daf91676cb4995260.png)  
I’ll reboot and wait for a next event

---

<div class="post-metadata">

**Author:** ![MarcelT](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcelt/32/10042_2.png) [@MarcelT](https://community.homey.app/u/MarcelT)\
**Post date:** [December 28, 2022, 11:16am UTC](https://community.homey.app/t/app-pro-sun-events-triggers-you-at-certain-positions-of-the-sun/71043/40 "2022-12-28T11:16:01Z")

</div>

Can you explain in the screenshot what you display here? I mean is this the current time and a token?

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [December 28, 2022, 11:18am UTC](https://community.homey.app/t/app-pro-sun-events-triggers-you-at-certain-positions-of-the-sun/71043/41 "2022-12-28T11:18:10Z")

</div>

Actually I updated to v1.0.3 and it works for me like it should:

 ![IMG_1694](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/e/ee511cb16b19e204077820c17ab0d52d8c0f266f.jpeg)

 ![IMG_1696](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/a/8a99eb4d19b64fc8e0680e4ec3bfc7e409fcd08d.jpeg)

 ![IMG_1695](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/6/d6682f136ebd2de07811a45c764d339fe6283c30.jpeg)

[Previous page](https://community.homey.app/t/app-pro-sun-events-triggers-you-at-certain-positions-of-the-sun/71043.md?page=1)

[Next page](https://community.homey.app/t/app-pro-sun-events-triggers-you-at-certain-positions-of-the-sun/71043.md?page=3)
