Friday, July 27, 2012

Finally, a working Nest Auto-Away with Google Latitude

This is a long time coming, I needed Indigo 5 (used as an event engine in this case), the Google Latitude Bridge I whipped up earlier (https://latitudebridge.appspot.com), the Nest for Indigo Plugin (https://github.com/johnray/Indigo-Nest-Thermostat-Plugin/blob/master/README.md) and my own Google Latitude for Indigo Script (http://www.perceptiveautomation.com/filelib/index.php?keywords=google+latitude).

Background: My Nest's Auto-Away never really worked properly since I live in a townhouse with 3 floors and I am the only person there. It never said that it detected enough activity and even when I tried to fool it (by purposefully "generating activity" in front of it when it's learning), it's still spotty at best. In any case, it will only turn on auto-away when no activity has been detected for 2 hours.

I would love to have it automatically detect when I am away accurately (saving me money) and I realized that everything is there technically: 1) an internet enabled thermostat, 2) a location tracking server and 3) a device that follows me all the time.

So, with a bit of tinkering, my Nest now has a couple new tricks: when I am away (>1km from home) for 5 minutes, it engages away status immediately; when I am back (<1km from home) for 5 minutes, it disengages away status. With Indigo, it actually says it out loud. :) When I am back in the house, it would say "away status for thermostat disengaged". Cool :)

No comments:

Post a Comment