ESPHome time not in sync with Home Assistant time

ESPHome time is out by one hour so ESPHome automations are happening 1 hour late.

In HA I have:

  - platform: time_date
      - 'time'
      - 'date'
      - 'date_time'
      - 'time_date'
      - 'time_utc'

I also have the correct timezone set in HA.

And in ESPHome i have:

  - 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?

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?

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.

timezone: Pacific/Auckland

Edit: fixed typo, only one / needed

1 Like