Page 1 of 2

What is current best practice for iOS home/away detect?

PostPosted: Sun Jun 04, 2023 1:40 pm
by dliccardo
Is there a consensus on current best practice for home/away detection based on iOS devices?

Currently, this is what I am doing:
(1) Each family member's iPhone is setup to send email to the home when leaving or arriving. This is setup in FindMy app on each iOS device. (notifications about you -> When I leave, and when I arrive)
(2) I use Email+ to receive these emails and process a regex on the subject to detect who has arrived or left.
(3) I adjust each persons home/away state in an indigo variable triggered by (2)
(4) I trigger various things when these variables change.

I have been doing this for a couple years. It has worked ok. Some reliability issues for sure. I have not tried to go super deep into root causes, but my sense is there are at least two sources of unreliability:
(1) FindMy doesn't always seem to trigger and/or send its email notifications on some devices and/or sometimes iCloud wants re-authentication or has some other excuse for not triggering or sending notifications or perhaps is latent in sending its notification.
(2) Email+ doesn't always process incoming emails timely or some other issue with incoming emails. I am using a gmail account, IMAP with IDLE. Just looking at some other forum posts, it looks like this is a known issue with gmail now? So, I guess I should switch the home to an iCloud account?


Zooming back out, what are others doing?
What else should I consider doing here to tweak the above setup for high reliability and low latency?
Another approach altogether? (i.e. I do have a synology router, so perhaps detecting iOS devices connected to the router?)

Looking forward to hearing about others experiences and solutions!

Re: What is current best practice for iOS home/away detect?

PostPosted: Sun Jun 04, 2023 1:49 pm
by FlyingDiver
Maybe something like Locative with the GeoFence plugin?

Re: What is current best practice for iOS home/away detect?

PostPosted: Sun Jun 04, 2023 3:27 pm
by racarter
I use the Home Remote app. Set up a geofence and have the app operate a virtual switch in Indigo when you leave or enter. It’s worked well for me for several years; just had to modify the commands it sends to Indigo following the recent remote access changes.

Re: What is current best practice for iOS home/away detect?

PostPosted: Sun Jun 04, 2023 4:03 pm
by Londonmark
Virtual devices for each person that are published to HomeKit with HLS and then switched on or off as people come home or leave via HomeKit automations. Pretty rock solid now.

Re: What is current best practice for iOS home/away detect?

PostPosted: Sun Jun 04, 2023 4:26 pm
by DaveL17
racarter wrote:
I use the Home Remote app.

Ditto. I've found it to be very reliable.

The Home Remote app hasn't been updated in quite some time and I'd suspect it'll be culled by Apple at some point for lack of development. I'd recommend folks with iOS devices download it even if only to have it in reserve.

Apple Shortcuts also work well, but each traversing of the fence requires affirmation (no automatic fences are allowed).

Re: What is current best practice for iOS home/away detect?

PostPosted: Sun Jun 04, 2023 6:09 pm
by ryanbuckner
I use the Life360 plugin and the service

Re: What is current best practice for iOS home/away detect?

PostPosted: Mon Jun 05, 2023 11:50 am
by Different Computers
I use a combination of device presence on my network as reported by the UniFi plugin, and the FindFriendsMini plugin.

Re: What is current best practice for iOS home/away detect?

PostPosted: Mon Jun 05, 2023 4:23 pm
by mclass
FlyingDiver wrote:
Maybe something like Locative with the GeoFence plugin?
I’ll second that! Works well on two separate properties, each with their own separate Indigo systems.


Sent from my iPad using Tapatalk

Re: What is current best practice for iOS home/away detect?

PostPosted: Thu Jun 08, 2023 12:02 pm
by ryanbuckner
80% of the apps I have on my phone ask permission to use Location services on the iPhone. I would love Indigo Touch to provide this natively.

Re: What is current best practice for iOS home/away detect?

PostPosted: Thu Jun 08, 2023 12:16 pm
by DaveL17
ryanbuckner wrote:
80% of the apps I have on my phone ask permission to use Location services on the iPhone. I would love Indigo Touch to provide this natively.


Unfortunately with Apple Shortcuts, it asks for permission every time the shortcut is run (for location-based shortcuts and a few others as well).

Re: What is current best practice for iOS home/away detect?

PostPosted: Thu Jun 08, 2023 2:09 pm
by Londonmark
DaveL17 wrote:
ryanbuckner wrote:
80% of the apps I have on my phone ask permission to use Location services on the iPhone. I would love Indigo Touch to provide this natively.


Unfortunately with Apple Shortcuts, it asks for permission every time the shortcut is run (for location-based shortcuts and a few others as well).
But if you create a virtual device for each person in indigo and publish it to HomeKit you can switch it on and off without being asked for permission . It works just like a light that switches on when you get home. And you can then use that to trigger Indigo actions. And in fact you could also get Indigo to run a shortcut.

Re: What is current best practice for iOS home/away detect?

PostPosted: Thu Jun 08, 2023 2:35 pm
by DaveL17
Londonmark wrote:
But if you create a virtual device for each person in indigo and publish it to HomeKit you can switch it on and off without being asked for permission . It works just like a light that switches on when you get home. And you can then use that to trigger Indigo actions. And in fact you could also get Indigo to run a shortcut.


In this case, I was just talking about using Geofences in the Shortcuts app. You can't use location-based triggers in the Shortcuts app without express confirmation each time. Other than that, they work very well. There's a few other things that Apple has locked down in Shortcuts that require an affirmative response before they'll run.

Re: What is current best practice for iOS home/away detect?

PostPosted: Thu Jun 08, 2023 2:41 pm
by Londonmark
Yes. But geolocation automations (for being at home or not) in the Home app don’t suffer from that. Hence my post. But I may be misunderstanding what you’re after!

Re: What is current best practice for iOS home/away detect?

PostPosted: Thu Jun 08, 2023 4:17 pm
by DaveL17
Londonmark wrote:
Yes. But geolocation automations (for being at home or not) in the Home app don’t suffer from that. Hence my post. But I may be misunderstanding what you’re after!

I appreciate that. I'm not the OP; I was just responding to the thread--like you! :D

Re: What is current best practice for iOS home/away detect?

PostPosted: Thu Jun 08, 2023 4:56 pm
by ryanbuckner
DaveL17 wrote:
ryanbuckner wrote:
80% of the apps I have on my phone ask permission to use Location services on the iPhone. I would love Indigo Touch to provide this natively.


Unfortunately with Apple Shortcuts, it asks for permission every time the shortcut is run (for location-based shortcuts and a few others as well).


I would expect Indigo to have a lat long for each device (sent from Indigo Touch just like DomoPad does) without using shortcuts at all.