Are you sure your host time (and time zone) are set correctly? I’ve heard that seems to be a common problem when time based automations don’t work as expected.
To add to what has already been said, this is usually caused by the time_zone setting in HA not agreeing with the time-zone setting in the environment in which HA is running, and/or the time being set incorrectly in the environment. If the time is set correctly, then make sure both HA and the environment are set to the same timezone.
I actually thought that the timezone problem was solved. However, I’m not sure. My automation based on “time” seem to be running correctly, but my history shows that the sun rises at 02:00 AM in the America/New_York TZ.
All other times in the history are correct
Please let me know if you see any errors below, I’m new at this
[ I have a few python3 programs running in seperate containers ]
No, what I mean is what is the location set in your configuration.yaml?
Mine is like:
homeassistant:
# Name of the location where Home Assistant is running
name: NUC-docker
# Location required to calculate the time the sun rises and sets
latitude: 41.00000
longitude: -85.0000
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 866
# metric for Metric, imperial for Imperial
unit_system: imperial
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: America/Indiana/Indianapolis
If those two items don’t match then there may be some inconsistency that confuses things.