# Flow starting before sunset

**URL:** <https://community.homey.app/t/flow-starting-before-sunset/60711>\
**Category:** Questions & Help\
**Tags:** flow, homey-bridge\
**Created:** [February 19, 2022, 7:50pm UTC](https://community.homey.app/t/flow-starting-before-sunset/60711 "2022-02-19T19:50:26Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jos\_Gosen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jos_gosen/32/47789_2.png) [@Jos\_Gosen](https://community.homey.app/u/Jos_Gosen)\
**Post date:** [February 19, 2022, 7:50pm UTC](https://community.homey.app/t/flow-starting-before-sunset/60711/1 "2022-02-19T19:50:26Z")

</div>

Hello. I am using Homey bridge. I want to make a simple flow, starting one hour before sunset. It seems not to be possible in Bridge, being in beta. Any suggestion about how to spell this flow. Or just wait until beta stops? When will that be?

---

<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:** [February 19, 2022, 8:18pm UTC](https://community.homey.app/t/flow-starting-before-sunset/60711/2 "2022-02-19T20:18:32Z")

</div>



---

<div class="post-metadata">

**Author:** ![Jos\_Gosen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jos_gosen/32/47789_2.png) [@Jos\_Gosen](https://community.homey.app/u/Jos_Gosen)\
**Post date:** [February 19, 2022, 9:01pm UTC](https://community.homey.app/t/flow-starting-before-sunset/60711/3 "2022-02-19T21:01:10Z")

</div>

Not possible in beta of the Bridge. It only accepts numbers, no text.

---

<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:** [February 19, 2022, 9:18pm UTC](https://community.homey.app/t/flow-starting-before-sunset/60711/4 "2022-02-19T21:18:42Z")

</div>

I made this flow on the cloud/bridge homey…

Select  
“Date&Time”  
then “The Sun sets”  
Enter `60` in the empty white bar.

---

<div class="post-metadata">

**Author:** ![Jos\_Gosen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jos_gosen/32/47789_2.png) [@Jos\_Gosen](https://community.homey.app/u/Jos_Gosen)\
**Post date:** [February 19, 2022, 10:38pm UTC](https://community.homey.app/t/flow-starting-before-sunset/60711/5 "2022-02-19T22:38:58Z")

</div>

And then the action starts is sunset minus 60 minutes and not sunset + 60 minutes?  
That would be great!  
I will try this.  
Thanks, will be back with the result.

---

<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:** [February 19, 2022, 10:48pm UTC](https://community.homey.app/t/flow-starting-before-sunset/60711/6 "2022-02-19T22:48:33Z")

</div>

I didn’t test either, but if the trigger is:  
‘the sunset event is going to take place _in_ 60 minutes’  
that means to me: the trigger triggers 60mins before the sunset event.

You can test it by temporary altering your home location to a place where the sun is about to set 😉

---

<div class="post-metadata">

**Author:** ![Jos\_Gosen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jos_gosen/32/47789_2.png) [@Jos\_Gosen](https://community.homey.app/u/Jos_Gosen)\
**Post date:** [February 20, 2022, 8:18am UTC](https://community.homey.app/t/flow-starting-before-sunset/60711/7 "2022-02-20T08:18:41Z")

</div>

Good suggestion! I will try and come back to you.

---

<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:** [February 20, 2022, 5:39pm UTC](https://community.homey.app/t/flow-starting-before-sunset/60711/8 "2022-02-20T17:39:09Z")

</div>

![Screenshot_20220220-171526_One UI Home](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/b/fb51c528b779d2c91c23de8050e733ee89a9c319.jpeg)

Ik works, flow starts 60mins before sun event 🎉

---

<div class="post-metadata">

**Author:** ![Jos\_Gosen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jos_gosen/32/47789_2.png) [@Jos\_Gosen](https://community.homey.app/u/Jos_Gosen)\
**Post date:** [February 21, 2022, 5:54pm UTC](https://community.homey.app/t/flow-starting-before-sunset/60711/9 "2022-02-21T17:54:05Z")

</div>

Hi Peter,

Your assumption was right. 60 minutes means 60 minutes before sunset. 60 minutes is the Max, you cannot give in 90 minutes, or 61 minutes. But it works!  
Thanks a lot!

Jos Gosen

---

<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:** [February 21, 2022, 8:33pm UTC](https://community.homey.app/t/flow-starting-before-sunset/60711/10 "2022-02-21T20:33:02Z")

</div>

You’re welcome, Jos  
Idk why 60 is the max…

Just to compare:  
With the Sun Events app for the Pro the offset is also limited at 60 (or -60), but you have way more events, very flexible.

This event f.i. starts 60mins _after_ the evening twilight:

 ![Screenshot_20220221-212347_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/b/0b758c12ef217ca56f5ce8dcc36859272f3b1994.jpeg)

All triggers / conditions:

 ![Screenshot_20220221-212502_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/2/926cfa8008135d61f49fe7e6b9cb4a6865ab37a0.jpeg)

---

<div class="post-metadata">

**Author:** ![Jos\_Gosen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jos_gosen/32/47789_2.png) [@Jos\_Gosen](https://community.homey.app/u/Jos_Gosen)\
**Post date:** [February 21, 2022, 8:51pm UTC](https://community.homey.app/t/flow-starting-before-sunset/60711/11 "2022-02-21T20:51:04Z")

</div>

Hopefully it will be available in bridge also in time !

Jos Gosen

---

<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:** [February 21, 2022, 9:19pm UTC](https://community.homey.app/t/flow-starting-before-sunset/60711/12 "2022-02-21T21:19:16Z")

</div>

Well, don’t expect independent developer apps to become available for the bridge. Of course there are always exceptions.  
The best you can do is request at Athom what you’d like to be added to the standard flow options.

---

<div class="post-metadata">

**Author:** ![TdB](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tdb/32/34984_2.png) [@TdB](https://community.homey.app/u/TdB)\
**Post date:** [February 22, 2022, 2:36pm UTC](https://community.homey.app/t/flow-starting-before-sunset/60711/13 "2022-02-22T14:36:27Z")

</div>

Hi Jos,  
You could also use a delay of (let’s say) 22 hours and 40 minutes after sunset. The result is a trigger 80 minutes before sunset the next day.  
There is a slight deviation of course: it will trigger a minute early in winter and a minute late in the summer.  
Cheers,  
Tim

---

<div class="post-metadata">

**Author:** ![Jos\_Gosen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jos_gosen/32/47789_2.png) [@Jos\_Gosen](https://community.homey.app/u/Jos_Gosen)\
**Post date:** [February 22, 2022, 3:18pm UTC](https://community.homey.app/t/flow-starting-before-sunset/60711/14 "2022-02-22T15:18:54Z")

</div>

Thanks, I will try! And let you know.

Jos Gosen

---

<div class="post-metadata">

**Author:** ![Roy77](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/roy77/32/48491_2.png) [@Roy77](https://community.homey.app/u/Roy77)\
**Post date:** [March 4, 2022, 12:33pm UTC](https://community.homey.app/t/flow-starting-before-sunset/60711/15 "2022-03-04T12:33:56Z")

</div>

Hi. Question regarding this, how does the Bridge know, when sun sets? The Sun Event app, for ex, only works on the Pro.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [March 4, 2022, 12:37pm UTC](https://community.homey.app/t/flow-starting-before-sunset/60711/16 "2022-03-04T12:37:17Z")

</div>

> [@Roy77](#):
>
> how does the Bridge know, when sun sets?

It’s not the Bridge that knows, it’s Homey Cloud. Sun rise/set times can be calculated and depend on your location.

---

<div class="post-metadata">

**Author:** ![Jos\_Gosen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jos_gosen/32/47789_2.png) [@Jos\_Gosen](https://community.homey.app/u/Jos_Gosen)\
**Post date:** [March 4, 2022, 3:18pm UTC](https://community.homey.app/t/flow-starting-before-sunset/60711/17 "2022-03-04T15:18:16Z")

</div>

It works! Good suggestion!

Jos Gosen
