Automation condition by user

Greetings
I want an automation to be executed only when a user has manually triggered something.
I thought that this could be selected in the condition but I didn’t find anything maybe I have to add something in the template condition?

I am grateful for any help.

Context data should give you that. But it’s hard to help when we don’t have enough information

When I turn on the light myself in home assistant a helper toggle is triggered to true or false I want this to happen only when executed by me and not by the motion detector

Have a look at this post, it links to two important parts to get the context of who/what triggered a change.

Thank you for your help you have put me on the right track!

'{{ trigger.to_state.context.parent_id == none }}'

is the right one for my problem.