I have spent the weekend trying to get a HA system running on my Pi 3B+. I have tried Hass.io & Hassbian so far, several times. They install, and runs. But I cannot seem to figure out how to get the sun tracking to work!
Whatever I do, it gives false readings - nothing I can use in my automations…
Apart from time/date on the host (pi), and info in configuration.yaml (lat/long etc), is there anything else that needs to be configured for the sun tracking to work?
I don’t even get noon & midnight right, they look like this;
next_midnight: 2019-01-06T23:18:06+00:00
next_noon: 2019-01-07T11:17:53+00:00
friendly_name: Sun
As far as I know, they should be 00:00 & 12:00, right?
I would really, really appreciate if someone would help me out. In doing this I have googled a lot, but not found any working solutions. Please help.
solar noon does not equal noon. Solar noon can happen anytime. It’s just the time in which the sun is at the highest point in the sky. Same with midnight, accept it’s when the sun is at the lowest point.
These are datetime objects. They are stored in UTC, thats what the +00:00 at the end means. You need to convert them to local. UTC is somewhere around Europe, it stands for Universal Time Coordinate. It’s the basis for all time calculations so computers can properly tell time in all parts of the world.