I think you would need parentheses around the first condition as well as around the second/third conditions to allow the AND to function correctly but I'm never 100% sure with parentheses.
IF (time is after sunset and before sunrise)
AND
(No motion detected in garage
OR Garage Light is on)
One thing to consider with your rule. What happens if the door opens 5 minutes before sunset? It won't pass the time condition or the time Required Expression and the rule won't close the garage door. You many want to add a sunset trigger. If you stick with the Delay option then make it cancelable and add a Cancel Delayed Actions before it but personally I prefer Sebastien's suggestion with the Wait.
Or move the time condition later... Trigger whenever the door opens, then wait for the condition that it's nighttime and everything is idle. Once that wait completes, you can check the state of the door -- or just close it, since the driver should ignore a close() command when it's already closed.
Correct- The garage lights operate off the motion sensors.
Problem seems to be that when the garage door starts to close, it triggers the lights to be on.
I'm going to remove this portion. I was using t his as a back up but do not think its really needed.
IT works but some nights it does not work properlly.
Im going to rework this today based on your outline and see if it triggers properly.
I will report back