One automation informing me of the stats of multiple motion sensors

I have about 6 motion sensors inside my house. I would like to use these as a simple alarm system. e.g when no one is home, if there is motion detected inside send me an instant message.

What would a single automation look like that would take all 6 motions sensors as triggers and pass which motion sensor was triggerd to the instant message?

e.g. if an intruder walks in the front door and then into the kitchen, I would want two instant messages: 1) notifying when entering the entrance hall and 2) when entering the kitchen.

replace the motion_sensors 1…6 with your sensors. And use replace notify.notify with your notify service;

automation:
  trigger:
    - platform: state
      entity_id: 
        - binary_sensor.motion_sensor1
        - binary_sensor.motion_sensor2
        - binary_sensor.motion_sensor3
        - binary_sensor.motion_sensor4
        - binary_sensor.motion_sensor5
        - binary_sensor.motion_sensor6
      to: on
  action:
    - service: notify.notify
      data:
        message: {{ trigger.entity_id }}

That’s it! Thank you Pippyn

EDIT: Just need to add ’ ’ around {{trigger.entity_id}} for this to pass the yaml vaildator