We have moved at community.getvera.com

Author Topic: Nest Opens API for Thermostat  (Read 8332 times)

guest13871

  • Guest
Nest Opens API for Thermostat
« on: September 26, 2013, 11:36:32 am »
For you Nest lovers (I have one but I'm not impressed...).  Hopefully the Nest plug-in can be updated for API support so it doesn't break when the firmware gets updated.  Maybe even offer more features.

Nest Opens API for Thermostat

Offline watou

  • Moderator
  • Hero Member
  • *****
  • Posts: 889
  • Karma: +44/-12
Re: Nest Opens API for Thermostat
« Reply #1 on: September 26, 2013, 11:55:34 am »
The current Nest plug-in has not broken with firmware updates!  (But it did break once when they changed their client/server protocol to use HTTP redirects for load balancing.)

In any case, thank you for passing this along!  I just signed up and I am eager to publish a 2.0 of the current Nest plugin that uses their published API.  I will post updates on that as the time approaches.

watou

neosg

  • Guest
Re: Nest Opens API for Thermostat
« Reply #2 on: September 26, 2013, 03:32:13 pm »
The current Nest plug-in has not broken with firmware updates!  (But it did break once when they changed their client/server protocol to use HTTP redirects for load balancing.)

In any case, thank you for passing this along!  I just signed up and I am eager to publish a 2.0 of the current Nest plugin that uses their published API.  I will post updates on that as the time approaches.

watou

Thanks in advance. This is the first plug-in I grabbed and has really helped keep things seemless for my wife

Offline Ds514

  • Full Member
  • ***
  • Posts: 189
  • Karma: +2/-0
  • Because automatic.
Re: Nest Opens API for Thermostat
« Reply #3 on: September 26, 2013, 05:35:36 pm »
I wonder if there is any additional benefit to be gotten through use of the API. I find the current functionality of the plugin works as well and has been as stable as I might have hoped.
« Last Edit: September 26, 2013, 05:40:31 pm by Ds514 »

guest13871

  • Guest
Re: Nest Opens API for Thermostat
« Reply #4 on: September 26, 2013, 06:24:34 pm »
The current Nest plug-in has not broken with firmware updates!

Hi watou,

I didn't mean to imply it had, and I'm sorry if it came across that way.  I very much appreciate the time and effort so many people on this forum put into developing plugins that make Vera better for the rest of us.  I was just trying to make the point that since the plugin didn't use an official API there was always the possibility any change by Nest could break the plugin.  Theoretically using an official API should eliminate that possibility (but in reality they could break the API themselves).

Thanks again for your great work!

Offline watou

  • Moderator
  • Hero Member
  • *****
  • Posts: 889
  • Karma: +44/-12
Re: Nest Opens API for Thermostat
« Reply #5 on: September 26, 2013, 06:33:44 pm »
... I was just trying to make the point that since the plugin didn't use an official API there was always the possibility any change by Nest could break the plugin.  Theoretically using an official API should eliminate that possibility (but in reality they could break the API themselves).

I agree completely.  There is benefit in just using an officially supported API for the reasons you mentioned.  I'm hoping there will be the opportunity to add more features to the integration (and of course not lose any), but that's an open-ended question until the spec is published.

Offline Ramias

  • Sr. Member
  • ****
  • Posts: 275
  • Karma: +7/-5
Re: Nest Opens API for Thermostat
« Reply #6 on: September 28, 2013, 06:41:41 pm »
Nest has gotten multiple (2 that I know of) free 3rd party apps for Windows Phone that control the nest killed. 

I hope they don't do that to the Vera plugin before a new plugin can be developed.

Offline afried

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Nest Opens API for Thermostat
« Reply #7 on: October 01, 2013, 04:11:19 pm »
sorry for the stupid question which I think I know the answer to but...

does the current Nest plug-in allow you to set the schedule of your nest?

Offline Ds514

  • Full Member
  • ***
  • Posts: 189
  • Karma: +2/-0
  • Because automatic.
Re: Nest Opens API for Thermostat
« Reply #8 on: October 01, 2013, 04:27:44 pm »
It does not. As it is unlikely that there is a way to get the plugin to do this with the same grace as their own interface, I am not sure that would be a worthwhile function.

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: Nest Opens API for Thermostat
« Reply #9 on: October 02, 2013, 03:07:58 pm »
I for one think this is greatness... Love the current plug-in and can't wait to see any improvements you make..

The current Nest plug-in has not broken with firmware updates!  (But it did break once when they changed their client/server protocol to use HTTP redirects for load balancing.)

In any case, thank you for passing this along!  I just signed up and I am eager to publish a 2.0 of the current Nest plugin that uses their published API.  I will post updates on that as the time approaches.

watou
openLuup, AltUI, Zway and HomeWave, enough said...

guest15496

  • Guest
Re: Nest Opens API for Thermostat
« Reply #10 on: October 05, 2013, 08:42:01 am »
When the API is released someone please post the link. Simply because I am an API craftsman and geek, and would like to see whether their API is as elegant as their device - have no intention of doing any coding against it.

Offline watou

  • Moderator
  • Hero Member
  • *****
  • Posts: 889
  • Karma: +44/-12
Re: Nest Opens API for Thermostat
« Reply #11 on: October 05, 2013, 09:30:09 am »
When the API is released someone please post the link. Simply because I am an API craftsman and geek, and would like to see whether their API is as elegant as their device - have no intention of doing any coding against it.

I will definitely (unless someone beats me to it, and of course we hope it's a publicly available API).  In the meantime, the ecobee thermostat has a nicely designed web API (https://www.ecobee.com/home/developer/api/documentation/v1/index.shtml).  Two things I like about it in particular are:
  • It uses OAuth 2.0 to control authentication and authorization between client and server, such that no user names or passwords need to be known by the app/plugin, and it uses expiring tokens to prevent spoofing.  A little confusing at first but a powerful way to solve these issues.  I hope the official Nest API does something similar.
  • It reports a concise table of incrementing version numbers for each managed thermostat, so if the plugin's number doesn't match, only then does the plugin request a fresh snapshot of that thermostat's status, cutting down on database hits on the server, transmission, parsing on the client, etc.

watou
« Last Edit: October 05, 2013, 05:36:50 pm by watou »

Offline watou

  • Moderator
  • Hero Member
  • *****
  • Posts: 889
  • Karma: +44/-12
Re: Nest Opens API for Thermostat -- and hopefully the new Nest Protect!
« Reply #12 on: October 08, 2013, 11:13:35 am »
I expect and hope that the official Nest API will support this neat new device, the Nest Protect:

http://www.nest.com/smoke-co-alarm/life-with-nest-protect/

http://www.amazon.com/gp/product/B00FN4EWAM/ref=ox_sc_act_title_2?ie=UTF8&psc=1&smid=ATVPDKIKX0DER

A great re-think on the smoke alarm, adding multiple sensors including motion (you can wave your arms to disable the alarm), and even integrates with the Nest thermostat to shut down a gas furnace if carbon monoxide is detected. 

I will integrate this device into the Nest plugin if it's at all possible.

watou

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: Nest Opens API for Thermostat -- and hopefully the new Nest Protect!
« Reply #13 on: October 09, 2013, 10:53:48 am »
My pre-order is in.... ;D

I expect and hope that the official Nest API will support this neat new device, the Nest Protect:

http://www.nest.com/smoke-co-alarm/life-with-nest-protect/

http://www.amazon.com/gp/product/B00FN4EWAM/ref=ox_sc_act_title_2?ie=UTF8&psc=1&smid=ATVPDKIKX0DER

A great re-think on the smoke alarm, adding multiple sensors including motion (you can wave your arms to disable the alarm), and even integrates with the Nest thermostat to shut down a gas furnace if carbon monoxide is detected. 

I will integrate this device into the Nest plugin if it's at all possible.

watou
openLuup, AltUI, Zway and HomeWave, enough said...

Offline chuck1026

  • Sr. Member
  • ****
  • Posts: 390
  • Karma: +3/-7
Re: Nest Opens API for Thermostat -- and hopefully the new Nest Protect!
« Reply #14 on: October 09, 2013, 11:49:08 am »
I expect and hope that the official Nest API will support this neat new device, the Nest Protect:

http://www.nest.com/smoke-co-alarm/life-with-nest-protect/

http://www.amazon.com/gp/product/B00FN4EWAM/ref=ox_sc_act_title_2?ie=UTF8&psc=1&smid=ATVPDKIKX0DER

A great re-think on the smoke alarm, adding multiple sensors including motion (you can wave your arms to disable the alarm), and even integrates with the Nest thermostat to shut down a gas furnace if carbon monoxide is detected. 

I will integrate this device into the Nest plugin if it's at all possible.

watou

I am hoping the smoke detector motion sensors can inform Nest of occupancy if nobody is near the t-stat it may go into auto away when it technically shouldn't.

Maybe the motion sensor in the smoke detector can be used for other scenes? That would be cool.
UI7 / VeraPlus.... YAY, more stable than ever!