# Validation of earlier or later than a certain time

**URL:** <https://community.homey.app/t/validation-of-earlier-or-later-than-a-certain-time/142647>\
**Category:** Flows\
**Tags:** flow\
**Created:** [September 5, 2025, 9:23pm UTC](https://community.homey.app/t/validation-of-earlier-or-later-than-a-certain-time/142647 "2025-09-05T21:23:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard\_Biz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/richard_biz/32/16757_2.png) [@Richard\_Biz](https://community.homey.app/u/Richard_Biz)\
**Post date:** [September 5, 2025, 9:23pm UTC](https://community.homey.app/t/validation-of-earlier-or-later-than-a-certain-time/142647/1 "2025-09-05T21:23:11Z")

</div>

Is there a way to make a flow with “time between” or “time is after sunset” other than this example

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/c/7cebe431829aafcbfa287103ef43bab85d73f9a3.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:** [September 6, 2025, 9:44am UTC](https://community.homey.app/t/validation-of-earlier-or-later-than-a-certain-time/142647/2 "2025-09-06T09:44:36Z")

</div>

It’s possible with the [Sun Events](https://homey.app/en-de/app/com.cyclone-software.sunevents/Sun-Events/test/) app. But this app works just with a Homey Pro.

---

<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:** [September 6, 2025, 12:29pm UTC](https://community.homey.app/t/validation-of-earlier-or-later-than-a-certain-time/142647/3 "2025-09-06T12:29:22Z")

</div>

> [@Richard\_Biz](#):
>
> a flow with “time between”

“Time is between x and x” is an onboard flowcard:

 ![Screenshot_20250906_142828_Firefox](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/c/4ce0c39137d953096a1e89eefeb8fe6959f44add.jpeg)

.

> [@Richard\_Biz](#):
>
> “time is after sunset”

This is also an onboard flow card:

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

_ **However** _: that card is not valid after midnight (new day); is best to use the “it is daytime” card inverted, it becomes “it is nighttime”:

 ![Screenshot_20250906_143122_Firefox](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/1/817ecd4a3db53d54b2f3ce37915db509cd1c4d2e.jpeg)

---

<div class="post-metadata">

**Author:** ![Martijn\_Beekhuizen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_beekhuizen/32/80103_2.png) [@Martijn\_Beekhuizen](https://community.homey.app/u/Martijn_Beekhuizen)\
**Post date:** [September 25, 2025, 7:45am UTC](https://community.homey.app/t/validation-of-earlier-or-later-than-a-certain-time/142647/4 "2025-09-25T07:45:10Z")

</div>

If you’re specifically looking for triggers related to sunrise or sunset, the [Zonnestanden](https://homey.app/nl-nl/app/com.cyclone-software.sunevents/Zonnestanden/) app is a good solution.

It offers many cards, including one with the condition “between two sun event moments.”

For example, I’ve used it as an **AND** card that checks if the time is between 60 minutes before sunset and sunset

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/f/4fee740bd32e15012ac97b10d7b10f531473a74f.png)
