Conditional Notification based on who arrived home

Hi :
I have a text message greet the member of the family who arrived home and let them now what the system is doing (unlocking the alarm, opening the locks etc). In the way I have it now; I created at arriving home automation for each user; but I was wondering if there is a way to consolidate everything in one automation and one script.

Goal is : A person triggers automation > the system knows who triggered it. So if a person A triggered, the system do the same unlocking sequence but then sends a message to the appropriate person who triggered the event. Not sure how to pass who triggered data to the message script or action. I want to try to do in at least amount of automations or scripts as possible.

It’s always easier to help when we see what you have done.

1 Like

I have tried everything with the UI because I still need to grasp the Yaml configuration programming.

By Description:
Automation Person A
Trigger
Person A arrives

Action:
Unlock door

notify:
Message Person A welcome home.

Automation Person B
Trigger
Person B arrives

Action:
Unlock door

notify:
Message Person B welcome home.

And that goes on for each member of the family.