I wanted to be able to display the user/person who disarmed the house alarm or opened the garage door. Upon searching through the documentation realised that this didn’t seem possible.
So I turned to the community forums next and after a bit of time stumbled across the following post:
Seems as though I wasn’t the only one with this idea. I came up with a workaround utilising the variables the user_id available as part of context.
However, would it be possible to also include username as part of context? I understand that from the backend all that’s required to link events is an id but for those wanting to use that information for notifications it would be nice if a human readable option was available.
@ludeeus Would you expand on how to look up the person entities? This would be such a cool feature, to be able to personalise responses dependant on who changed the state of an entity. Thanks