I could create a similar automation based on an action with a similar name, but would rather have the same automation, but notification to be sent to the source that sent the event …
Might be too complicated, but maybe someone has an idea?
There may be a way now that ha records who does actions… but I am not yet familiar with the functions of that feature…
In the meantime… you could use state-switch based on which user… and have it only show a user specific button/interface… so the action could be tied to which user pressed it? Is it a keypad or just a button press?
home_is_secure_check_notify:
alias: Lock Status
icon: mdi:lock
mode: single
sequence:
- service_template: >
{% if sourceDeviceID | length > 0 %}
notify.mobile_app_{{ sourceDeviceID }}
{% else %}
notify.mobile_app_lees_iphone
{% endif %}
data:
title: Windows & Doors
message: >
{% if is_state("binary_sensor.housesecure", "off") -%} All windows and doors are shut {%- else -%} The following are open! {% for each in expand('group.all_openings') if each.state in ('unlocked','open','on') %}{{ each.name }} {%- if not loop.last %}, {% endif -%} {% endfor %} {%- endif %}.
Here I am using {{ trigger.event.as_dict()[‘data’][‘sourceDeviceID’]}} to get the device id that that triggered the automation