mhendriks / esphome-p1

21 stars 14 forks source link

S0 Dongle resets daily usage at 01.00hrs #7

Closed Nijhuis closed 6 months ago

Nijhuis commented 6 months ago

I have three s0 dongles running in my home, they all reset the daily usage at 01.00hrs instead of 00.00hrs. Time of HomeAssistant and of the ux server running HomeAssistant is correct. I am on Amsterdam/Europe timezone.

mhendriks commented 6 months ago

This is strange. quick look result in : https://github.com/esphome/issues/issues/3736 "add tz in ESPHome config".

could be fixed by adding the below:

time:
  - platform: sntp

or

time:
  - platform: homeassistant
    id: homeassistant_time  
Nijhuis commented 6 months ago

time:

Is allready part of the package at github://mhendriks/esphome-p1/s0-dongle.yaml

I will try to link the local timezone to the esphome docker container.

Nijhuis commented 6 months ago

By adding the following lines to the yaml it was fixed.

time:

mhendriks commented 6 months ago

Thanks for sharing the solution. It is added to the github master too.