Below is the layout for my flow. The Arlo camera is at the top and the other cameras visible are Nest cameras. The Arlo and Nest cameras will both function the lights. The Nest rule will only function if people are detected, and the Arlo rule works for any motion.
The lights will only turn on at night based on the date and time rule. I use Wemo switches and they have the ability to add a rule to shut off after a determined amount of time has passed. I used to use a timer in the flow with a shut off command after the timer. You can use that option in case your switches don't support an auto shut off rule.
I hope this helps.