# Sun event not working

**URL:** <https://community.homey.app/t/sun-event-not-working/15355>\
**Category:** Questions & Help\
**Created:** [July 9, 2019, 10:38am UTC](https://community.homey.app/t/sun-event-not-working/15355 "2019-07-09T10:38:39Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![halfcarrot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/halfcarrot/32/13028_2.png) [@halfcarrot](https://community.homey.app/u/halfcarrot)\
**Post date:** [July 9, 2019, 10:38am UTC](https://community.homey.app/t/sun-event-not-working/15355/1 "2019-07-09T10:38:39Z")

</div>

My Sun Event app seems like is not reading my timezone/ location correctly.  
I have set trigger event if between sunset and tomorrow’s sunrise, it won’t trigger. But if I invert, it works.  
The only related topic I found are suggesting location is recognized, I tried both automatic and manual location setting in the iOS app, didn’t make any difference.

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [July 9, 2019, 10:43am UTC](https://community.homey.app/t/sun-event-not-working/15355/2 "2019-07-09T10:43:55Z")

</div>

Make it an OR instead of an AND, those 2 cards only look for the same day, and it is **never** _before_ sunrise AND _after_ sunset on the same day

---

<div class="post-metadata">

**Author:** ![halfcarrot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/halfcarrot/32/13028_2.png) [@halfcarrot](https://community.homey.app/u/halfcarrot)\
**Post date:** [July 9, 2019, 11:00am UTC](https://community.homey.app/t/sun-event-not-working/15355/3 "2019-07-09T11:00:47Z")

</div>

![Capture](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/f/f690949372c9b7e157beab1da4335fcd2c7c0893.jpeg)

Maybe I didn’t make myself clear, here is a screenshot.

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [July 9, 2019, 12:19pm UTC](https://community.homey.app/t/sun-event-not-working/15355/4 "2019-07-09T12:19:01Z")

</div>

If you test the flow, what does the AND card say when you click the error icon.

---

<div class="post-metadata">

**Author:** ![halfcarrot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/halfcarrot/32/13028_2.png) [@halfcarrot](https://community.homey.app/u/halfcarrot)\
**Post date:** [July 9, 2019, 12:35pm UTC](https://community.homey.app/t/sun-event-not-working/15355/5 "2019-07-09T12:35:01Z")

</div>

When I test it like shown in screenshot, I get a red exclamation mark. But if I invert then test, I get green tick.

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [July 9, 2019, 1:42pm UTC](https://community.homey.app/t/sun-event-not-working/15355/6 "2019-07-09T13:42:28Z")

</div>

That makes sense, as it is not between sunset and senset now 😉, try it again this evening when it really is between sunset and sunrise.  
But if it keeps being that way even in the evening, you have to contact the developer of the app, he’s probably not active on the forum

---

<div class="post-metadata">

**Author:** ![halfcarrot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/halfcarrot/32/13028_2.png) [@halfcarrot](https://community.homey.app/u/halfcarrot)\
**Post date:** [July 9, 2019, 1:43pm UTC](https://community.homey.app/t/sun-event-not-working/15355/7 "2019-07-09T13:43:50Z")

</div>

I’m in Australia, which is night now:( I highly suspect it’s the timezone/ location that’s messing this up.

---

<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:** [July 12, 2019, 2:09pm UTC](https://community.homey.app/t/sun-event-not-working/15355/8 "2019-07-12T14:09:29Z")

</div>

Do you have the same problem with the Inbuilt athom sunset cards?

---

<div class="post-metadata">

**Author:** ![halfcarrot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/halfcarrot/32/13028_2.png) [@halfcarrot](https://community.homey.app/u/halfcarrot)\
**Post date:** [July 12, 2019, 2:34pm UTC](https://community.homey.app/t/sun-event-not-working/15355/9 "2019-07-12T14:34:24Z")

</div>

I never really tried the inbuilt option, I’ll give it a go.

---

<div class="post-metadata">

**Author:** ![Patrick1610](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patrick1610/32/6843_2.png) [@Patrick1610](https://community.homey.app/u/Patrick1610)\
**Post date:** [October 24, 2019, 7:42pm UTC](https://community.homey.app/t/sun-event-not-working/15355/11 "2019-10-24T19:42:25Z")

</div>

I have a similar problem! When using two independent cards (after Sunset OR before Sunrise) it works. When using only one card I have the option to use more conditions in 1 flow, so it would really help if this worked… Any ideas on this so far?

 ![26](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/e/eeabe062906654d3b37856fdb1b28add1efd2aef.png)

---

<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:** [October 26, 2019, 5:15pm UTC](https://community.homey.app/t/sun-event-not-working/15355/12 "2019-10-26T17:15:06Z")

</div>

The conditions in one card must be on the same day, otherwise it doesn’t work.
