How to show name of user who triggered the power of a device or entity

i need a way for home assistant to either post a notification saying that xxx has been turned on by mahdy for example could that be done in home assistant