Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joelwetzel/hubitat-iphone-presence-sensor

A virtual presence sensor for Hubitat that checks if an iPhone/Android is on the WiFi network.
https://github.com/joelwetzel/hubitat-iphone-presence-sensor

groovy hubitat iphone presence smarthome

Last synced: about 1 month ago
JSON representation

A virtual presence sensor for Hubitat that checks if an iPhone/Android is on the WiFi network.

Awesome Lists containing this project

README

        

# iPhone WiFi Presence Sensor for Hubitat
A virtual presence sensor for Hubitat that checks if an iPhone is on the WiFi network.

Note: iPhones can put their WiFi to sleep, so you should not use this as your only way of detecting presence. However, it can be used to augment other presence sensors. Interpret results this way:

- If this sensor shows "present", the iPhone is DEFINITELY present.
- If this sensor shows "not present", the iPhone may or may not be present. We don't know.

## Compatibility
I only have iPhone devices to test with, but other users have reported it working with the following Android devices. I cannot provide support for Android myself though.
- Nexus 5x
- Pixel XL
- Pixel 3XL
- S9
- Nokia 6
- Note 9
- S8+

## Installation

The best way to install this code is by using [Hubitat Package Manager](https://community.hubitat.com/t/beta-hubitat-package-manager).

However, if you must install manually:

1. Open your Hubitat web page
2. Go to the "Drivers Code" page
3. Click "+ New Driver"
4. Paste in the contents of iPhoneWiFiPresenceSensor.groovy
5. Click "Save"
6. Go to the "Devices" page
7. Click "+ Add Virtual Device"
8. Set "Device Name" and "Device Network Id" to anything you like. Set "Type" to "iPhone Wifi Presence Sensor".
9. Click "Save Device"
10. On the device list, click the name of your new sensor
11. Set "IP Address" to the local static IP address of the iPhone.
12. Click "Save Preferences"