Garage motion light

Hi,

I have a garage light set with a xiaomi motion sensor. I made a helper (timer) with 2 min. When the sensor detects a motion the light goes on and the helper/timer count the time from 2min to 0 and the light goes off.

But sometimes i have something to work in the garage and i need the light for a longer time.

So i made a light switch in HA to turn the light manually on but the problem ist when thw motion sensor detects a motion the timer start again and turn the light off in 2min

What can i do guys?

Define an input helper and set input helper as True (which means manually overridden) and put a condition on this input helper to automation to turn off your light. if input helper is True, let automation do nothing.

When you are done, turn off the input helper manually and set an automation to turn off light based on this activity.

Thx for your answer but it sounds very tricky for me.
Can u please explain it more easier for a noob lke me?!