@geko is correct. You’d need an outside source to run this. Life360 is where most people will turn.
A presence fob from ST will work but that costs $30.
IFTTT will work, but there are delays sometimes.
If you have a compatible router, ASUSWRT will work: [RELEASE] ASUSWRT Wifi Presence or DD-WRT Presence Detection using DD-WRT Router Script
Life360 is going to the most reliable option, and the one that doesn’t require any new hardware.