Motion Detection Notification

I have 10 motion sensors and I’d like to be able to set when we have guests (via a helper) so that we get alerted when a sensor is triggered. Is there a way to have a single automation/script that is triggered by a motion anywhere and then sends an alert saying like “Hall Motion” which is the name of the sensor in question.

Essentially any motion then reading the sensor triggered.

I know I could do it with loads of “IFs” but that seems inefficient

Thanks

trigger.entity_id will tell you which entity caused the trigger.

And this will send the friendly name or fall back to the entity id if no friendly name exists:

  - action: your_meesage_action_here
    data:
      message: "{{ trigger.to_state.name }} motion detected"
1 Like

super thanks.