home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.16k stars 31.13k forks source link

time_pattern does not run every 2:02 hours #131692

Open fft1010 opened 6 days ago

fft1010 commented 6 days ago

The problem

Yesterday I added an automation with a time pattern at about 1pm. This morning I noticed, that it ran at night 2:02 o'clock, buzt not e.g. 4:02, 6:06, ... See here

alias: Urlaubsmodus beim Haus (im Urlaub!)
description: ""
triggers:
  - trigger: time_pattern
    minutes: "2"
    hours: "2"
conditions:
  - condition: state
    entity_id: input_boolean.urlaub
    state: "on"
actions:
  - action: script.rolladen_test_script
    metadata: {}
    data: {}
  - if:
      - condition: state
        entity_id: binary_sensor.winterzeit
        state: "on"
    then:
      - action: climate.set_temperature
        metadata: {}
        data:
          temperature: 19
        target:
          floor_id:
            - keller
            - og
mode: single

screen-2024-11-27-09-23-32

It is correct, that it is stopped due to "non Urlaub", but I expect to run it every 2:02 hours, which it does not.

What version of Home Assistant Core has the issue?

core-2024.11.3

What was the last working version of Home Assistant Core?

long long ago I used it

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

Arn0uDz commented 5 days ago

Try this:

trigger: time_pattern
hours: /2
minutes: "2"
fft1010 commented 5 days ago

Hi @Arn0uDz , the above yaml code is generated by the HA „visual editor“ in the automations, if you „klick“ a new automation. So if your help works, this also has to be generated by the HA „visual editor“.

thanks Juergen