Geofence broke in 1.6.4 through 1.67

Dunno if this is a change in Android's verbiage since the Hubitat app was written, but currently the app says "Geofence service is not available now. Go to Settings>Locations>Mode and choose High accuracy"

In Android 11 this should be: Settings>Location>Advanced>Google Location Accuracy>Improve Location Accuracy>On

The issue is not with the app/phone determining the GPS location of the phone. The issue is the location of the HUB is reported at LAT: 0 and LONG: 0 so unless you are at 'null island' you wont be 'in the geofence'.

So why does v. 1.6.3 work and 1.6.4 doesn't?
Nothing on my phone has changed and I have checked so many times to make sure location accuracy IS turned on. Nothing has changed.
I will stick with 1.6.3.

Same thing here. Using a Samsung S8 and it stopped at 1.6.4 and 1.6.6. Downgrade to 1.6.3 works fine again.

Hub Version: C7
Hub Firmware: 2.3.0.124
Mobile Device: Samsung S8
Android Version 9
App Version: 1.6.6

I had a power outage a couple weeks ago that forced me to log back into the app on my phone. Ever since then geofencing hasn't worked. I get the same issue of the pin and circle not showing up on the map on the phone app and showing 0 for lat and long on the debug info. I tried pressing the "Send Geo Event" button, clearing the app's cache and data, reinstalling the app, and upgrading the hub firmware. None of that worked. The only way I was able to get it to work again was by installing 1.6.3, setting up the app again, and then updating to 1.6.6.

I have been running V 1.6.8 build 128 (which i believe is a beta at the moment) and it looks to have resolved the issue. I also updated my wife's to the beta which also resolved her issue.

My geofence stopped working about a month ago. Same symptoms: 0,0 lat/long in debug log and no circle. Suspect it broke when I was presented with the 'find hubs on local network' screen while I was away from home, and maybe attempted to log out/in to get back to the dashboards.

I just gave up waiting for a fix and joined the Beta program, upgraded from 1.6.7 to 1.6.8 b128. But, it's still broken, same symptoms. Cleared data/cache, logged in again, enabled/disabled geofence, changed radius. Nothing changes the 0,0 lat/long.

This is so fundamental! Is it ever going to be fixed? Is the only answer to downgrade to 1.6.3? And how would I do that?

2 Likes

If you have an Android phone, you would need to download the APK and sideload it. I got mine from APK Pure. I'm not sure about IPhone.

After I set things back up in 1.6.3, I updated to 1.6.6 and paused automatic updates on it. It's been working fine for me ever since. I'm waiting to see how things go with 1.6.8 before I turn automatic updates back on.

Mine has been giving me trouble since early January. Both on Pixel 6 and Samsung Galaxy Fold.

If I'm outside the geo fence it won't update that I'm outside the geo fence. Even if I click Send Geo Event.

However if I resize the geofence radius it will update correctly that I'm outside the geofence.

GeoFence doesn't work for me in 1.6.8 build 128 - I can move the geofence around and everything looks ok in the app, but nothing changes on hub.

I am having the same experience with 1.6.8 build 128 and the hardware at the hub level is:

  • Platform version:2.3.0.124
  • Hardware version:Rev C-4

It's not reacting on Android or iPhone. Mine is a new install so I haven't ruled out user error but I've dug in pretty deep at this point.

@BrenenP ,. If the latitude and longitude are not staying 0.0 you have a different issue and I would recommend a new thread with details

You will have to be explicit on whats not working, screenshots help.
Few starter questions....
Is the pin on the app on your phone in the correct place?
Can you recive messages from your hub (could use built-in notification app to test)?
Have you disabled app optimisation and battery optimisation on your phone?
Have you allowed all the app permissions on your phone?

Exactly the same here - build 1.67 build 126 Android 10 GS9

@mabstrategy,. Can you confirm the exact issuse. Does the latitude and longitude say 0.0? If that is the case I would hope and maybe suggest signing up for the beta and getting 1.6.8 to see if it resolved your issue.

Latitude and longitude are correct in the hub settings if that is what you mean?

Basically, and as others have reported, when I open up the app, the geofence tab clearly sees me as out of the geofence, but it does not update until I touch the radius slider device, then it updates immediately. Same for when I return - see image below which clearly shows me inside the geofence, but the app states I am outside of it, until that is, I touch the slider then boom, inside the goefence again with accompanying push message.

Yes, that is a different issue and I believe there is already another thread on that topic

1 Like

Has there been any progress on this issue? I'm having the same problem of LAT and LON both as 0 in the mobile app.

Galaxy Note 9 (Android 9)
Hubitat Mobile App version 1.7.2 build 138
Hubitat C-8 Firmware 2.3.8.118

It's got me looking for an App data editor so I can just go in and edit the values manually! That's too much trouble though... since Android directory structures are such a mess.

Thanks,
Gary

I gave up on the geofencing. The geofencing is appears to be PHONE specific. I have two hubs in two different cities and travel between them. So resetting the geofence each time I travel is too much work. I use the iphone wifi phone sensor. GitHub - joelwetzel/Hubitat-iPhone-Presence-Sensor: A virtual presence sensor for Hubitat that checks if an iPhone/Android is on the WiFi network.. Setup static IPs for the phone(s). You may need two if you 2.4 and 5 GHz. The link says iphone, but I have an Android (blu G9 pro) and it works like a charm. My hubs are a C-7 and a C-8.

Laurie...

Since you are on Android i suggest using HD+ and it has accurate presence plus so much more.