Control 2 separate lights to behave differently depending on Time of Day/Motion

lights
conditions
motion
piston

#1

Hello. I need some help with a Piston please. I have two outdoor lights. Between Sunset and Sunrise I would like just “Light One” to be on at 5% and "Light Two to be OFF. However, when my “Front Door Camera” detects motion I’d like both lights to come on 100% for 5 Minutes. If motion has stopped after 5 minutes return lights to previous behavior: “Light One” ON at 5%, “Light Two” OFF

Any help making a piston that will accomplish this would be great.

Thank you

Mike