What is current best practice for iOS home/away detect?
What is current best practice for iOS home/away detect?
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!
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!
- FlyingDiver
- Posts: 7332
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: What is current best practice for iOS home/away detect?
Maybe something like Locative with the GeoFence plugin?
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Re: What is current best practice for iOS home/away detect?
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.
-
- Posts: 513
- Joined: Wed Feb 29, 2012 12:57 pm
Re: What is current best practice for iOS home/away detect?
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?
Ditto. I've found it to be very reliable.racarter wrote:I use the Home Remote app.
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).
I came here to drink milk and kick ass....and I've just finished my milk.
[My Plugins] - [My Forums]
[My Plugins] - [My Forums]
-
- Posts: 1108
- Joined: Sat Oct 08, 2011 12:33 pm
- Location: Northern Virginia
- Contact:
Re: What is current best practice for iOS home/away detect?
I use the Life360 plugin and the service
- Different Computers
- Posts: 2610
- Joined: Sat Jan 02, 2016 10:07 am
- Location: East Coast
- Contact:
Re: What is current best practice for iOS home/away detect?
I use a combination of device presence on my network as reported by the UniFi plugin, and the FindFriendsMini plugin.
Sonoma on a Mac Mini M1 running Airfoil Pro, Bond Home, Camect, Roku Network Remote, Hue Lights, DomoPad, Adapters, Home Assistant Agent, HomeKitLinkSiri, EPS Smart Dimmer, Fantastic Weather, Nanoleaf, LED Simple Effects, Grafana. UnifiAP
Re: What is current best practice for iOS home/away detect?
I’ll second that! Works well on two separate properties, each with their own separate Indigo systems.FlyingDiver wrote:Maybe something like Locative with the GeoFence plugin?
Sent from my iPad using Tapatalk
-
- Posts: 1108
- Joined: Sat Oct 08, 2011 12:33 pm
- Location: Northern Virginia
- Contact:
Re: What is current best practice for iOS home/away detect?
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?
Unfortunately with Apple Shortcuts, it asks for permission every time the shortcut is run (for location-based shortcuts and a few others as well).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.
I came here to drink milk and kick ass....and I've just finished my milk.
[My Plugins] - [My Forums]
[My Plugins] - [My Forums]
-
- Posts: 513
- Joined: Wed Feb 29, 2012 12:57 pm
Re: What is current best practice for iOS home/away detect?
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.DaveL17 wrote:Unfortunately with Apple Shortcuts, it asks for permission every time the shortcut is run (for location-based shortcuts and a few others as well).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.
Re: What is current best practice for iOS home/away detect?
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.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.
I came here to drink milk and kick ass....and I've just finished my milk.
[My Plugins] - [My Forums]
[My Plugins] - [My Forums]
-
- Posts: 513
- Joined: Wed Feb 29, 2012 12:57 pm
Re: What is current best practice for iOS home/away detect?
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?
I appreciate that. I'm not the OP; I was just responding to the thread--like you!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 came here to drink milk and kick ass....and I've just finished my milk.
[My Plugins] - [My Forums]
[My Plugins] - [My Forums]
-
- Posts: 1108
- Joined: Sat Oct 08, 2011 12:33 pm
- Location: Northern Virginia
- Contact:
Re: What is current best practice for iOS home/away detect?
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.DaveL17 wrote:Unfortunately with Apple Shortcuts, it asks for permission every time the shortcut is run (for location-based shortcuts and a few others as well).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.