Using phones as location sensors

Hi Guys,

I’m using phones to confirm the presence of people in the home. I.e if all phones are away, set alarm on.

It’s proving a bit hit and miss. I’m just wondering, does the phone refresh and cause the routine to run or is the hub keep looking for the phone and in its absence run the routine.

Thanks in advance.

Presence can definitely be tricky and there have been some specific issues lately as well. What’s the brand and model of the affected phones?

Neither really, the Routines run in the ST cloud and the hub is not involved at all.

My understanding is that the ST app uses the location services provided by the phone OS to set up a geofence. The app is alerted by the OS when the device enters or leaves that geofence and communicates that to the SmartThings cloud.

Originally that would have resulted in a Groovy Device Handler being called and that would have set the presence attribute of the presenceSensor capability appropriately. It now uses a ‘mobile connected’ integration which is not really documented but has the same end result.

The bottom line is that the OS has to be able to detect the device crossing into and out of the geofence and the app has to communicate that to the ST cloud.

Where does it go wrong? I can only speculate on this, but the impression I get is that it is something of a one shot thing. So, for example, if you don’t have a data connection when it is needed there might not be another try. And that’s if everything else is working properly.

Sometimes things don’t work properly. For example, if the OS has put your app to sleep, or worse, then the app won’t be listening when it needs to.

I don’t know if it still happens, but it certainly used to be the case that not all phones could use data while on a call. So that was another potential problem.

Both iPhone UK.

I think it’s a 12 that’s causing the issue.

Are both phones using the most recent iOS version? There were some problems recently that were then corrected when Apple released an update to the operating system.

1 Like