# Flow help for turning on and then turning off later

**URL:** <https://community.homey.app/t/flow-help-for-turning-on-and-then-turning-off-later/141009>\
**Category:** Questions & Help\
**Tags:** z-wave, flow, advancedflow\
**Created:** [August 3, 2025, 7:05pm UTC](https://community.homey.app/t/flow-help-for-turning-on-and-then-turning-off-later/141009 "2025-08-03T19:05:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Docyak](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/docyak/32/120982_2.png) [@Docyak](https://community.homey.app/u/Docyak)\
**Post date:** [August 3, 2025, 7:05pm UTC](https://community.homey.app/t/flow-help-for-turning-on-and-then-turning-off-later/141009/1 "2025-08-03T19:05:04Z")

</div>

I want my lights to go on before sunset and then to go off 6 hours later. Does this flow do that?

Also is there a way where I can specify instead of 6 hours later, that it should go off at a certain time?

 ![Picture1](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/f/9f43efbf10d93b48d4f5543eb789e7792f3dd19d.png)

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [August 3, 2025, 7:27pm UTC](https://community.homey.app/t/flow-help-for-turning-on-and-then-turning-off-later/141009/2 "2025-08-03T19:27:22Z")

</div>

Instead of using the 360 min wait, you can use the [Chronograph](https://homey.app/en-nl/app/nl.fellownet.chronograph/Chronograph/) app to initiate a timer of 6 hours. This replaced the 360 wait card.

 ![IMG_2050](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/a/1ad5c3879f4b3d43d50e49e1150b3d734857adbb.jpeg)

Also remove the turn off light card. Next add a second flow that turns off the light after the timer completes (use the available WHEN card for the latter as trigger).

 ![IMG_2051](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/7/5734edbca6efc046de7e71cb25f968130b3abbbd.jpeg)

---

<div class="post-metadata">

**Author:** ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)\
**Post date:** [August 3, 2025, 8:00pm UTC](https://community.homey.app/t/flow-help-for-turning-on-and-then-turning-off-later/141009/3 "2025-08-03T20:00:44Z")

</div>

> [@Docyak](#):
>
> Does this flow do that?

The proof of the pudding is in the eating, i.e. just test it 😁

---

<div class="post-metadata">

**Author:** ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)\
**Post date:** [August 3, 2025, 8:14pm UTC](https://community.homey.app/t/flow-help-for-turning-on-and-then-turning-off-later/141009/4 "2025-08-03T20:14:02Z")

</div>

In the Netherlands the sun will set at 22:04 on june 21st. So the lights turn on at 21:04 and turn off at 3:04

On december 21st the sun will set at 16:30. So the lights turn on at 15:30 and turn off at 21:30.

I don’t think you really want that.

Turning the lights off at a fixed time:

WHEN

Time is 23:00

THEN

Turn off lights
