# 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:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gy\_1977](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gy_1977/32/16573_2.png) [@gy\_1977](https://community.homey.app/u/gy_1977)\
**Post date:** [March 4, 2019, 9:56pm UTC](https://community.homey.app/t/lights/10098/1 "2019-03-04T21:56:46Z")

</div>

Hi I have outdoor lights where I have created a flow to switch them on at sunset.

I then have another flow to switch them off at 11.15pm.

Can this be combined in to one flow and if so how would you achieve it

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [March 4, 2019, 10:24pm UTC](https://community.homey.app/t/lights/10098/2 "2019-03-04T22:24:33Z")

</div>

I do not see an easy way to have one fliow.  
If the “on” time was fixed you could add an “off” with a delay, but sundown is not a fixxed time.

On the other hand:  
Why do you want to merge them into one flow?  
It would make the flow more complex. And therefore more risk on issues.

I would even recommend to spilt both flows into 2 flows:  
A trigger flow: when sundown, then start flow “outdoor lights on”  
And a action flow (a scene) “outdoor lights on”: When this flow is started Then switch on outdoor light 1, outdoor light 2.

This way you can use the 1st flow to starten even more flowd (at sundown) like close curtains etc

And the second flow can also be triggered by other flows like when 6:40 AND sun is not up then start flow “ outdoor lights on”

Adds much more flexibility…

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

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

---

<div class="post-metadata">

**Author:** ![gy\_1977](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gy_1977/32/16573_2.png) [@gy\_1977](https://community.homey.app/u/gy_1977)\
**Post date:** [March 4, 2019, 10:39pm UTC](https://community.homey.app/t/lights/10098/3 "2019-03-04T22:39:07Z")

</div>

Good food for thought, thanks. I’m new to Homey and wasn’t sure if I was being a bit too basic but looks like I’m not 😁

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [March 4, 2019, 10:51pm UTC](https://community.homey.app/t/lights/10098/4 "2019-03-04T22:51:43Z")

</div>

What I did is create a few “scenes” = action flows that set the lights to a desired state:  
They start with a “when this flow is started”

- livingroom dimmed -\> set all my lights in the livingroom to a preferred dimmed level and color usef every evening
- livingroom bright= Sets the light to brighter and whiter  
These scenes are triggered by several trigger flows:  
1 when the cleaninglady is in, she needs a bit more light  
2 but also when motion is detected in the garden while I am off to bed  
3 or when my home allsrm is triggered or etc…

This way you do not need to define the scene every time  
And if you want to change the scene, you just change it once…

Good luck creating your flows!

---

<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-)
