Presence Detector Mix

Presence detection is a tricky problem. Because each and every system has a different set of sensors available almost everyone’s presence detection tends to be fairly unique. However, a generic approach to aggregate the states of multiple sensors to detect presence is posted here:

The above is just a generic Rule. You still need to figure out what you want to use to detect presence. The fact that you are working with iPhones make this a little difficult because Apple turns things off. To reliably detect the iPhone on the network you either need to do so from your router or use an external command.

Bluetooth detecting works best, I’ve found, when you have multiple detectors. I have multiple Raspberry Pis scattered throughout my house anyway so I plugged in a BT dongle into each and wrote the following script to report BT detections to OH.

I’ve found with at least two detectors I can pretty reliably detect both my Android and my wife’s iPhone.

There is a project called reelyActive (tutorial for integration with OH is below) that is able to passively detect BTLE which makes it great when you have devices like fitness trackers, smart watches, etc.

This should be enough to get you started.