ESPHome time is out by one hour so ESPHome automations are happening 1 hour late.
In HA I have:
sensor:
- platform: time_date
display_options:
- 'time'
- 'date'
- 'date_time'
- 'time_date'
- 'time_utc'
I also have the correct timezone set in HA.
And in ESPHome i have:
time:
- platform: homeassistant
id: homeassistant_time
Time displays correctly in Home Assistant.
I’m pretty sure this is due to the clocks going forward last weekend.
What setting am I missing to take account for the change to summer time?
nickrout
(Nick Rout)
2
I have timezone in my esphome code. It also reboots every 24 hours. It is reading correct.
Thanks for the reply.
Are you saying having timezone in your ESPHome causes it to reboot every 24hrs or setting it to reboot every 24hrs causes it to read the correct time?
nickrout
(Nick Rout)
4
I’m saying I don’t know whether it is the correct time because of setting the timezone or because it reboots.
1 Like
How are you defining timezone in ESPHome?
I can’t get it to pass validation.
nickrout
(Nick Rout)
6
timezone: Pacific/Auckland
Edit: fixed typo, only one / needed
1 Like