Presence notifications for no reason?

So my second rule ever is merely a presence indicator just to see how it works. For no apparent reason I get notifications (iPhone) that I left my geofence, then within a minute I returned. Well I never left…

This seems to happen 2-3 times a day. How do I avoid these fake events because I certainly can’t automate this way?

A few ideas I can think of if you continue to use only the Hubitat app for thus:

  • consider making your geofence radius larger; if your phone has problems locating you when at home (e.g., occasionally thinking you're farther away), this is less likely to happen with a wider radius; or
  • consider acting on certain automations only if presence stays away for a minute or two (or more), not instantly upon generation of the event on the hub side
  • instead o the above, use the "delay exit" option in the Hubitat mobile app (confession: I haven't used this, but I assume this is what it does; a similar idea except doing on the mobiel app side instead of in whatever apps/automations you're using on the hub, so they can remain unchanged)
  • see if the Advanced > High Accuracy Presence option in the app makes a difference

Because some people consider the Hubitat app unreliable, they either replace it or supplement it with another solution (HomeKit/HomeBridge, OwnTracks, Alexa, and others I can't remember off the top of my head are a few I've seen on here).

Personally, I've only seen the problem you mention above once or twice, and it resolved on its own, so I assume I had a temporary phone, app, or GPS glitch. I've resorted to combining two different methods (the app plus HomeKit, in my case) and just taking the most recent event from either in a relatively simple app (formerly rule) I wrote to "combine" these things, as normally my problem is that the Hubitat mobile app just stops sending any events after a few days, but every once in a while my HomeKit "hub" (AppleTV) also just doesn't respond, so together, they're nearly perfect. This doesn't do anything do address your particular problem, though combining three methods and using the consensus from among them might, or even just two if (unlike me) you have good luck with them both. Yes, it would be great if I could use only one. :slight_smile: It's possible the app on its own is better nowadays, but I haven't bothered checking...

2 Likes

Presence is my personal holy grail... I've played with geofency, life360, the HE app, presence fobs, iBeacons, and others. I've never found any of them to be 100% reliable. So I ended up using a combination of them along with, as @bertabcd1234 suggests, some generous timeout parameters to achieve what I want. And then I was defeated...

Because others in the household perceive apps like life360 as "tracking" them I've finally decided to go 100% agentless. I have three different methods I use to detect the presence of iPhones on the network: @jwetzel1492's iphone presence app, @thebearmay's hub ping app, and @mike10's unifi presence sensor. For reasons thaht have more to do with the iphone than any of the apps, none of these methods are 100% reliable but when combined they're as good as it's gonna get.

If all three of them show absent for 5 minutes then I assume the person is actually absent. If any show pesent I assume the person is present. There are a couple of presence combiner apps that do this nicely, including @jwetzel1492's Combined Presence and @bptworld's Presence Plus. In order for this to work the iPhone MAC randomization feature has to be off, and for 2 out of the 3 to work, the iPhone has to have a fixed (or reserved in my case) IP address.

It actually works remarkably well, though if the iphone's wifi gets shut off or the battery dies, the person is perceived as away.

2 Likes

Where can I find out about these apps you mentioned?

4 Likes

This is awesome, thanks!

1 Like

Start with Hubitat Package Manager if you haven't already encountered that app... makes life a lot easier. The Unifi app works only with Unifi's network controller...