[UPDATED] iPhone WiFi Presence Sensor

It's not rocket science:

  • Get a battery backup system for your Hubitat
  • Install Hubitat Hub Controller via Package Manager
  • Install iPhone WiFi Presence Sensor via Package Manager
  • create a new virtual device and change the driver to iPhone WiFi Presence Sensor
  • Point your "WiFi Presence Sensor" device at a suitable IP device that will respond to HTTP commands and isn't on battery backup.
  • Setup your WiFi Presence Sensor with an appropriate "Timeout Minutes" so Hubitat knows it's actually offline. eg I use 10 minutes because I don't want reboots and updates to trick WiFi Presence Sensor into thinking it's offline.
  • Setup a Rule Machine rule as I showed earlier to glue it all together. I use a 6 hour timer because my backup unit can run my C7 for about 7 Hours.

2 Likes

I was asking for detail on Hubitat Controller, where to get it (you answered that), and how it works. I'll figure it out, I'm sure.

Well, I thought I would figure it out, but it's not obvious. After installing the app from the package manager and creating a new virtual device for the Hubitat Hub Controller, am not sure what to do next. My original question from many posts ago still stands:

What type of action did you choose in order to have "shutdown() on Hubitat Controller" as a choice when adding the action?

"Run custom action"

2 Likes

How about a list of instructions, please? :slight_smile:

image

I don't use Hubitat controller so I don't have it as a device to select after you set this to then select the dropdown for the shutdown command.

This.

Is there a consensus on a timeout value for Iphone going to sleep and disconnecting from wifi?

I'm using iPhone Wifi Presence Sensor for both mine and my wife's iPhones along with the Combined Presence app. For whatever reason, her phone decides to take a virtual walk outside of the geofence from time to time when her phone ALSO happens to be taking a coffee break and disconnects from wifi while asleep. Of course, she is still home working away in the office until..

THIS fools the Combined Presence app into thinking she is out of the house and sets the HSM to Away and the Blink cameras to Away..

Within moments, I get a notification on my iPhone that there's been an intrusion at the house. I then get a nice video of her freaking out because the Aeotec siren is going off, the dog is barking, and I'm persona non grata when I get home due to my "little smart home" hobby.

Don't use wifi for anything other than fast arrival detection - iPhones turn off their wifi to conserve power.

What are you using for geofencing?

I'm using the Hubitat app geofence. I still have the Smartthings app which seemed to have pretty good geofencing, but have migrated all but two wifi smart plugs over to Hubitat, so I turned off the presence function on the app to conserve battery power and also because I'm clueless how to use it in combination with Hubitat. :slight_smile:

BTW, thanks for the quick reply!!

As of today, due to the false alarm... I made use of my leftover Smartthings button for HSM activation and deactivation. No more presence sensing for that beast. I do want to continue to turn on/off the Blink cameras via presence.

1 Like

These two events are probably not coincidental. iPhones use WiFi to help with location accuracy.

I was wondering if there was a connection. I don't think she ever experienced a "false alarm" while using the phone actively. (May she never read this forum... but I thought the wifi sleep issue wouldn't be a problem because her phone was in use about 99% of the time due to whenever I see her it's in her hand)

So, while I’m a big fan of Hubitat, my personal opinion is that the geofencing in their app is not reliable enough to recommend using it.

I use HomeKit and Alexa for my geofencing.

1 Like

I'm in the same boat. I use the Alexa app on our iPhones to flip a virtual switch that is used in this great app of yours, and now that I have homebridge running, also added Homekit which seems even more reliable.

1 Like

I use Life360 which I find to be very reliable...and useful in its own right (although I completely understand that some may leery of handing over this personal data to another company.)

I am getting more into HomeKit though, so I'll have to try using it for mobile presence detection.

1 Like

I’ve switched back to life360 for about a year now after trying the HE app for a few months. It just works.

1 Like

Yes, I've found that every once in a while, Alexa geofencing gets "stuck" for a day or two. That's one of the things that my Combined Presence app deals with. If you have two geofencing sensors, and one gets stuck, it can still handle that.

Fortunately, the Alexa and Homekit geofencing don't seem to give any phantom arrivals and departures, at least in my setup. It's just Alexa getting stuck and not changing occasionally. But the Homekit arrivals and departures have been very good.

(I did have one time where Homekit geofencing went crazy, and it thought me and my wife were leaving the house and coming back every couple seconds for about 10 minutes. A reboot of our Apple TV fixed it. Hasn't happened again.)