By default, scripts are always active, i.e. the hub monitors the state of the involved sensors 24/7 and launches the script whenever the conditions are met. But you can limit the time periods when the script will be active, for example, if the hub should launch the script only during working hours or at night.
You can set the start and end times and select the days of the week on which the script could be launched. The selected week days have green backgrounds, unselected days are displayed on a white background.
The figure shows that the script conditions will only be monitored by the hub from 10:00 pm to 7:00 am on weekdays.
Tap on the arrow in the upper left corner of the screen to go back to the script settings screen.