Switch off sensor lights in a period

Hi all.

New to this so bare with me.

I’d like to set a light and motion sensor to not come on in the early hours of the morning.

I’ve setup automation for a front door sensor and light.

I can set multiple periods of when to use different scenes. But how can you set the light to be off even when dark and there is motion?