# Lights

**URL:** <https://community.homey.app/t/lights/10098>\
**Category:** Flows\
**Created:** [March 4, 2019, 9:56pm UTC](https://community.homey.app/t/lights/10098 "2019-03-04T21:56:45Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [March 5, 2019, 3:04am UTC](https://community.homey.app/t/lights/10098/5 "2019-03-05T03:04:13Z")

</div>

If you are looking for the simplest solution (or others seeing this in the future) it would be to turn the lights off after a set number of hours rather then at a specific time.

> [@\[Beginner\] Smart Porch Light Tutorial](https://community.homey.app/t/beginner-smart-porch-light-tutorial/4512/7):
>
> {then} -\> [delay] Now that our lights are turning on when we want and out LED ring is behaving correctly, we want to make sure the porch light doesn’t accidentally stay on all night. Which is much easier then it sounds. Delays allow action to be triggered at the when the flow runs, but for it to not occur until a later time specified by us. We want it so that if the light is turned on when the sun sets, to then turn off the light after 3 hours. Ingredients [Fibaro Switch](https://apps.athom.com/app/com.fibaro) (But you can use a…

Just set a turn off when ever the sun sets, with a (for example ) three hour delay.

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

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/9/97b2c592b96db486d1d6603f845498f257a62a66.jpeg)

If it has to be 11:15pm then it looks like @Fkey has you covered :P-)

---

_[View the full topic](https://community.homey.app/t/lights/10098)._
