Hello friends,
ESPHome seems one minute behind. Howcan that be?
My esphome configuration retrieves absolute time from HA:
time:
- platform: homeassistant
id: homeassistant_time
From inside Home Assistant I am calling an esphome script at exactly 9:30 am:
Inside my ESP the esphome script does something and reports back with the time after the activity. Reduced version of my script:
script:
- id: script_controlled_output
then:
- delay: 30s
- globals.set:
id: global_dt_last_run_stop
value: !lambda |-
return id(homeassistant_time).now().timestamp;
- sensor.template.publish:
id: sensor_last_run_dt
state: !lambda |-
return id(global_dt_last_run_stop);
The returned value is reported at 9:30:53 but says 9:29:52.
(2024-01-16T08:29:52+00:00)
The ESP seems one minute behind. How can that be? Do I need to resync the time platform inside ESPHome or is that a bug I need to report on GitHub? Thanks