Automation trigger and user

Hi,

I need help.

I have a touch switch and a presence sensor.

I made an automaton that turns the light on after detecting movement at a certain distance and turns it off when it stops detecting presence.

I have only one problem. If the user is in this room (kitchen) and wants to turn off the light with the touch switch, for obvious reasons the automaton turns it on again.

How to make it so that after the user turns off the light the automaton does not turn it on again?

How to handle this.
In the history I see that the light turns on automatically and turns it off or without a note who, so it is probably the user.

Does anyone have an idea?