Why?
If you assign static IPs to these devices on the router the problem becomes very simple. You just need the Network binding.
This is really hard and I’m not sure I’ve seen anyone provide a solution to this beyond motion sensors. You could use something like reelyActive Smart Spaces Revisited and see when any device with BT turned on is present, but you cannot uniquely identify any given device because most will periodically change their BT address as a privacy/anti-tracking feature. And you will have no way to tell whether that someone is supposed to be there or not.
I found just the opposite, with up to a 30 second to 1 minute lag between my entering an area and actually being reported in that area. A well tuned Network binding with arping will see any device, whether it is sleeping or not, within 5 seconds.
Check out AutoLocation which is better, but GPS is still pretty slow to update. But you can use other stuff in Tasker which may work better such as 'WiFi Near or 'Cell Tower Near
.
This is why the Generic Presence Detection tutorial has a flapping timer. Only if the phone is off for five minutes would it count you as away. And there is an override switch that you could flip if you know the phone will be offline for longer. I use that when we have a baby sitter over to stop all the “blah blah happened and no one is home!” alerts.
I believe it still let’s you define a geofence that triggers a Switch when you enter/leave the geofence. But that was before the new GPS Tracker binding so I don’t know if that is still possible.
It’s worth mentioning that FIND doesn’t work with iOS, unless something has changed since the last time I looked. It’s one my list of things to play with at some point, too little time myself.
That’s what the override switch is for. And the general advice (I figured it was common sense but may it isn’t) that nothing critical should be driven by any presence detection that isn’t 100% solid whether you have a device on your person or not, which is reaching the edge of what is technically feasible frankly. If you don’t have enough time to manually flip the override Switch or manually do something to avoid alarms or something when you arrive home without your phone, you should be relying on presence to drive that automation.