and in the configuration section you can find how to setup timezone from AD, when you want it to differ from HA or when there is a problem which delays the startup from HA and HA doesnt give the timezone to AD. https://appdaemon.readthedocs.io/en/dev/INSTALL.html#configuration
@ReneTode, thanks for that. Is the AD log timestamp always in UTC?
I’m using Schedy and it is doing the scheduling in UTC rather than my local timezone and I am trying to work out whether it is a Hassio, AppDaemon, or Schedy issue .
I’m thinking it is Schedy as the time on an ADDashboard is correct.
For anyone still struggling with this - I think I’ve figured this out.
I narrowed the issue down to the appdaemon container - if I exec-ed into the container (with docker exec -it appdaemon sh) and used the date command to print the current datetime, it would print the wrong time (1 hour behind). That told me the issue was with the appdaemon container, not the homeassistant one.
The appdaemon container is based on the Alpine OS, which comes bundled with the tzdata package. It only needs to know your timezone to know the current local time. For that it looks for the TZ environment variable, or for /etc/timezone.
You have two options:
either set the TZ environment variable, Europe/Paris and so on…
or map the /etc/timezone file from the host to the appdaemon container with -v /etc/timezone:/etc/timezone:ro
Don’t bother about my reply till you’ve tried the solutions proposed above with the appdaemon.yaml file. My issue was that the time in the appdaemon container itself was incorrect.