Help with location and zones please

Hi all,

I have been trying to grasp how people, users, zones and tracking all interact but still confused and yes I have read the article in the guide :wink:

I have a home zone and mobile phone tracking via iPhone Detect integration, I do not have external access vai Nabu Casa (yet)

Looking at my entities, on my laptop at home i get the result in the picture below for my phone entity

The history is odd, the "Pixel 6" entry shows it at home 100% of the time whereas the "Dave Pixel 6" entry shows me coming and going as expected (work etc)

Is there a reason for this?

I have myself designated as a "people" in settings, also as a user with separate logins for my laptop and my phone companion apps.

I'm not sure if this is all as it should be or i have messed up somehow??
It seems that its not using the GPS/zone track, only my IP tracker?

Any help appreciated, I have searched but this seems a pretty complex part of HA.

I have Nabu Casa and use the companion app on my wife's and my own phone for location purposes. I also have set up several zones, like where our children live. Furthermore I use the location features of my Tesla and my wife's Hyunday through the Tessie and through the Hyuandai integrations.

Which device trackers have you assigned to your person.

If you do not have external access through Nabu or other, the minute that device drops off your net it's unable to contact to even say not_home so your companion tracker will fall out when it times out.

Your ip tracker based on the net will light when you're connected to that device on the net.

YOUR state depends entirely which trackers you have marked to your user.

These are the trackers I use. A unifi entity marking the Mac and a device tracker on my HA companion

So what's the question.

I have assigned "Dave Pixel 6" to my person - its the IP tracker integration.

So to use the zone & therefore the companion tracker I need to get Nabu Casa?

I presumed that as the phone can still get notifications via the Google cloud thingy, it would still track, I am wrong yes ?

I will look into Nabu Casa I think

That is the expected outcome for a phone-based tracker when there is no way for the phone to reach HA from outside your local network.

That is the expected outcome for a router-based tracker that reports when you phone is connected to the local network.

Until you get your external access sorted, it will probably be best to remove the Mobile App tracker from your person. Also, in the settings for your person, check if "Allow login" is enabled. If it is, any device with a tracker that is logged into with the username attached to that person will be used to determine the location of that person entity.

2 Likes

Thanks

I have just signed up for Nabu Casa - its time to support HA I think.

Hopefully I'll be able to login when away tonight, I'll have a look later, seems like its all setup ok.

With Nabu, do you still use the companion app or is it browser only when away?

2 Likes

The companion app works with HA Cloud. IIRC, once you have put your account details in the main settings, the companion app should automatically set the address for external access... but you may need to restart the companion app. It's been a while since I set mine up, so I don't remember exactly... but I do not remember it being complicated.

1 Like

Great, thanks

Hmm, i think i'm in the wrong thread now but the laptop connects via cloud perfectly, most impressed.

The mobile & companion app however says no, insecure connection or some such.

Do i need to adjust anything here?

Go into Settings in the companion app, click on your server's name at the top. In the "Connection Information" section, check that "Home Assistant URL" is set to use Home Assistant Cloud.

You may also need to change the Connection Security settings as well as the devices Location setting.

If you have a Iphone, then make sure that the Companian App is set to share location "always". I don't know about Android settings.

Hmm, i did a google and it suggested i load the app, go to settings and click on my server then add the url for Nabu Casa connection, I did this but i now see two servers ?

Looking into my internal server i see it has the home network url still set, and an empty external url, looking at the new server i see the home url is now my NC url and external url is greyed out.

I'm not sure but i think this is maybe messed up and both url's should be in the one server entry??

It has connected though so thats one thing :slight_smile:

Fixed it

I think I'm good to go now - I copied the external URL into the original server tab, moved the internal URL to correct place and deleted the new server connection.

It logged out, logged back in and all looks great.

I checked on the map and its showing my exact location correctly so that looks good too.

Thanks for all the help

3 Likes

One last thing - will the history eventually show which zone I am at instead of just 'Home' or 'Away' ??

I've now created a zone for work and one for my partners home.

Answered my own question - yes the history does show where i am but only if you look at the right entity LOL

The picture above was showing my IP tracker not the GPS/App tracker so it would never show anything other than home or away, the GPS one does show me at the location I am now which is pretty impressive to me at least.

Glad to support HA, been a long-time user now it's time to give-back I think.

2 Likes

It would. But not under the history of "Dave Pixel 6" which is HA detecting whether you are on home network, but the (other) history of "Pixel 6", which is your phone reporting where you back to HA.

And if you put both your "Dave Pixel 6" and "Pixel 6" under the yourself as the Person, as Nathan suggested, then you can see the location of this Person moving in and out of the zones.

Oh, wait, OK, I see you have figured it out.