Automation - DateTime Trigger

If I have many DateTime entities who can trigger an Automation, I would like to know which one triggerred the automation.

I would need : {{ trigger.entity_id }}

It already exists in version 0.117.

Here are two input_datetime entities:

Screenshot from 2020-11-16 13-12-34

Here is an automation that is triggered by either of the two entities. It reports which entity triggered the automation:

- alias: 'Example A1'
  trigger:
  - platform: time
    at: 
      - input_datetime.test
      - input_datetime.test2
  action:
  - service: persistent_notification.create
    data:
      title: '{{ now().timestamp() | timestamp_local() }}'
      message: 'Triggered by: {{ trigger.entity_id }}'

Here are the notifications produced by the automation:

Screenshot from 2020-11-16 13-16-32

I tested it yesterday on 117.6 and it didnt work???

I tested it in 0.117.5 and it works. Maybe there was a regression error in 0.117.6 and it no longer works? :man_shrugging:

And not available into the doc?

I retest it, and it work…! OK thanks mate !

1 Like

Here’s the Pull Request:

It was included in 0.117. Here’s a screenshot from the release notes:

Screenshot from 2020-11-16 13-58-06


EDIT

If you are satisfied it works correctly, please mark my first post (above) with the Solution tag to formally close this topic. Thank you.