Automations with time trigger and meter helpers not triggering

Hello,

I am not sure where to ask this. Since the last update of either core or OS (absolutely not sure) I think time triggered automations and helpers do not work properly anymore. For example this thingy here is supposed to switch off the coffemaker, but didn’t do so since 3 days:

alias: Kaffeemaschine wochentags aus 8:00
description: ""
triggers:
  - at: "08:00:00"
    trigger: time
conditions:
  - condition: time
    after: "07:59:30"
    before: "08:00:30"
    weekday:
      - mon
      - tue
      - wed
      - thu
      - fri
actions:
  - target:
      entity_id: scene.kaffeemaschine_aus
    metadata: {}
    action: scene.turn_on
  - delay:
      hours: 0
      minutes: 0
      seconds: 10
      milliseconds: 0
  - metadata: {}
    target:
      entity_id: scene.kaffeemaschine_aus
    action: scene.turn_on
mode: single

As you can see, I already switch off twice to be sure, so I assume it comes from the time trigger part. I also tried moving it away from exactly 08:00 (to prevent having too much going on at exactly 8am), didn’t help.

Also, an energy meter helper is supposed to reset to zero at midnight but didn’t do so twice or three times in a row.

Anybody having the same troubles since a few days?

Versions:

  • Core 2024.10.4
  • Supervisor 2024.10.3
  • Operating System 13.2
  • Frontend 20241002.4

emefff.

What does the trace show?

Have you tried removing

    after: "07:59:30"
    before: "08:00:30"

from the condition?

What does that scene look like?

No, I didn’t try removing, because I need the days part of it. I have many automations like this and it worked perfectly in the past. EDIT: I just found out, I CAN remove the time interval. If I remember correctly, that was not possible in the past.

How can I access ‘the trace’?

The scene just switches a Shelly to off. It works ‘manually’ and has been used hundreds/thousands of times.

So? Leave those in.

Then that’d be simpler done with a turn off action.

1 Like

Many automations I have are three years old now.
The trace shows everything went correct.

What about the meter helper? As you can see, three days ago it started to reset not exactly at midnight. The delay increased further until today no reset happened at all:

It’s now 08:02 and again, it did not switch. At least it doesn’t lie about the trace. This time, there is not even a trace.

The energy meter helper reset twice during the night, first time at 22:57 (~23 hours late) and a second time at 00:53 (53 minutes too late):

Part of this curve is at the very end of the upper curve.

I restarted HA yesterday in the hope the reloading changes anything. I was wrong, the helper meter again did not reset:

There is definitely something wrong with the time triggers since my last update of one of the major system components.

It is now 13:35 local time. The helper meter, which is supposed to be resetting at midnight, has reset itself precisely at 13:09:09:

Yesterday I noticed that other time triggered automations are also affected. The following shows a multiple socket outlet with a Shelly, that is supposed to be triggered every half hour (/30) and stay ‘on’ for 10 minutes. Again, the timing is completely off, it seems to go on and off as it pleases:

But in the meantime I tried restarting HA via Preferences->System-> Restart HA, to no effect.

Today I shut down the whole VM gracefully and restarted it. This seems to have solved it for now.
I will report back if I was wrong.

There seem to be states or events, that can completely throw off all time triggers. This is my observation, I do not know what caused it. Developers should be aware of this.

emefff.