Timer.finish event does not trigger automation

What am I doing wrong here? It seems very simple - turn an input_boolean on when a timer finishes.

The automation can be run manually (obviously) but the timer never triggers it (not when it finishes the end of its countdown, and not when I use the service timer.finish in Developer Tools). I have default_config: in my configuration.yaml.

- id: '1634734881918'
  alias: test
  description: Turns input_boolean on when timer finishes
  trigger:
  - platform: event
    event_type: timer.finish
    event_data:
      entity_id: timer.test
    context: {}
  condition: []
  action:
  - service: input_boolean.turn_on
    target:
      entity_id:
      - input_boolean.test
  mode: single

I’m running Home Assistant OS, core-2021.10.6 on a RPi4.

Incidentally, the timer was created as a “helper”, not in .yaml. Don’t know if that makes a difference.

1 Like

The event_type: is timer.finished. timer.finish is the service.

- id: '1634734881918'
  alias: test
  description: Turns input_boolean on when timer finishes
  trigger:
  - platform: event
    event_type: timer.finished
    event_data:
      entity_id: timer.test
    context: {}
  condition: []
  action:
  - service: input_boolean.turn_on
    target:
      entity_id:
      - input_boolean.test
  mode: single
10 Likes

Duh! :flushed: Thank you for the quick reply.

1 Like

Now with triggers: timer.finished was not reliable but this works every time:
triggers:

  • trigger: state
    entity_id: timer.sprinkler_timer
    to: idle