Discrepency in Hub sunrise time value

I use sunrise time value to control morning lights along with outdoor Lux. I thought I took the value from the OpenWeatherMap driver. In truth, I actually had to review a couple rules to find out where I was pulling it from and found I was taking it from the Hub
I was up early this AM (for me on a weekend day anyways) and my dashboard said Sunrise was at 6:11a but the rules didn't trigger. I started to look at the logs and bang they triggered. 2 minutes later.
In my Hub settings, the Sunrise value is/was 6:13a.
I checked the google and verified from 2 sources that sunrise was at 6:11 (technically 6:10:10a). Tomorrows sunrise is 2 minutes earlier. Yesterdays Sunrise was 2 minutes later.

I suspect there is a time related issue with the Sunrise value reflecting the previous days sunrise time or not updating itself at a time when it is most useful.

My solve was to fix my rules to use the OWM value. In the end, I actually just dumped the 2 rules in favor of just pure lux. No doubt a nitpick, but this could be important to others in the HE world to be checked out.
Here's a snap of one rule (you can see (6:13a):


And my dashboard with OWM:
image

3 Likes

I can reproduce this discrepancy. Tagging @bravenel @gopher.ny

Here's what my hub says are the Sunrise/Sunset times from the Settings page:

The actual sunrise time today (4-24-2022) for my location is:

The sunrise time for yesterday (4-23-2023) for my location was:

Also, the same issue also exists for sunset times. The time on the Settings page corresponds to the Sunset time for yesterday.

Noted.

3 Likes

Good catch, just configured an automation where this discrepancy would be material and I didn't bother to check that what HE was pulling down/calculating was the same as what NOAA has:

https://gml.noaa.gov/grad/solcalc/

Solar Calculation Details:

https://gml.noaa.gov/grad/solcalc/calcdetails.html