You would need to create a virtual presence sensor which would create a tile in the app. Use two Routines to sync the virtual presence sensor to your phone’s location… one for when your arrive, one for when you leave.
I use this one:
But there is also a second community developed one that you can check out: