# Getting flow to trigger through Sun Events

**URL:** <https://community.homey.app/t/getting-flow-to-trigger-through-sun-events/14734>\
**Category:** Flows\
**Created:** [June 24, 2019, 9:22am UTC](https://community.homey.app/t/getting-flow-to-trigger-through-sun-events/14734 "2019-06-24T09:22:25Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![HVB83](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hvb83/32/9827_2.png) [@HVB83](https://community.homey.app/u/HVB83)\
**Post date:** [June 24, 2019, 9:22am UTC](https://community.homey.app/t/getting-flow-to-trigger-through-sun-events/14734/1 "2019-06-24T09:22:25Z")

</div>

Hi,

I’m getting started with Homey and love the stability I find so far, compared to other systems I’ve tried in the past. Snappy, easy to configure.

What I haven’t been able to get working though, is a flow that is executed between certain times. I installed Sun Events and gave it a go. With this flow, it doesn’t switch on at all:

 ![39](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/4/4f24fd63d3fff1cce2cc23c041c85d064195bf61.png)

If I leave out the Sun Events card the dimmer works, if I add just one time fire “after x-moment” it also works, just not if I try to set an “between this and that moment” card…

Any suggestions on what I’m doing wrong here?

---

<div class="post-metadata">

**Author:** ![Jamie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jamie/32/5274_2.png) [@Jamie](https://community.homey.app/u/Jamie)\
**Post date:** [June 24, 2019, 4:47pm UTC](https://community.homey.app/t/getting-flow-to-trigger-through-sun-events/14734/2 "2019-06-24T16:47:38Z")

</div>

Sorry I don’t speak that language, so I dont know exactly what your’e trying to do. However have you tried to use the built in Homey date/time sunrise/sunset cards?

---

<div class="post-metadata">

**Author:** ![Neuron44](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/neuron44/32/9492_2.png) [@Neuron44](https://community.homey.app/u/Neuron44)\
**Post date:** [June 25, 2019, 8:38am UTC](https://community.homey.app/t/getting-flow-to-trigger-through-sun-events/14734/3 "2019-06-25T08:38:38Z")

</div>

@Jamie :

I’ll translate:

When  
The motion sensor is triggered

And  
The time is between early evening, golden hour 0  
End of the morgen, golden hour 0

Then  
(Well I guess you understand what this says) 😉

@HVB83  
I think I know what’s wrong. You want the flow to only work during the night. However, the app will most likely look at the evening and the morning of the same day.

So let’s say it’s 23.00 today (25-06-2019) and the motion sensor is triggered. The flow will check if the time is later than early evening of 25-06-2019 and earlier than the morning of 25-06-2019. As you will understand, this is never possible!

I would suggest you use the date & time (datum en tijd in Dutch) flow cards as Jamie suggests. However, if you wish to use the sun events app, you can try turning the two moments around, so it reads:  
Het is tussen:  
Einde Ochtend gouden uur 0  
Begin avond gouden uur 0

And then inverse the flow card. This is possible with a lot of flow cards (called ‘Omkeren’ in Dutch). Hope you understand what I mean. If you don’t, PM me so i can tell you in Dutch.

Yet another option would be to split this in two flow cards.  
One saying it’s later than Begin avond gouden uur 0  
And another saying it’s earlier than Einde ochtend gouden uur 0  
When you split then by the ‘or’-function (press, hold and drag down a little bit), this should work to.

---

<div class="post-metadata">

**Author:** ![HVB83](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hvb83/32/9827_2.png) [@HVB83](https://community.homey.app/u/HVB83)\
**Post date:** [June 25, 2019, 1:35pm UTC](https://community.homey.app/t/getting-flow-to-trigger-through-sun-events/14734/4 "2019-06-25T13:35:43Z")

</div>

Ahhhh, silly me… Thanks guys, made some changes to the flow accordingly and will report back later tonight to see if it works! 😅

---

<div class="post-metadata">

**Author:** ![HVB83](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hvb83/32/9827_2.png) [@HVB83](https://community.homey.app/u/HVB83)\
**Post date:** [June 26, 2019, 12:52pm UTC](https://community.homey.app/t/getting-flow-to-trigger-through-sun-events/14734/5 "2019-06-26T12:52:38Z")

</div>

It’s working now guys, thanks a lot!

---

<div class="post-metadata">

**Author:** ![Neuron44](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/neuron44/32/9492_2.png) [@Neuron44](https://community.homey.app/u/Neuron44)\
**Post date:** [June 26, 2019, 3:01pm UTC](https://community.homey.app/t/getting-flow-to-trigger-through-sun-events/14734/6 "2019-06-26T15:01:29Z")

</div>

Great to hear, enjoy!

---

<div class="post-metadata">

**Author:** ![Daniel\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_s/32/24881_2.png) [@Daniel\_S](https://community.homey.app/u/Daniel_S)\
**Post date:** [February 9, 2020, 7:28am UTC](https://community.homey.app/t/getting-flow-to-trigger-through-sun-events/14734/7 "2020-02-09T07:28:23Z")

</div>

Hi, i would steal this topic. What is the logic of the card “Event is after”? There is a sun event and time. How would you interpret?

 ![Screenshot_2020-02-09-08-24-10-523_app.homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/c/9c416e45d8afb0239d60148941975bd037afcc03.jpeg)  
I would like to make flow like Between events but instead there is one sunevent and second is time. Is that possible? E.g. turn on lights between 23h and Sunrise. Thanks

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [February 9, 2020, 5:52pm UTC](https://community.homey.app/t/getting-flow-to-trigger-through-sun-events/14734/8 "2020-02-09T17:52:46Z")

</div>

you need 2 flows:  
If 23:00 Then switch light On  
If Sunrise Then switch light Off

---

<div class="post-metadata">

**Author:** ![Daniel\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_s/32/24881_2.png) [@Daniel\_S](https://community.homey.app/u/Daniel_S)\
**Post date:** [February 21, 2020, 10:27am UTC](https://community.homey.app/t/getting-flow-to-trigger-through-sun-events/14734/9 "2020-02-21T10:27:23Z")

</div>

Hi guys. I am quite confused after update in Sun Event app wich renamed to Tomorrows events. I need to set up the period between sunrise and sunset. It offers only tomorrows events but it in description of the app it says it checks events within the same day. The following setting does not trigger the whole day at all. If i invert it triggers all day.

 ![Screenshot_2020-02-21-11-20-59-885_app.homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/8/e86bb6f21467c9dc1fd2373a8170de2b1044af33.jpeg)

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [February 21, 2020, 10:35am UTC](https://community.homey.app/t/getting-flow-to-trigger-through-sun-events/14734/10 "2020-02-21T10:35:07Z")

</div>

Depends on the trigger for this flow, please show the whole flow, so someone can help you.Use Share flow.

---

<div class="post-metadata">

**Author:** ![Daniel\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_s/32/24881_2.png) [@Daniel\_S](https://community.homey.app/u/Daniel_S)\
**Post date:** [February 21, 2020, 10:44am UTC](https://community.homey.app/t/getting-flow-to-trigger-through-sun-events/14734/11 "2020-02-21T10:44:25Z")

</div>

Do you think so? I dont. Its only one of the AND condition. [Shared Flow | Homey](https://homey.app/f/WS2mD1)

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [February 21, 2020, 11:20am UTC](https://community.homey.app/t/getting-flow-to-trigger-through-sun-events/14734/12 "2020-02-21T11:20:07Z")

</div>

@Daniel_S This night I’ll test it,  
alternatively you can use  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/e/8ed0596b09cebb5b127b6385108945c1fe1f5afb.png)

After Sunset AND Before Sunrise

---

<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:** [February 21, 2020, 11:38am UTC](https://community.homey.app/t/getting-flow-to-trigger-through-sun-events/14734/13 "2020-02-21T11:38:25Z")

</div>

There was a bug in the update to version 0.3.5, I talked to Marcel Timmermans at GitHub about it.

> <https://github.com/magtimmermans/com.cyclone-software.sunevents/issues/30>
>
> Hello Marcel,
> For example, if I select the sun event "It is between..." in the "And..." section, it is no longer possible...

In the meantime the app has been updated to version 0.3.7 and the bug has been fixed:  
 ![Bildschirmfoto 2020-02-21 um 12.33.11](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/0/50a5d5c983c9c5110077a41e51da682948ae170c.png)

 ![IMG_0686.PNG](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/2/b27490a3ab43176bdd2c4a39b2c9ff7e9cbccf46.jpeg)

---

<div class="post-metadata">

**Author:** ![Daniel\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_s/32/24881_2.png) [@Daniel\_S](https://community.homey.app/u/Daniel_S)\
**Post date:** [February 21, 2020, 12:17pm UTC](https://community.homey.app/t/getting-flow-to-trigger-through-sun-events/14734/14 "2020-02-21T12:17:22Z")

</div>

Many thanks, i didnt realize the events B for same day are back. Now it works again as before 👍

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [February 22, 2020, 5:08pm UTC](https://community.homey.app/t/getting-flow-to-trigger-through-sun-events/14734/15 "2020-02-22T17:08:01Z")

</div>

[https://homey.app/f/M3\_SJ1](https://homey.app/f/M3_SJ1)  
v0.3.7 this flow works only from sun-down until midnight, after midnight there are no messages written to SimpleLog anymore!  
So you better use:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/e/9effcda0fa11f3ff1b8240065c9818de472fa7e4.png)  
After Sunset AND Before Sunrise
