Mode change and geofence

I'd recommend you take a look at the OwnTracks app.

After having nearly perfect arrive/depart sensing for a long time, recently my (and my wife's) Pixel phones started having delayed location updates. A few times our locations wouldn't update for hours after leaving or arriving.

This was affecting both the Hubitat app and Google Home automations, so it seemed to be something related to the phone OS itself, rather than the specific app. I also saw my location lagging in the Google Maps app, so either by design or due to a bug, it seemed like the phone just wasn't updating my location like it used to.

After trying a lot of other things, I finally installed OwnTracks and it not only works flawlessly, but it seems that installing and configuring OwnTracks on the phones fixed whatever issue was affecting the other apps. I'm still running all three (using the Combined Presence Sensor to aggregate them). All of them now detect arrivals and departures without failure.