Caller person of a script

Assuming i have a button card calling a script, is there a way to know which Person is the caller of a script execution instance?
In the HA logbook i can see “started by xxx”, so I expect the information is somewhere…
Thank you

It’s stored in the state objects context. Its a user_id, so you need to match the user_id to the persons user_id via a template.

1 Like

Thanks a lot, Petro!