Just curious .... what makes this specific to iPhones? It looks like it checks for a device's (specific IP) connection to the WiFi network. Is there some reason this would not work for an Android phone .... or a laptop .... or any other mobile WiFi device? Unless the responses expected are iPhone specific ... I thought this may work any mobile WiFi device with a static (or permanent DHCP lease) IP. I'll try that out when I get home ... but thought I would ask first.
It's interesting that the phones are behaving differently. I've been watching mine all day (it's an iPhone SE if that matters) and the presence sensor only goes OFFLINE if I turn on airplane mode or leave the house. I wonder if I have a ton of apps constantly requesting updates, so it's just never going to sleep. Hard to know.
What I've done with this is basically make composite presence. I have this as a presence sensor, and I use the Alexa app as another presence sensor. Then if either of those are present, I have rules that set a "combined virtual sensor" to present. That way if Alexa doesn't detect my arrival fast enough when I drive up to the house, the phone will at least connect to wifi when I get in the driveway.
Who doesn’t have at least one app with always on? For 99% of end-users this will work without ANY device prep. Meaning once the device hits your network, you have a reserve IP and then can create a presence device for that phone. This is a HUGE benefit especially if you want to do something cool for guests who are staying longer than anticipated and can modify rules and routines simply based on if those guests are present at your home.
THANK YOU @jwetzel1492 for creating this! You have solved the last puzzle for Presence for me. Now be careful as the HE team may permanently borrow this for additional presence capabilities like they have with @Cobra’s many app contributions.
I have a Huawei (android) but it does not appear to be working.
Can the android users out there confirm how they configured the device.
Is it just the ip address. 192.168.0.xx?
I've tried various combinations with no joy.