Help with simplifying (alarm) automations

In the case my house state is holiday or away I want to send pushover messages in the case of a breach; One of my 6 motion sensors gets tripped or one of my 7 door sensors get tripped.

If I want a generic message it’s easy; I will just use the sensors group (or groups) and send myself generic message. However I want a specific message based on the door or zone that is breached.

Now I can make 13 different automations (one for each sensor) but I would love to do this in one or two automations.

Is there a smart way to do this?

You can have one automation with all of the sensors listed as entity_id’s in the trigger. Trigger’s info is available within the automation. Use each sensor as a trigger.

Use a condition to make it so that the automation only proceeds when you’re away or the holiday state is true.

Some examples of using trigger info in automations:

Thanks. Pointed me in the right direction. Below is a full working example:

  - alias: Any_motion_while_away
    trigger:
      platform: state
      entity_id: binary_sensor.fibaro_system_fgms001_motion_sensor_sensor_10, binary_sensor.motion_zitkamer, binary_sensor.motion_eetkamer, binary_sensor.motion_gang_beneden, binary_sensor.motion_gang_boven, binary_sensor.motion_kelder
      from: "off"
      to: "on"
    condition:
      - condition: state
        entity_id: input_select.alarm
        state: "Vacation"
    action:
      service: notify.mypushover
      data_template:
        message: "{{ trigger.to_state.attributes.friendly_name }}"
        title: ""
        target: ""

You could also say

message: "Motion at {{ trigger.to_state.attributes.friendly_name }}"

to be more verbose.