Android Prescence Detection

Is there a way to use the companion app for android phone prescence detection without remote access from phone to home HA server?

Presence in just the home?
The phone app can send out BLE which ESP32s in the home can detect.

This could be battery intensive though

Have you looked at Bermuda?

Cheers guys, I will provide some more context.

I am trying to achieve a simple home/not home state without having to use an external third party, open ports, vpn, have HA companion actively open…etc…

I mainly use the companion app to get firebase notifications when not at home, which works well, but I also get flooded with them when home which is what I need home state to filter out.

I previously had an iphone and used the iphone tracker which just plain worked. I have now switched to android and for the life of me nothing I try works (unless I open ports and have HA app open).

For not home state I just need to be able to set it after a max 30min of not being detected as I am not too worried about having this immediate.

For the home state I need this to detect initially very quickly, preferably as I enter the wifi signal range of my house again so that door alarm notifications don’t get sent.

As I said, it all just worked when using the iphone tracker, I have tried ping and nmap but my samsung phone won’t respond. I have tried geolocation in the app but obvioulsy need the app to be able to report location change to HA server. I have also tried using the app wifi tracker but it never seems to change.

I have all ubiquiti network gear so I may try the integration next, and yes I have assigned static IP to phone.

Cheers in advance for the help.

In that case I would set up a binary sensor that turns on when there is a state change (any state change) on the battery sensor on the phone.
If the state is stale for more than 30 minutes then turn off.

It could give you false reports when you are asleep.

Well its always the last thing you try, the unifi integration works.

The group delay of unifi then the default 300s in the integration add up to a 10min delay between switching off phone wifi and device being registered as away.

The return of wifi connection has a delay of 15 to 30s which is acceptable, wish it was quicker but at least it works repeatably.

Thank you for your suggestions though, the bermuda does look interesting, wonder how it is on battery life though.