core: time_pattern triggers at wrong time

Home Assistant release with the issue: 0.88.0

Last working Home Assistant release (if known): not sure

Operating environment (Hass.io/Docker/Windows/etc.): Hass.io

Component/platform: trigger: time_pattern

Description of problem: I wanted my automations to run at 22:00 and at 06:00 or, if HA is restarted at that time, a bit later on. Therefore, instead of trigger platform: time at: "22:00:00" I use time_pattern as below. It triggers not at 22:05 and 06:05 as I expected, but at 22:25 and 06:25, weird.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

- id: climate_switch_to_away_temperature
  alias: "[climate] Set away temperature until early morning"
  hide_entity: true
  initial_state: true
  trigger:
    platform: time_pattern
    hours: '22'
    minutes: '/5'
  action:
    service: climate.set_away_mode
    data:
      entity_id: climate.combi_boiler
      away_mode: 'on'

- id: climate_switch_to_normal_temperature
  alias: "[climate] Revert to normal temperature early in the morning"
  hide_entity: true
  initial_state: true
  trigger:
    platform: time_pattern
    hours: '6'
    minutes: '/5'
   action:
    service: climate.set_away_mode
    data:
      entity_id: climate.combi_boiler
      away_mode: 'off'

Traceback (if applicable):


Additional information:

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 16 (13 by maintainers)

Most upvoted comments

I would just suggest removing as many things as possible until you get the cause of the problem. there could be a number of things interfering here: the climate entity, the automation state, the condition etc etc.

Please try removing them until you can find out the real cause of the problem. It’s hard to help otherwise since there’s no place to start.