Hello,
I want to use the username in notification, for example who sets the alarm. Which variable can be used?
Hello,
I want to use the username in notification, for example who sets the alarm. Which variable can be used?
Did you ever figure this out? I’m looking to do the same.
I would love to know this as well
{{ states.person|map(attribute="attributes.friendly_name")|first }}
Been looking for this for my alarm notifications. Works great. Thanks.
Edit
Hmm, maybe I spoke too soon. I don’t get the correct user using the code above. This works though:
{{state_attr('alarm_control_panel.alarmo','changed_by')}}
It shows who changed the state most recently.