I am new to HA with a handful of Insteon devices. I installed HASSWP. I am trying to set a simple automation of a light turning on at a certain time. However, the time the light turns on is 5 hours before the time I have set.
The automation trigger is set to 2:57 pm. coding is as follows id: ‘1650738764220’ alias: turn on column lights description: ‘’ trigger:
platform: time*
at: ‘14:57:00’*
However, the light is turning on at 10:57 am. here is the “Trace timeline”:
Triggered by the time at April 28, 2022, 10:57:00 AM
The time zone under “Configuration - General” is set to “America/New_york” which is the time zone I am in.
Any ideas about what I am doing wrong would be greatly appreciated.
Thanks in advance.
Whenever there is a discrepancy between the specified time and the time it executes, it is almost always due to a system clock problem. Your timezone is UTC - 4 hours and corresponds to the discrepancy between the scheduled time 14:57 and the time it triggered 10:57 which points to a problem with the system clock’s timezone offset. You said it’s set to America/New_york but the system clock isn’t behaving like it is.
As an experiment, paste this template in the Template Editor and post what it reports.
HassWP is Home Assistant Windows Portable
The “result type” from the template editor is
2022-04-30 15:14:00.000628+00:00
2022-04-30 15:14:00.000628+00:00
does this help?
Yes. The two times have a timezone offset of zero hours. That’s to be expected for utcnow() but now() should contain your timezone offset (-04:00 for America/New_york) but it doesn’t. Follow Tinkerer’s instructions.
BTW, at least we know the problem you’re experiencing is the usual one I described previously (system clock’s timezone is incorrect).
Tinkerer/Taras
thank you for your assistance. I have no programming experience and I cannot figure out where/how to change the time zone. I’ve looked at my configuration.yaml file in notepad (see below) but it doesn’t have this information. it looks very generic. Am I looking in the wrong place? Is there a reference to this issue that has more detailed instructions?
Thanks again
Hi Everyone
I really appreciate the assistance I am getting with this. My “time Zone” in the General Settings is correctly set for “America/New_York”. I have tried to include a screenshot. Any other suggestions?
thanks again for helping out.