VPN causing presence issues

I have a ubiquity edge router. I'm using that to create the VPN.

I've turned off the wifi networking and bluetooth in the location service which if I'm not mistaken turns off the wifi location services and strictly uses gps. They've been off for several months

Have you ever looked at a map when you are VPN'd to see what your location is? Because the HE mobile app uses your phone's location to send a signal when you enter or leave the geofence. That's all. It doesn't report your location to HE or your hub.

This wouldn't matter if you weren't connected to wifi ever.

Then your phone couldn't detect it either. The Hubitat app only updates when your phone updates location. So, again, this is normal if your phone's location service is "sleeping".

I suspect you aren't actually having a problem but instead you are just seeing normal Geolocation delays. You are not getting any false arrival signals, correct? When you VPN it is not detecting you as being at-home?

1 Like

What OS is your phone? I use Open VPN to connect when away and it hasn't caused any issues on iOS.

I am guessing that this is causing your issue. I am betting your phone is somehow determining your location by IP address, and when you VPN to your home, the traffic is flowing through your router and back out its WAN port to geo-locate you.

Phones really don't like using the real GPS module, especially since it is basically worthless if you're inside a building.

iPhone XS

Blockquote

But with it turned off wouldn't it just rely on the gps? I'll try turning it on and testing and see if that helps resolve the issue. I think I had the same issue before I turned it off but I use it so infrequently I can't remember

I use iOS 13 on my iPhone 7. I run OpenVPN on my ASUS Router. I never have any issues with my Hubitat presence sensor when I connect via VPN to my home.

Are you getting false reports of you being at home when you aren't? Or are you just experiencing delays in your arrival being detected when you arrive home?

I guess delays in arrival but both of those delays ended by me doing something so I'm not sure I'd call them delays.

You will need more than just GPS for location accuracy. You will need GPS, wifi and cellular. Turn them all on and do your test.

My apologies...I thought your issue was that you were getting false reports of you arriving home. Your location will only update as fast as the phone does. So, delays in reporting your location are unrelated to the app itself but usually due to your GPS being "asleep".

Are you running the latest Beta App?

Sorry for the delay in updates. Just tested and here’s what happened. I turned on the wifi location setting as I mentioned above. left the house turned on my vpn. Looked at the map I was indeed where it says I was. Turned off the vpn went home. There was a delay, I think when I joined the wifi it started my arrival rule. Which is better than it has been but it seems that it’s still ignoring my geofence when the vpn is turned on while I’m not home

Before you joined your Wifi at home, did you open your map app to update your location? Your phones GPS is not on constantly unless it is actively being used. If it was, you'd get about an hour of use out of the thing before the battery died. So, the GPS only wakes up occasionally to update your location. So, a delay when you arrive home is expected. One of the times that it will update your location is when you join a wifi network. Next time you leave the house, do the same thing but when you get home, don't join the wifi, just open your map app first. I am willing to bet that your arriving home routine runs as soon as you do.

Thanks I’ll check it out tonight

Well this was an interesting experiment. Turned on vpn while I was away. Checked the map it was accurate. Pulled up near my house no WiFi hubitat saw me inside the geo fence marked me home marked me present but hsm didn’t disable so when I walked in all my alerts went off despite being present and not in away mode. Opened one of my doors then my arrival rule went and hsm disarmed itself.

I should note that I went out 3 other times today with no issue

Let's deal with one problem at a time. So, your presence problem is fixed then?