I am trying to setup the following flow:
when hallway becomes active between 04:00am and sunrise turn in the hall light.
However the flow activates all day because ‘Sun Events’ considers Sunrise to be the next day.
So far I cannot workout how to ensure they are the same day.
Would appreciate any assistance…
Hmmm, thank you for the suggestion… however this definitely does not work.
e.g. if sunrise is 6:00am then the flow “thinks” that the flow is referring to sunrise tomorrow.
BUT after much more thought, I think I have solved it…
Thats very weird, will test my flow in a few hours, but I use the sunrise flow in multiple other flows without any issues so far. Your workaround should work, depending on where you live and if 8 AM is not before sunrise.
Sorry missed some text…
e.g. if sunrise is 6:00am and the current time is 10:00am then the flow “thinks” that the sunrise
is referring to sunrise tomorrow.
i.e. if the current time is later than sunrise, then the sunrise card “must” refer to sunrise tomorrow.
Definitely some issue with the logic in the ‘Sun Events’ app.
Yes I have tried this… in fact I have tried every possible combination of these cards.
thats just so weird, ah well, your workaround works fine too, just make sure that in your location sunrise will never be later than 8 AM (or change that variable)
Thanks
Ooops… I guess you mean sunrise will always be earlier than 8am
That’s correct and logic behaviour though.
At this moment it’s mid day, meaning:
the sunrise event of today is completed/due.
Now, when I want to check on the “before sunrise” event, it uses the upcoming sunrise (of tomorrow morning), not the past sunrise event of today.
Because I cannot trigger on “it’s before sunrise” while it’s already past sunrise, is it.
Btw, the Sun Events sunrise conditional card will act just like the onboard sunrise conditional card.
The flow Chris showed just works.
Just don’t use a “it’s between 4:00h and 8:00h” conditional card if sunset can occur before 8.00h
Just use “it’s later than 4:00h”.
Thank you for the detailed reply.
However I believe the correct logic is - if the current time is after sunrise and before midnight then it is after sunrise so the flow will not trigger. Tomorrows sunrise only becomes true after midnight.
If the app operated in this way, it would solve so many issues.
Note: In my ‘Time & Date’ app I do not have “it’s before sunrise” I can only see “It’s after sunrise”.
Please advise where to find the “before” card…
Most of these kind of cards have the possibility to invert the function (right-click? )
And besides the invert flag, often AND cards of advanced flows have a True (blue) and a False (orange) output.
With “It’s after sunrise = false” you create a “it’s before sunrise” condition.
Thank you so much for this tip… I have never heard of this feature before!
Very much appreciate everyone’s input… I think I have this flow working now.
I would invest in a light sensor to put outside or in a window to measure the light outside. Then you can easily set the logic of ”if lux is lower than X”.
Then you get the most accurate trigger.
Thank you for the suggestion but this would not provide a solution for the issue I had.
I only want the light to turn on between 4am and sunrise.
Thanks to Chris_nl my flow is now working perfectly.