Currently I’m exploring the possiblities to have a person who is connected to the wifi is registered as in home.zone.
Right now I myself as an Android user and my GF as an iPhone user. But the problem is that the iPhone says it’s tracking the location, but obviously isnt. So when she get’s home or leaves the home. It’s never registered the right way.
Currently I’m running a Omada network at home with some AP’s.
I would like to ideally have a function or something that goes like:
If [phone.from.gf] = connected to WiFi, then she’s home.
If [phone.from.gf] = not connected to WiFi, then she’s not home.
Is this something to achieve easily? I’m currently looking through a lot of things. But I’m afraid I’m either too dumb to understand.
Anyone have a guide on how to set this up?
The sole thing it needs to do is to check the WiFi and see if my GF’s iPhone is connected yes / no.
You don’t say whether you’re actually running HA or just thinking about it…
This is easy to do with phones which have the HA companion app on them - wi-fi state and wi-fi connection for each phone are among the sensors updated in Home Assistant. Alternatively you can set up a home zone based on Home Assistant’s location and track devices entering or leaving:
The trouble is that all phones sleep periodically to conserve battery, so a single sensor is probably going to be unreliable. You need something else as well, such as a bluetooth beacon.
I’m currently using Home Assistant. Sorry for not clarifying.
So, if I understand correctly:
My Android phone & my GF phone have the companion installed.
I set up a home.zone, in the event my GF or myself leave the house and the home.zone = 0.
Depending if the home.zone = 0 or more than 0, it should turn on / off lights.
My Android phone does it perfectly. My GF’s iPhone doesn’t.
Even if she opens the companion app, it fails to register where she actually is.