How do I add Nest Thermostat into ST?


(Mike) #1

Just a layman wondering if there’s availability to do this.


Nest Protect/cam/thermostat integration?
(Korban Hadley) #2

Yes there is a thread on how to already. It works great. However their is no official method yet.


(Edward Pope) #3

@korban_hadley I was just going to respond with the same link.

Thank you for responding quickly and helping,


(Mike) #4

I see this link, but I in step one, I already am encountering an issue.

It says here,
Create a new device type (https://graph.api.smartthings.com/ide/devices)

When I click on that link, I get “Sorry, you’re not authorized to view this page.”


(Korban Hadley) #5

You will need to register as a developer first.
https://graph.api.smartthings.com/register/developer


(Mike) #6

Ah ok. Got through all the steps except Step 4.

Update device preferences

Click on the new device to see the details.
Click the edit button next to Preferences
Fill in your information.
To find your serial number, login to http://home.nest.com. Click on the thermostat you want to control. Under settings, go to Technical Info. Your serial number is the second item.

Where’s the location of Update device preferences?


(Korban Hadley) #7

That one was hard for me too. It will be in 2 places. It is on your phone under the gear icon or it is also in under my devices.
https://graph.api.smartthings.com/device/list

Select your newly added device and look at preferences. Next to it will be an edit link.

Edit: If you have 2 or more devices you repeat adding the device and just look up the second serial.

I can’t wait however for the official integration.


(Mike) #8

I don’t see “preferences” anywhere.


(Mike) #9

I also don’t see it in the phone. Are you talking about the gear icon next to the current mode dropdown?


(Korban Hadley) #10

Sorry for the long reply back. If you have not figured it out yet look under the Things Connected. You should see your Nest you added under here. Next to your Nest will be the gear icon on the tile. If you click on this you will see preferences at the bottom. If you do not see Nest on the list you missed a step somewhere and it has not been added to your device list yet.


(Mike) #11

Sorry for the long reply back. If you have not figured it out yet look under the Things Connected. You should see your Nest you added under here. Next to your Nest will be the gear icon on the tile. If you click on this you will see preferences at the bottom. If you do not see Nest on the list you missed a step somewhere and it has not been added to your device list yet.

OK, thanks for the reply. I see it here now. However, step 4 says to fill in my information and serial number and all I see is “Give your device a name” in preferences. I’m confused to what step 4 is supposed to be.


(Korban Hadley) #12

When you click on the gear icon next to your Nest under Things Connected you will have a Preferences tile you can click on and fill out.


(Mike) #13

The only thing to fill out in the next screen is a name.


(Edward Pope) #14

Don’t have a NEST. But fill out the name, and hit next on top of the screen. Should take you to the next screen to fill out the rest of the preferences.


(Korban Hadley) #15

If you dont have more options then something was missed. Make sure you copy all of code from https://gist.github.com/Dianoga/6055918#file-nest-devicetype-groovy.


Best way to add Nest thermostat?
(Master Loucks) #16

@iHavequestions One of the things missing from this thread is the clarity as to which Nest script you’re using. It seems several people have assumed you’re using the same one as they are. I ran into this same problem and then noticed that the Nest script at the following URL is the one that has 3 preferences: username, password, serial. Check and see if the device type code you’re using looks like the code at the URL below.

https://github.com/smartthings-users/device-type.nest/blob/master/nest.devicetype.groovy

After you modify your code to be this, and possibly remove and recreate your “nest” device, you should see that the preferences options in the app (Android App: Things > Settings Cog > Preferences) not only includes a name and icon setting, but also username, password and serial on the same screen.


(Dennis Cartwright) #17

This batch of code actually works on Android to control Nest thermostat w/Smarthings app:


#18

First… thanks so much for doing this and please don’t take my comments the wrong way, but maybe I’m missing something. When you create the new device type it automatically generates code for the device. Am I supposed to delete that code and replace it with the custom code from GitHub?

Sorry, but it seems like some steps are missing or some clarity is needed. For example, the steps should be similar to the following and then explain what to do with that code:

1- Open browser and go to: https://graph.api.smartthings.com/
2 - Log in or create an account if you don’t already have one
3 - Create a New Device Type (Follow Current Instructions)
4 - Publish Device (Follow Current Instructions)
5 - If you want to switch from slider controls to buttons, comment out the slider details line and uncomment the button details line.
6 - Within the developer portal, create a new device (Follow Current Instructions)
7 - From the mobile device app, update the device preferences
8 - Done

There is no mention of what to do with the code from GitHub, so additional steps are needed:

Again, sorry and don’t take this the wrong way, but it’s not working for me and due to the lack of explanation as to what to do with the code it has been very frustrating.


(Robert Goldstein) #19

Hi, I had a lot of difficulty with this as well since I’m a computer novice. It is not specifically mentioned in the instructions, but I did copy and paste the code from GitHub to replace the code that was automatically generated by SmartThings when I created the new Device Type and that worked for me. After creating the New Device Type, you then have to create a new Device. When you are creating the new Device under the My Devices, be sure to select the Device Type you just created from the “Type” drop-down menu. Then you need to restart the app on your smartphone. Hope this helps.

I really like using SmartThings and tinkering with it, However, it does lack clear instructions, especially regarding the use of SmartApps, and seems much more geared to people with a high level of technical knowledge, which I do not have. I think it will need to become a lot more user friendly before it will gain any mass appeal.


#20

Thanks Robert… I’ve been tinkering with this throughout the day and I just got it to work. Again, I hope I didn’t offend Dianoga as he did a great job on the code to make this work for everyone.

Here’s an updated list of instructions for the next person that wants to try it and hopefully Dianoga can incorporate this into his instruction set. Anyone want to validate these steps? lol

1- From your computer open a browser and go to: https://graph.api.smartthings.com/
2 - Log in or create an account if you don’t already have one
3 - Create a New Device Type (Follow Current Instructions)
4 - Publish Device Type (Follow Current Instructions)
5 - If you want to switch from slider controls to buttons, comment out the slider details line and uncomment the button details line.
6 - Within the developer portal, create a new device (Follow Current Instructions)
7 - Once Saved and Published, open another browser window or tab and go to https://github.com/smartthings-users/device-type.nest/blob/master/nest.devicetype.groovy
8 - Select all of the code, right click and select copy
9 - Go back to the Smartthings Developer’s portal window or tab, and replace the default code with the new code you copied in step 8
10 - Click save, then publish and then select "to me"
11 - Once saved and published, grab your mobile device and open the SmartThings app, go to the Things section and locate the device you just created
12 - Tab the gear to open the thing and then tap preferences
13 - Update User ID, Password and Serial Number (Follow Current Instructions)
14 - Tap Done
15 - Go back to your PC, within the Developers Portal click on Live Logging and within a few mins you should see the thing you just created / setup.
16 - Select the thing to review the logs for any errors

I originally typed in the wrong PW into the ST app, so the logging showed me that it couldn’t log in. Once I entered the right PW, all was well.