Please note that the app allows you to schedule the motion detection during set hours on a daily basis.
But currently, it is not possible to set a schedule that runs overnight, for example, from 7:00 pm to 7:00 am. There is, however, a workaround: Schedule first 7:00 pm to 11:59 pm and then 12:00 am to 7:00 am.