# Help with flow That turn the lights on

**URL:** <https://community.homey.app/t/help-with-flow-that-turn-the-lights-on/19500>\
**Category:** Questions & Help\
**Created:** [October 19, 2019, 4:04pm UTC](https://community.homey.app/t/help-with-flow-that-turn-the-lights-on/19500 "2019-10-19T16:04:36Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andreas\_Kjork](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andreas_kjork/32/8354_2.png) [@Andreas\_Kjork](https://community.homey.app/u/Andreas_Kjork)\
**Post date:** [October 19, 2019, 4:04pm UTC](https://community.homey.app/t/help-with-flow-that-turn-the-lights-on/19500/1 "2019-10-19T16:04:36Z")

</div>

Hello. I just got a problem. I have One flow That turns the lights on when the sun sets in 60min if someone is Home. And i have a flow That turn the lights on when someone comes Home and no one is at Home if its after sunset.

Today i got Home betveen 60min to sunset and sunset. So the lights did not turn on.

How can i make a flow That turn the lights on if its betveen 60min to sunset and sunset when get Home.

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [October 19, 2019, 4:50pm UTC](https://community.homey.app/t/help-with-flow-that-turn-the-lights-on/19500/2 "2019-10-19T16:50:42Z")

</div>

U could make a timer with the countdown app.  
When sun sets in 60 minutes run the timer for 60 minutes.  
Then, when someone comes home AND timer is running then turn on the lights.  
Also plz keep in mind that when someone comes home, there is somebody home.  
So WHEN someone comes home AND there is nobody home is not gonna work.  
In that case u can better use “When first person came home”

---

<div class="post-metadata">

**Author:** ![Andreas\_Kjork](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andreas_kjork/32/8354_2.png) [@Andreas\_Kjork](https://community.homey.app/u/Andreas_Kjork)\
**Post date:** [October 19, 2019, 5:08pm UTC](https://community.homey.app/t/help-with-flow-that-turn-the-lights-on/19500/3 "2019-10-19T17:08:24Z")

</div>

alright. I Will try to make a flow with timer.

I use when someone comes home and nobody is home in other flows. Thats works fine

---

<div class="post-metadata">

**Author:** ![Andreas\_Kjork](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andreas_kjork/32/8354_2.png) [@Andreas\_Kjork](https://community.homey.app/u/Andreas_Kjork)\
**Post date:** [October 19, 2019, 5:28pm UTC](https://community.homey.app/t/help-with-flow-that-turn-the-lights-on/19500/4 "2019-10-19T17:28:07Z")

</div>

- List item ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/d/1d92fcc474ca8eb2bb796083d8657c835adb7ef8.jpeg) ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/b/1bc5972fbef97e9d28490adf7c570584c5fb0792.jpeg) ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/9/c920ecdf6eda76179ccab4ecdf419e486c5b286b.jpeg) ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/a/6aeff8ca625cff598acdf2cc0162f56c2ec6c705.jpeg) ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/f/6f88d8071904d1eb71c0d5490fe859419562904f.jpeg) ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/d/1d7b0fe279306fe925d9807971ec15b3a4ed35c9.jpeg)

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [October 19, 2019, 5:34pm UTC](https://community.homey.app/t/help-with-flow-that-turn-the-lights-on/19500/5 "2019-10-19T17:34:52Z")

</div>

Doesn’t look like what I’ve suggested but if it works for u then its fine with me.  
Like “ Then, when someone comes home AND timer is running then turn on the lights” I don’t see in ur flows.

---

<div class="post-metadata">

**Author:** ![Andreas\_Kjork](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andreas_kjork/32/8354_2.png) [@Andreas\_Kjork](https://community.homey.app/u/Andreas_Kjork)\
**Post date:** [October 19, 2019, 5:49pm UTC](https://community.homey.app/t/help-with-flow-that-turn-the-lights-on/19500/6 "2019-10-19T17:49:04Z")

</div>

I could not find the right Cards for That. Could you try?

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [October 19, 2019, 5:56pm UTC](https://community.homey.app/t/help-with-flow-that-turn-the-lights-on/19500/7 "2019-10-19T17:56:08Z")

</div>

The card is called "Timer not running.

![chrome_2019-10-19_19-54-26](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/0/004f6d47f5887f2be0e37af3766589eef0a293aa.png)

After that u slide the invert button on:

![chrome_2019-10-19_19-54-08](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/1/216a7afb828095ce674c16a12d71673fa683affe.png)

Then it becomes running instead of not running:

![chrome_2019-10-19_19-53-57](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/e/7e225a13dcfcb9580ebc92cbadd13d6d17f3d8d5.png)

Then u get something like this:

 ![chrome_2019-10-19_20-07-24](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/1/b1db9ca5f3e4d22122b7891633e7dad55eb7c5ea.png)

 ![chrome_2019-10-19_19-57-37](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/e/5ee13306e5a62bddc4f5aceea20b4cef0e608d7a.png)

---

<div class="post-metadata">

**Author:** ![Andreas\_Kjork](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andreas_kjork/32/8354_2.png) [@Andreas\_Kjork](https://community.homey.app/u/Andreas_Kjork)\
**Post date:** [October 19, 2019, 6:16pm UTC](https://community.homey.app/t/help-with-flow-that-turn-the-lights-on/19500/8 "2019-10-19T18:16:52Z")

</div>

Oh. Thanks
