Something I would add, while presence detection is a better way of handling this (in my opinion, ymmv) it's good to have redundancy. We use combined presence by @jwetzel1492, it allows me to combine a smartthings key fob and another of his apps which looks for our phones on the WiFi network and acts as a virtual presence sensor. I did briefly experiment with the native hubitat geofencing and also tried @bptworld's life360 integration but found both to be unreliable - this may not be a problem for you, there are many happy users of both apps. When it works the Life360 integration is great, combined with hubitat and tasker on an android phone there are some mind boggling possibilities but I'll stop there as it's drifting off topic.
What I'm trying to say is this redundancy covers our phones being turned off and on the rare occasion a battery dies in a key fob (I've finally set up a rule that warns me off it drops under 10%, it only took a couple of years to think of this...) it doesn't send the house into full on PANIC! INTRUDERS! mode when a door opens or there's movement.