How do I setup presence using Homekit and Homebridge?

I'm going to suggest "the long way" because it packs all the fiddly stuff to the end.. you'll see it work first, then at each step after, you'll know what you broke. :smiley:

Create a Virtual switch to begin with.. you'll swap out the driver later. "Jane Present" or similar. Add it to Homebridge and verify you can On Off from the iOS Home app and see the changes in Hubitat. If you get this far, you have it all working, just need to automate it and make it 'pretty'. :slight_smile:

On the iOS Home app side.. Got an Automation added? "When People Arrive" and have that turn on "Jane Present" switch. Then add a 2nd automation, "When People Leave" and have that turn off "Jane Present" switch.

The first automation 'suggests' "anyone arrive" and "anyone leave" and that's great to start with... but I suspect you'll want to differentiate... so make another "Tom Present" and add to Homebridge, verify that it works as a switch then create new automations... however, this explanation has to take a detour.. you have to add Tom's Apple ID to your Home App. Click that Home icon on the lower left, then the home icon upper left. In the middle is Invite.. go through that process and Tom will have to accept the invite on his phone.

Then it's back into Automation to add a 2nd "When People Arrive" but this time you'll be able to pick Tom's Apple ID and tie it to "Tom Present".. duplicate for "People Leave"

Then go into your two automations and change it around to be just you, not "anyone."

You have 4 Automations, go into each and make sure they are ENABLED.

Let me know when you get this far.

What's left is to change the driver out to a 'hybrid Presence + switch" driver. Homebridge may need a restart to see the new Attribute. That will put two Home tiles for each person. I have a room I create called "Whole Home" and put the 4 tiles in there. You can make one of each pair a favorite, depending on how you use the iOS Home app.

If I had to start all over, since I do know it works, I'd start, of course, with the correct Custom driver and save a couple steps. I'd get the Significant Other's Apple ID added first, so that I could create each Automation pair right (single person) to start with.

One of many 'Hybrid' Virtual Presence drivers:
https://raw.githubusercontent.com/HubitatCommunity/Virtual-Presence/master/Virtual_Presence.groovy

That one is easy for me to find :smiley:

4 Likes