nordicopen / easee_hass

Custom component for Easee EV charger integration with Home Assistant
209 stars 34 forks source link

Basic schedule clock offset wrong #144

Closed prilly-dev closed 2 years ago

prilly-dev commented 2 years ago

Seems the offset of the clock is wrong by one hour from what is reported in the easee app and the easee integration, it seems the same offset is for both start and stop

astrandb commented 2 years ago

@prilly-dev What versions of Homeassistant and Easee integration are you using? Times are identical in my setup. Are the settings for timezone and DST the same in phone/app and homeassistant?

prilly-dev commented 2 years ago

iam running docker.

root@ha:~# timedatectl Local time: Tue 2021-10-05 21:46:54 CEST Universal time: Tue 2021-10-05 19:46:54 UTC RTC time: Tue 2021-10-05 19:46:55 Time zone: Europe/Oslo (CEST, +0200) System clock synchronized: yes NTP service: n/a RTC in local TZ: no root@ha:~# ls -l /etc/localtime lrwxrwxrwx 1 root root 31 Sep 29 09:11 /etc/localtime -> /usr/share/zoneinfo/Eur ope/Oslo From server, i am then passing the etc/localtime to docker

-v /etc/localtime:/etc/localtime:ro

and home assistant is set in to europe/oslo, now() in home assistant report right time: The clock is 2021-10-05 22:07:00.000540+02:00

prilly-dev commented 2 years ago

Dam this was a hard nut to crack. i have identified the problem and solved it.

the problem is that i am using firefox browser and i noticed that there was other clock related errors. anyway i have the setting: privacy.resistFingerprinting turned ON in firefox, this forces UTC time for the browser ONLY. Turning of this solved the issue.

astrandb commented 2 years ago

@prilly-dev Good catch!