This applet uses group location to trigger a voice monkey when the last person in the group leaves, but not if anyone is still home. This can be used to trigger Alexa routines that turn off lights, etc.
Explore more great ways to automate Group Location and Alexa Voice Monkey