Jim put together a blog post to walk through using IFTTT and Apilio to create an "if A and B then C and D" action.

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".
https://iused2besmart.wordpress.com/2019/07/02/using-ifttt-and-apilio/

Many thanks to Jim for his contribution!

Did this answer your question?