Adding ring fencing to NEST Home
Adding ring fencing to NEST Home
Hi all
I'm about ready to add location finding to NEST Home for iPhones and potentially other devices.
The plugin will run independently of NEST Home and will create devices that represent iPhones and iPads, their status and their location using the Apple Find my Phone API. NEST Home will be able to create 'ring fences' that allow you to control your heating depending on the location of a family of phones (e.g. if all phones are outside the HOME Fence then set to AWAY).
I'm going to run an Alpha on this in the next week or so. If anyone would like to try it out let me know.
Regards
Mike
I'm about ready to add location finding to NEST Home for iPhones and potentially other devices.
The plugin will run independently of NEST Home and will create devices that represent iPhones and iPads, their status and their location using the Apple Find my Phone API. NEST Home will be able to create 'ring fences' that allow you to control your heating depending on the location of a family of phones (e.g. if all phones are outside the HOME Fence then set to AWAY).
I'm going to run an Alpha on this in the next week or so. If anyone would like to try it out let me know.
Regards
Mike
Re: Adding ring fencing to NEST Home
I'm using a capability like this based on fingscan to set home/away status for my Nest. I am interested in trying out your solution, too.I'm going to run an Alpha on this in the next week or so. If anyone would like to try it out let me know.
Cheers,
MikeL
-
manoncloud9
- Posts: 75
- Joined: Sun Apr 27, 2014 2:50 pm
- Location: Minneapolis MN
Re: Adding ring fencing to NEST Home
I would be interested in this. I do not have a Nest.
Sent from my iPhone using Tapatalk
Sent from my iPhone using Tapatalk
Re: Adding ring fencing to NEST Home
Man, if you could get it working that well, I'd rather it be a whole separate plugin. I could connect it to the Nest plugin with a couple of triggers, but I'd like to be able to use something like that for other things.
http://nerdhome.jimdo.com
Adding ring fencing to NEST Home
There is a plugin "find my idevice"
It stopped working after Apple changed their security settings
Sent from my iPhone using Tapatalk
It stopped working after Apple changed their security settings
Sent from my iPhone using Tapatalk
Re: Adding ring fencing to NEST Home
What I'm interested in is knowing where the devices are and if they are in a particular location. Fing is a great package but it will only tell me when the phones are at home and I'd like it to be more proactive than that and let me know when phones get within a certain distance of a particular trigger place - hence the new plug in.. I've also got a proof of concept system working outside of indigo which takes user information and returns iPhone status. I can achieve a similar thing in another proof of concept using Life360 for non-iPhones.
Since iOS 8 the API seems more stable and able to manage on-going calls to the API on locations but as usual we'll be at the beck & call of Apple. I believe they are more committed this time to their developers especially with a Siri API mentioned/stated again.
I will make the plugin run separately to others with the ability to use the information that it provides as triggers for other events or plugin solutions. I'm testing the pre-Alpha now and I'll include all of you on the Alpha list as I think field testing will be even more important.
Regards
Mike
Since iOS 8 the API seems more stable and able to manage on-going calls to the API on locations but as usual we'll be at the beck & call of Apple. I believe they are more committed this time to their developers especially with a Siri API mentioned/stated again.
I will make the plugin run separately to others with the ability to use the information that it provides as triggers for other events or plugin solutions. I'm testing the pre-Alpha now and I'll include all of you on the Alpha list as I think field testing will be even more important.
Regards
Mike
Re: Adding ring fencing to NEST Home
Mike, Will the plugin be able to support battery status on iOS devices? (Feature request) 
Thanks,
~Lou
Sent from my iPhone using Tapatalk

Thanks,
~Lou
Sent from my iPhone using Tapatalk
Re: Adding ring fencing to NEST Home
LouDU Lou wrote:Mike, Will the plugin be able to support battery status on iOS devices? (Feature request)
Thanks,
~Lou
Sent from my iPhone using Tapatalk
It already does
Fields are:
- Unique Device Id Code (Alphanumeric)
Type of Device (iPhone, iPad)
Device Status (Apple Status Code)
Battery level (Current level %)
Name of Device (user set)
Model Number (Apple defined)
Location enabled (True/False - Setting defined)
Is Locating (True/False - Setting defined)
Date/Time Last Seen (TimeStamp)
Location Fix Type (Cell, GPS or WiFi)
Location Accuracy (m)
Latitude
Longitude
Is Old (True/False - False if not connected on last refresh)
Is Inaccurate (True/False - defined by Apple)
Tracking (User set True/False - Can be used for tracking)
NEST Tracking Device (User set True/False - Can be used to control NEST)
In GeoLocation range (True/False - Calculated)
Name of Current GeoLocation (True/False - Calculated)
Entered Geolocation in last refresh (True/False - Calculated)
Left Geolocation in last refresh (True/False - Calculated)
Distance to nearest Geolocation if in range (m)
Code: Select all
['T5h37L00HFeiqsMWt.............CVvInx8aDTfUwGkWMrILy4DY6IZLVOHYVNSUzmWV', 'iPhone 6 Plus', '200', '73%', "Mike's iPhone", 'iphone6plus-e1e4e3-e1ccb5', 'True', 'True', 'Tue Jul 28 19:30:37 2015', 'GPS', '10.0', '-0.87678666766', '51.33655123701', 'False', 'False', 'True', 'True', 'True', 'Home', 'False', 'False', 50]
['dmxz7bfbGb6DG1+xpADdhxz............k/yxBBQs4INfPw7tRHtIPmDg1rqCQfKxogJOt1x3YMrdY6Nb4ELBSqs43AqzqAK4f19b29WjPp99QoWWDOqUtuHYVNSUzmWV', 'iPhone 6', '200', '60%', "Louise's iPhone", 'iphone6-e1e4e3-e1ccb5', 'True', 'True', 'Tue Jul 28 19:30:41 2015', 'GPS', '10.0', '-0.084634555434, '51.496543515', 'False', 'False', 'True', 'True', 'True', 'Birmingham University', 'True, 'False', 250]
- Name
Description
Latitude
Longitude
Range (m) of Geolocation
Active
Code: Select all
['Home', 'Main Home Location for Indigo', -0.8634534432, 52.98765098, 500, 'True']- formula: a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)
c = 2 ⋅ atan2( √a, √(1−a) )
d = R ⋅ c
Hope that helps
Mike
Re: Adding ring fencing to NEST Home
MikemikeL wrote:I'm using a capability like this based on fingscan to set home/away status for my Nest. I am interested in trying out your solution, too.I'm going to run an Alpha on this in the next week or so. If anyone would like to try it out let me know.
Cheers,
MikeL
I'm keen that the plugin also recognises when you're at other predefined locations (e.g. two miles from home) so it can change the status to Home or Away through the NEST Home plug in or to Away if none of the NEST Home phones are in the Home location..
I also wanted to make it generic so it could be used for other reasons (e.g. mine switches on the lights as I get into the Home location range)
Let me know what you'd like it to do for you
Regards
Mike
Re: Adding ring fencing to NEST Home
Agreed - so it will be separate and store the results of the plugin as states on the iDevices it finds.Swancoat wrote:Man, if you could get it working that well, I'd rather it be a whole separate plugin. I could connect it to the Nest plugin with a couple of triggers, but I'd like to be able to use something like that for other things.
Re: Adding ring fencing to NEST Home
Mike,
I think this will be bigger than your Nest Home plugin!
I want my garage door to open as I approach!
Lynn
I think this will be bigger than your Nest Home plugin!
I want my garage door to open as I approach!
Lynn
Re: Adding ring fencing to NEST Home
This is definitely interesting, and I would like to participate in testing. Just one question. There is a lot of information in the iCloud account. What do you think about security?
Håvard
Håvard
Håvard
Re: Adding ring fencing to NEST Home
That's a fair question. The iCloud API does allow access to files with the correct authorisation process. Ultimately I think that the iCloud is secure with the username/password combination. Communication is completed over an ssl channel so it's not sent in 'cleartext'. Personally I'm fairly agnostic about it because I'm careful with passwords and, to be frank, there isn't a great deal on my iCloud account that many people would find that interesting!haavarda wrote:This is definitely interesting, and I would like to participate in testing. Just one question. There is a lot of information in the iCloud account. What do you think about security?
Håvard
Mike
Re: Adding ring fencing to NEST Home
Good answer. It is probably because I don't know what is possible and not, but the thought of someone snapping your keychain info is rather unpleasant... Håvard
Håvard
Re: Adding ring fencing to NEST Home
I'm interested in helping test. 3 family members with iPhones, would love to automate away. What I really want is a feature that can tell if they are upstairs or downstairs though!