My Alexa Helper app has that function…simply set a delay and it will trip a switch with a delay you specify. I have a virtual switch called security and when I am leaving say “turn on security” and it does it after 5 min. The latest version even can change you Smart Home Monitor without a routine.