Are Multiple events in a single trigger possible?

  trigger:
    platform: event
    event_type: timer.finished
    event_data:
      entity_id: timer.foo

How can I have the same automation fire for timer.cancelled without having to create a new trigger section? It would make sense just to


    event_type: timer.finished, timer.cancelled

But while the YAML is accepted, neither event is caught. What am I doing wrong?

Untested but, according to the documentation, you can specify multiple events as a list.

trigger:
  - platform: event
    event_type:
      - timer.finished
      - timer.cancelled
    event_data:
      entity_id: timer.foo

Reference: Event Trigger

1 Like