Hi all,
I put together a blog post to walk through using IFTTT and apilio to create an "if A and B then C and D" action (not sure what to call it).
It walks through setting up "if there is motion detected by my ring doorbell and it's between sunset and sunrise then turn on a light, wait 5 minutes and turn off the light"
I tested it and it works but if you find an error, let me know.