Automating lights on a motion sensor-multiple triggers

Hey there,
I’m setting up my system to have a light for the front door that illuminates when someone walks up to it. Light works. motion sensor works, basic logic works (I swipe my hand, the lights come on, YAY!). Anyway, now to create a logic to shut it off. My question is: Do I need a separate automation to turn it off? My plan is on motion detection (After sunset) to have it come on. And then stay on for like 5 minutes after no motion. Should be pretty simple, I just don’t know if ‘On’ and ‘Off’ have to be separate automations.

I did this with seperate on and off automations.

Try a blueprint

Blueprint worked perfectly, thanks!

1 Like