- You need something to act as a hub at home. Apple TV, HomePod, or always-on iPad work. Also, your Hubitat hub needs to have a static IP on the local network.
- In Hubitat, create a "Virtual Presence" device for each person
- Install the "Maker API" application give it a label (e.g. "Presence Detection") and turn on "Allow Access via Local IP Address"
- In the "Select Devices," select all virtual presence sensor you created in step 2. above
- In the "Local URLs" section, click the "Get all Devices" link and write down the "id" values for each device
- In the Shortcuts app on iOS, select the "Automations" tab and for each device, create two automations:
a. When "Person A Leaves Home" -> URL ("http://HubIP/apps/api/xxx/devices/yyy/departed?access_token=zzz") -> Get contents of URL (where xxx, yyy, and zzz are the values listed on the Maker API page on your hub)
b. When "Person A Arrives Home" -> URL (as above, replacing "departed" with "arrived") -> Get contents of URL
7 Likes