Mobile app presence (Android)

I'm having problems with consistent presence detection. Basically the presence is only working if the phone is on and the app is open.

If the phone is off and I move in and out of the geofence the app is not notifying the hub.

In the main app discussion battery optimization was discussed. I have this turned off for the app with no luck.

As a side note in developer mode there is no Hubitat service running, even when the app is open.

Thoughts?

S9+. Android Version 9 (Pie).

Off or asleep? Geofencing doesn’t work when a phone is turned off. It’s hard to receive calls and text messages when a phone is off too...

You need to set the Hubitat app to use permissions all the time. I don't recall Pie 100%, but in "Settings" go to “Apps & notifications.” Choose the Hubitat app, tap on “permissions,” and switch “Location” on.

Oh, and nothing will work for GeoFence if the phone is actually powered off.

:rofl:I mean the screen off

1 Like

App permission for location is set to on.

I'm having a similar issue, based on the road to our house, my wife's presence should be detected nearly ~60 seconds before actually getting to the garage door. Based on this arrival, the garage door should be turned on so she can use her car to open the door, it's not happening every time, maybe only once this week in fact

She ends up opening her phone to enable the garage door at which time her phone is registered as home virtually the same time the garage door is turned on

PX2 XL, PIE, fully patched
Location is enabled on the phone for HE

Rick

Make sure the app is not optimising battery usage and also that it cannot "sleep". You can set these in settings, app and settings, battery... well, on my Samsung S8 Edge it's possible :slight_smile:

Hope it helps.

Yes, checked and confirmed.

Tonight we went for dinner and a walk, when we drove home, her phone registered home 4 mins after mine.

Her's P2XL, Pie
Mine P2, Pie

Rick

Same thing here. I have the geofence set to the widest amount. It is not battery optimized.
Yesterday I sat at the stoplight 1 block from my house(well within the limit) for about 5 minutes for a funeral procession. It still didn't see me as home when I got there.
Once I got in the house and the HSM alerted me the back door opened and I opened the app, then it suddenly saw me as home.

I then walked down the street 5 houses (even closer than the stoplight) and was there about a half hour. When I got home, the app had set my house to away mode and alerted me again when I entered the house. Once I opened the app, it finally saw me as home again. I was maybe a 100 yards away.

Never had this problem with life360. Smartthings yes.

Pixel 2, Pie

Battery optimization is already off.

@Angus_M Since it works on your S8 can you screenshot your app permission page for Hubitat and post? I want to compare to mine (see above).

I'm beginning to think there is some sort of issue with the Pixel 2 XL as far as geofencing is concerned. Both mine and my son's Pixel 2 XL is very sporadic as far as presence is concerned. I have battery optimization off and every other thing I can think of.

When I first installed the app, it was spot on for a couple of days. Then it started to get finicky. It shows me leaving 30 minutes after I have. It shows me arriving 10-15 minutes after doing so, but if I open the app, it is immediate.

My wife's Pixel 3 XL and daughter's iPhone XR is dead on each and every time.

I am going to factory reset mine and see if that helps (haven't done it in a while so it is due one). Maybe something else is conflicting with it.

I finally got my pixel 2 (with pie) working, I hope.
Basically I had to
Turn ON Battery Optimization and turn OFF Location.
I rebooted
I Turned OFF Battery Optimization and Turned ON location.
I rebooted.
It has worked now, for the past couple days.

1 Like

I have been having the same issues with my Pixel 2 XL, I will try this thanks.

I'll give this a try as well.

Will also try

Didn't work for my wifes P2 XL. She left this morning for work and it still shows her as present, while L360 worked fine

Is there a trick to get it jump started again, to basically know she is away, from my end which is at home with access to everything except for her phone.... :slight_smile:

Rick

So far it has worked for me. When I got home yesterday it was triggered right away and when I left this morning it also worked. But I need to give it a good couple days at minimum or a week to really know if its working properly. My wife's iPhone XR has been fine though.

Mine just doesn't work consistently at all, my wife's is the same. I've done everything that everyone has suggested to both phones. I've been at work now for 30 minutes & Hubitat App thinks I'm at home.
Worst part is I'll get home, Life365 will open my garage door, then about 30 minutes later the door opens again, set off by Hubitat. I'll have to remove it from RM

I left 45 mins ago, nothing. Opened the app and it immediately noticed that I was gone

P2 running Pie
Rick

I'm still at work, Hubitat says I'm at home still. Just opened the App on my phone about 5 minutes ago. Still showing me at home.
I think Hubitat need to look at it, simply doesn't work reliably enough to use???