Time range for motion sensor control

Hi,

is it possible to implement an additional function so that, for example, a motion detector only responds at a certain time interval?

At the moment I use the function “From sunset to sunrise” for my light on the terrace to control it via a motion detector.
However, the sensor still reacts when it has been light for a long time (Thuringia, Germany).
It would be nice if there were an additional option so that the sensor only switches the terrace light from 21:00 - 06:00, for example.