IOS Location

I just installed HA container few days ago on my Pi 4. Currently I connected the ios app home assistant to HA on the pi and get it to track my battery and location. I also added Spotify integration and it’s working ok. Now I want to have an automation that when I leave and come back home, it should play spotify. But I tried to leave but HA still shows that I’m home. And if I leave, I can not connect to local HA anymore, so how can it know I left ??

Is there a way to continuously track my iphone location, and when it does not resposne, HA will assume that I’m out?

I have the same problem.
Although I allowed the Home Assistant App to access the location in background.

Currently im assuming the state of the presence of the device in my WiFi via the Integration for my Router.

Unless you set up HA for remote connection it wont (continuously monitor positioning).
I use icloud integration. One downside to icloud integration is you have to re authenticate every few months. If you have family, set up family in IOS that way you have access to all person(s) with authenticate every single, you only need to authenticate the main member.

The wifi present detector will detect device home or not home

you can use person integration to add multiple tracking method for accuracy

1 Like

I can recommend this https://github.com/mudape/iphonedetect (hint: install from HACS).

What is the advantage of this over the builtin nmap tracker?

I my view:

  1. I can add a ‘consider home’ threshold for the tracker, ie. only after a certain time, state would change to ‘home’.
  2. NMAP does not seem to catch devices in deep sleep.
  3. NMAP is a port scanner and default scans several ports that I am not interested in being scanned (and thus have blocked) - alternative is to tweak the configuration and maintain this.