I’m seeing something strange with the Darksky sensor and an IOS device. If I use my laptop (WIn 10) and look at the forecast from Dark Sky, I have no problems. But, if I use the IOS App, or use the firefox web-browser to access Home Assistant, the time reported for the forecast in Dark Sky is incorrect. The image attached shows (in red) what my IOS device reports for time, I took the screenshot from my Win 10 machine and marked it up.
I went into the container and did a cat /etc/timezone => Etc/UTC. So i changed the container and added a binding to /etc/timezone & /etc/localtime. Still reports the wrong times to my ios device.
My Windows PC is in EDT <- this one still has the correct times reported
My Ubuntu server (hosting the container) is in EDT My iphone timezone = Detroit
& now my home-assistant container is in EDT (after adding the above binding)
Really the only reason for the behaviour you describe is a time zone mismatch somewhere. HA always works in UTC and uses the time_zone above to adjust.
Oh crap… I see you have that set…
Out of ideas here. Sorry.
I would like to report the same issue. I’m running Hassbian, have the correct timezone set in the configuration file (and verified, as log entries are correct), but dark sky is showing UTC values.
I have the same problem. I tried various combinations of timezone settings on the OS, docker container and ha configuration without success.
I am wondering if it is an issue with the dark sky component.
This is still happening in HA 0.99.2 and Frontend 20190919.0 (on RPi 4 release candidate running HassOS 3.5).
I think I know what’s going on. It seems like Dark Sky is returning times relative to the location of the weather (duh), but the Weather component is assuming they’re GMT+0 times, and incorrectly adjusting them. I think.
I set logging to “debug” level and got a lot of info. See the attached screenshot.
In it you can see that at the top, the sunset/sunrise/noon etc. info is coming back as GMT+00:00 time. I think that’s from the weather component. Then, below that, the forecast comes in from the DarkSky platform, and the times are all relative to my time (Mountain Time in the U.S., which is currently GMT/UTC-6). That -6 is critical, as that’s precisely the amount subracted from the DarkSky times and show in the UI. For example, where the Dark Sky forecast says 8pm, the UI renders 2pm, and 9pm forecast becomes 3pm in the UI, etc.
I’m not sure if the fix should be made in the Dark Sky platform, the Weather component, or perhaps even the Lovelace card. Anyone?