# Sunset + 30 minutes logic

**URL:** https://community.homey.app/t/sunset-30-minutes-logic/63160
**Category:** Flows
**Tags:** flow, homey-pro
**Created:** [April 29, 2022, 7:07pm UTC](https://community.homey.app/t/sunset-30-minutes-logic/63160 "2022-04-29T19:07:05Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Jeffrey\_Ellenburg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeffrey_ellenburg/32/33220_2.png) [@Jeffrey\_Ellenburg](https://community.homey.app/u/Jeffrey_Ellenburg)
#### Post date: [April 29, 2022, 7:07pm UTC](https://community.homey.app/t/sunset-30-minutes-logic/63160/1 "2022-04-29T19:07:05Z")

</div>

I am looking for a "sunset + 30 minutes“ logic for turning on my patio lights. Is there a function to delay the sunset?

---

<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: [April 29, 2022, 7:31pm UTC](https://community.homey.app/t/sunset-30-minutes-logic/63160/2 "2022-04-29T19:31:38Z")

</div>

If…  
The sun sets  
Then…  
Turn patio lights on, delayed by 30min

---

<div class="post-metadata">

### Author: ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)
#### Post date: [April 29, 2022, 7:32pm UTC](https://community.homey.app/t/sunset-30-minutes-logic/63160/3 "2022-04-29T19:32:36Z")

</div>

Or look at

> **[Sun Events](https://homey.app/en-us/app/com.cyclone-software.sunevents/Sun-Events/)**
>
> Triggers you at certain positions of the sun.

Btw not just for exactly 30 min. afer but also for other options.

---

<div class="post-metadata">

### Author: ![Jeffrey\_Ellenburg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeffrey_ellenburg/32/33220_2.png) [@Jeffrey\_Ellenburg](https://community.homey.app/u/Jeffrey_Ellenburg)
#### Post date: [April 29, 2022, 9:18pm UTC](https://community.homey.app/t/sunset-30-minutes-logic/63160/4 "2022-04-29T21:18:33Z")

</div>

OF COURSE!

Delay in turning on the lights….

I was thinking too complicated with sunset + 30

Thanks!

---

<div class="post-metadata">

### Author: ![Jeffrey\_Ellenburg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeffrey_ellenburg/32/33220_2.png) [@Jeffrey\_Ellenburg](https://community.homey.app/u/Jeffrey_Ellenburg)
#### Post date: [April 29, 2022, 9:20pm UTC](https://community.homey.app/t/sunset-30-minutes-logic/63160/5 "2022-04-29T21:20:51Z")

</div>

Thanks, „dusk“ is what I am looking for 🕶

---

<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: [April 29, 2022, 9:48pm UTC](https://community.homey.app/t/sunset-30-minutes-logic/63160/6 "2022-04-29T21:48:27Z")

</div>

Additional, with Sun Events app it’s possible to set a negative offset of max. -60 minutes (besides a max. +60 minutes offset).  
That means, an event with an offset of -60 will trigger the flow 60 minutes after the event.

About my delayed flowcard hint:  
One big disadvantage of adding long(er) flow action delays is, they’re not “remembered” after a power outage or a Homey reboot while the actual delay ‘flowtimer’ is running.  
So the flow got triggered, but it never fires the delayed card without any notification.  
For a light that’s not a real issue, but a pump or heater shouldn’t be ‘forgotten’.

---

<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: [April 30, 2022, 3:01pm UTC](https://community.homey.app/t/sunset-30-minutes-logic/63160/7 "2022-04-30T15:01:47Z")

</div>

Double topic

> [@Zonsondergang + 30 minuten“ logica](https://community.homey.app/t/zonsondergang-30-minuten-logica/63161):
>
> Ik ben op zoek naar een „zonsondergang + 30 minuten“ logica voor het inschakelen van mijn terrasverlichting. Is er een functie om de zonsondergang te vertragen?
