I use a brightener automation in a few locations. For hardware I use a Z-Wave dimmer and a motion sensor.
At sunset+offset the lights come on to a 25% dim level. If the light is on and motion is detected, the dimmer is set to 100%. If motion stops, the motion sensor has a 1 minute no-motion window, then wait 2 minutes and set dim level to previous level.
I have no idea how to do this in Apple. IFTTT should absolutely be able to do it. But, why layer on more cloud dependency? Start your local controller journey.
This sort of response doesn't help the next guy with your question.