If you use the Restriction, it will have the undesired side effect of leaving the lights on if they come on just before the end of the period. So using a condition would work better.
If you use the Restriction, it will have the undesired side effect of leaving the lights on if they come on just before the end of the period. So using a condition would work better.