Find out who has triggered

I would love to detect which user has triggered a switch or script. This means, I need to know server side who was logged on and caused the event (for example flipped the switch). This can be used to notify only that user for example, or only users that are actually at home. it seems that the events are missing a user context

Has anyone ideas for this?

Which events do you mean are missing a user context? Ones that were triggered by a logged in user?

Thank you, that is what I was looking for!

1 Like

Here is how you can find the user-friendly name instead of the user ID

If you follow the link in the Solution post, it leads to another topic containing this post, from 2 years ago, showing how to get the person’s friendly_name: