# Lights before sunrise

**URL:** https://community.homey.app/t/lights-before-sunrise/56431
**Category:** Flows
**Tags:** tools, flow, homey-bridge
**Created:** [December 12, 2021, 9:18am UTC](https://community.homey.app/t/lights-before-sunrise/56431 "2021-12-12T09:18:17Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Moreis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/moreis/32/48286_2.png) [@Moreis](https://community.homey.app/u/Moreis)
#### Post date: [December 12, 2021, 9:18am UTC](https://community.homey.app/t/lights-before-sunrise/56431/1 "2021-12-12T09:18:17Z")

</div>

Hi, I just started with the homey bridge and create a simple flow:  
At 06:15  
And before sunrise  
Turn on lights (kaku)

However the flow doesn’t seem to go past the before sunrise part. Although it currently isn’t past sunrise at 06:15. I don’t understand why this isn’t working.

If I change it to: (then the flow does work)  
When this flow is started  
And before sunrise  
Turn on lights (kaku)

Can anyone help?

Kind regards

---

<div class="post-metadata">

### Author: ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)
#### Post date: [December 12, 2021, 9:34am UTC](https://community.homey.app/t/lights-before-sunrise/56431/2 "2021-12-12T09:34:29Z")

</div>

If you haven’t already then report it to Athom  
[support@athom.com](mailto:support@athom.com)

If I remember I will test it tomorrow morning on both Homey and Homey Pro to see if I get the same problem.

---

<div class="post-metadata">

### Author: ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)
#### Post date: [December 12, 2021, 9:35am UTC](https://community.homey.app/t/lights-before-sunrise/56431/3 "2021-12-12T09:35:33Z")

</div>

Try a flow that only triggers on a specific time (without the sunrise part) and see if that works. If not, perhaps the time settings on your Homey aren’t correct.

---

<div class="post-metadata">

### Author: ![Sapperdeflap](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sapperdeflap/32/33985_2.png) [@Sapperdeflap](https://community.homey.app/u/Sapperdeflap)
#### Post date: [December 12, 2021, 9:41am UTC](https://community.homey.app/t/lights-before-sunrise/56431/4 "2021-12-12T09:41:13Z")

</div>

Try testing the flow now (after sunset), check if the condition is marked with a green checkmark. If so, flip the condition, so it checks ‘after sunset’.

Unfortunately I had the same issue, this worked for me. Seemed like a bug in this card (using bridge)

Now I am using the condition ‘is nighttime’ which seems to work correct. Current flow when motion is detected on the stairs:

 ![Screenshot_2021-12-12-10-40-20-688_app.homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/a/0ae6a17753fb2d202b08e96a3c3cd2b026332418.jpeg)

EDIT: made an example for you, ran this test a few minutes ago:

 ![Screenshot_2021-12-12-10-54-33-920_app.homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/d/0d5355f548f6bcc40a5bbd43fc9250f6cff4b519.jpeg)

The conditions are marked as valid after testing now, but I am quite sure it is before sunset and after sunrise…

---

<div class="post-metadata">

### Author: ![Sapperdeflap](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sapperdeflap/32/33985_2.png) [@Sapperdeflap](https://community.homey.app/u/Sapperdeflap)
#### Post date: [December 12, 2021, 9:57am UTC](https://community.homey.app/t/lights-before-sunrise/56431/5 "2021-12-12T09:57:47Z")

</div>

I think on the bridge we don’t have the option to change time settings. Don’t know where the servers of homey are were our flows are running, but maybe that has something to do with it…

---

<div class="post-metadata">

### Author: ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)
#### Post date: [December 12, 2021, 10:18am UTC](https://community.homey.app/t/lights-before-sunrise/56431/6 "2021-12-12T10:18:31Z")

</div>

On Homey Pro you also can’t set the time/date directly, Homey finds the correct time for the location that you have configured.

Please let Athom know that there’s (yet another time/date-related) bug in the current version.

---

<div class="post-metadata">

### Author: ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)
#### Post date: [December 12, 2021, 10:28am UTC](https://community.homey.app/t/lights-before-sunrise/56431/7 "2021-12-12T10:28:06Z")

</div>

> [@Moreis](#):
>
> At 06:15  
> And before sunrise

This will only work when Sunrise is before 6:15 (european summer)

---

<div class="post-metadata">

### Author: ![Moreis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/moreis/32/48286_2.png) [@Moreis](https://community.homey.app/u/Moreis)
#### Post date: [December 12, 2021, 10:40am UTC](https://community.homey.app/t/lights-before-sunrise/56431/8 "2021-12-12T10:40:36Z")

</div>

Thank you all, for the help. Inverting before Sunset works.

---

<div class="post-metadata">

### Author: ![Sapperdeflap](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sapperdeflap/32/33985_2.png) [@Sapperdeflap](https://community.homey.app/u/Sapperdeflap)
#### Post date: [December 12, 2021, 11:34am UTC](https://community.homey.app/t/lights-before-sunrise/56431/9 "2021-12-12T11:34:09Z")

</div>

How do I do that?

---

<div class="post-metadata">

### Author: ![Sapperdeflap](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sapperdeflap/32/33985_2.png) [@Sapperdeflap](https://community.homey.app/u/Sapperdeflap)
#### Post date: [December 12, 2021, 11:36am UTC](https://community.homey.app/t/lights-before-sunrise/56431/10 "2021-12-12T11:36:31Z")

</div>

If the reason is the same as for me, it is because he does not want the flow to trigger when it’s after 0.00 for example. I am using this for my motion triggers lights in flow when I come down in the morning. I don’t want the lights to go on when I go to bed one day after 0.00

---

<div class="post-metadata">

### Author: ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)
#### Post date: [December 12, 2021, 11:44am UTC](https://community.homey.app/t/lights-before-sunrise/56431/11 "2021-12-12T11:44:04Z")

</div>

- Configuring your Homey’s location is done in the mobile app settings (don’t use “Find Homey’s location automatically”, set your location manually)
- If you think Homey has a bug, you can send an e-mail to [support@athom.com](mailto:support@athom.com)

---

<div class="post-metadata">

### Author: ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)
#### Post date: [December 12, 2021, 11:46am UTC](https://community.homey.app/t/lights-before-sunrise/56431/12 "2021-12-12T11:46:13Z")

</div>

Thanks for explaining, but I didn’t ask for that, every one has his own reasons for wanting something, for me, that is personal.

---

<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: [December 12, 2021, 12:27pm UTC](https://community.homey.app/t/lights-before-sunrise/56431/13 "2021-12-12T12:27:11Z")

</div>

Did u fotoshop this @Sapperdeflap ?

![chrome_0k6f9VCLXu](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/0/00d6357e73db2569eb2b0b3ecd242fe3ab238826.png)

---

<div class="post-metadata">

### Author: ![Sapperdeflap](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sapperdeflap/32/33985_2.png) [@Sapperdeflap](https://community.homey.app/u/Sapperdeflap)
#### Post date: [December 12, 2021, 3:32pm UTC](https://community.homey.app/t/lights-before-sunrise/56431/14 "2021-12-12T15:32:56Z")

</div>

No photoshop, this is how it works on my app, location is set to a Dutch city, so time should be GMT+1

---

<div class="post-metadata">

### Author: ![Sapperdeflap](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sapperdeflap/32/33985_2.png) [@Sapperdeflap](https://community.homey.app/u/Sapperdeflap)
#### Post date: [December 12, 2021, 3:33pm UTC](https://community.homey.app/t/lights-before-sunrise/56431/15 "2021-12-12T15:33:20Z")

</div>

Ok

---

<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: [December 12, 2021, 3:53pm UTC](https://community.homey.app/t/lights-before-sunrise/56431/16 "2021-12-12T15:53:39Z")

</div>

Ok. Was wondering about the “zonsonder **h** ang”. Bug or fotoshop?

---

<div class="post-metadata">

### Author: ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)
#### Post date: [December 12, 2021, 3:55pm UTC](https://community.homey.app/t/lights-before-sunrise/56431/17 "2021-12-12T15:55:25Z")

</div>

Confirmed (door @Dijker) bug in de Cloud versie.

---

<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: [December 12, 2021, 3:56pm UTC](https://community.homey.app/t/lights-before-sunrise/56431/18 "2021-12-12T15:56:27Z")

</div>

Really? No kerstpakket for the guy who wrote that bug. Bug=typo?

---

<div class="post-metadata">

### Author: ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)
#### Post date: [December 12, 2021, 3:57pm UTC](https://community.homey.app/t/lights-before-sunrise/56431/19 "2021-12-12T15:57:09Z")

</div>

Typos zijn text bugs 😛

---

<div class="post-metadata">

### Author: ![Sapperdeflap](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sapperdeflap/32/33985_2.png) [@Sapperdeflap](https://community.homey.app/u/Sapperdeflap)
#### Post date: [December 12, 2021, 4:12pm UTC](https://community.homey.app/t/lights-before-sunrise/56431/20 "2021-12-12T16:12:26Z")

</div>

Would agree on fixing the before/after bug first before the typo though 😆

[Next page](https://community.homey.app/t/lights-before-sunrise/56431.md?page=2)
