Daylight saving time change: Utility meter did not reset that night

Dear community,

Europe changed to daylight saving time (or other one? :-)). Well, I have implemented the “AI on the Edge” watermeter and a Utility Meter, which resets daily. It should show the daily water consumption of our house. Until now, it worked perfectly fine. That night, it did not reset. Is it only in my installation or is this bug?

Thanks,
Chris

I have same problem.
Have you found a solution?

Hi @TJani ,

unfortunately, no. I assume, the issue will arise again in 6 months…

Chris

What time of night does the hour change occur in Europe? If the time goes from 11:59 to 1:00 and the meter is supposed to reset at 12:00 I could see why it was skipped. Probably an edge case that wasn’t planned for. My guess would be that in 6 months the meter will reset twice within an hour if 12:00 will occur twice.

May need to open an issue on it.

Edit: actually you should have hit 12:00 twice if the change was from 12:59 to 12:00. So I don’t know what happened.

Hi @mekaneck,

well I remember them saying in the radio: at 3:00 am the clocks have been set back to 2:00 am.

So we lived that hour twice. :wink:

My utility meter resets at ‘midnight’. What does that mean exactly?

Perhaps, the issue is not in HomeAssisstant, but deeper down? My HA runs in a docker container on an Ubuntu Server. I will try to figure out, what the time settings are there and how they are provided to docker/HA.

Not saying it isn’t related, but it is curious that the reset that did not occur was 3 hours before the clock made the leap. I’d also look into other possible causes.

Some details about my installation:

Ubuntu Server 22.04.3 LTS
Welcome to Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0-86-generic x86_64)

System information as of Sun  5 Nov 21:43:41 CET 2023
xxx@ubuntu:~$ timedatectl
               Local time: Sun 2023-11-05 21:47:10 CET
           Universal time: Sun 2023-11-05 20:47:10 UTC
                 RTC time: Sun 2023-11-05 20:47:10
                Time zone: Europe/Zurich (CET, +0100)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

I have tried to find the Grail Guardian of time. Well, there is the ITU defining, at what date the time is changed, but I cannot find the source explaining at what time exactly the time changes. Newspaper say, that the change from summer time to winter time is done at 3am. → clocks are set back to 2am. (in Europe)

The timezone for HomeAssistant is defined in the compose.yaml with a environment variable.

time zone für HomeAssistant
  homeassistant:
    container_name: homeassistant
    image: "ghcr.io/home-assistant/home-assistant:stable"
    volumes:
      - /home/uadmin/Docker/HomeAssistant/HomeAssistent_config:/config
    deploy:
      resources:
         limits:
            memory: 1500mb
    restart: unless-stopped
#    privileged: true
    networks:
      macvlan30:
        ipv4_address: 192.168.30.20
    logging:
      driver: gelf
      options:
        gelf-address: udp://10.10.10.2:12201
        tag: homeassistant
#    ports:
      # Portal Access
#      - "8123:8123"
    depends_on:
      - mosquitto
      - esphome
    environment:
      - TZ=Europe/Zurich

I tried to figure out, how exactly the time changes are handled within Ubuntu Server, but did not find anything helpful.

Long story short: the reset of my Utility Meter usually happens at 00:00:00. The time zone suspicion might not be related at all.

In here the clock change made 04:00->03:00 and this show in historics graph. 3.00 is twice. I run HA OS in old laptop.
kuva

This is first DTS for me with HA and made lot of work for me.
I use Victoria Metrics and Grafana. All time series have now 25 hours in Oct 29. and now I can’t anymore use 1d interval because that day mess everthing.:crazy_face:

Hm, this is the time of the time change in my system - located in Zurich.