Trigger on reusable list of entities

Hi,

I would like to define a list of entities like groups to trigger automation on.
The disadvantage of a group is that you don’t actually get the device that triggered and only 1 trigger is activated. For example:

lists.yaml

doors:
  entities:
    - switch.frontdoor
    - switch.garagedoor

automation.yaml

trigger:
  platform: state
  entity_id: list.doors(.entities?)
  to: 'on'
action:
  - service: notify.pushover
    data_template:
      message: "{{trigger.to_state.attributes.friendly_name}} opened"

Because my doors list is a list of 9 and I have to use them in 5 different triggers.

Thanks

Not sure if possible but could you accomplish this with !include or !secrets?

Maybe with secrets, but secrets isn’t the place for it.
I tried creating a

lists: !include lists.yaml

But it resulted in an config error (constructor not known)