Replies: 4 comments 2 replies
-
Pyscript just uses local time, without timezone. What happens when you run this command:
You should use the same python version that HA is running. Does it print the correct local time? |
Beta Was this translation helpful? Give feedback.
-
Sadly the offset of one hour is still present. my Configuration.yaml contains the correct latitude and longitude and and the timezone is properly set there too to "Europe/Amsterdam". :( |
Beta Was this translation helpful? Give feedback.
-
Sorry, I can't help if it's not possible to run some simple tests using vanilla python on your platform. |
Beta Was this translation helpful? Give feedback.
-
Setting your timezone in Home Assistant does not set it for the entire system. My system timezone is set correctly so I don't have to worry about this. There's probably a way to pull your timezone information from the Home Assistant config and use it when generating dates, but I'm not sure what it is. It would be easier to just hardcode it.
|
Beta Was this translation helpful? Give feedback.
-
My time triggers fire one hour later than they should.
I checked in home assistant what my timezone is set to and it is on my local timezone (Amsterdam).
Please help me 😨
Beta Was this translation helpful? Give feedback.
All reactions