Skip to content

laborspy/nest-manager

 
 

Repository files navigation

Nest Manager (Unofficial)

Nest Manager App

This is the "unofficial" SmartThings user created SmartApp and Device handlers. The SmartApp and Device Handlers work together to provide integration to the SmartThings ecosystem using Nest's Official API.

The Devices Types

Author

  • @tonesto7

Contributors

  • @desertBlade
  • @E_sch

Version Info

Latest App Version:

  • Nest Manager - v1.1.0

Latest Device Versions:

  • Nest Presence Device - v1.1.0
  • Nest Protect Device - v1.1.0
  • Nest Thermostat Device - v1.1.0

What's New

Everything!

Links

Things to Know

  • This is still technically in BETA so you may experience issues!!!
  • This app DOES NOT support Nest Cams and I don't have any to test
  • At this moment the app will only support One location and the Thermostats and Protects within
  • The token used with this application is using my 'Works for Nest' distribution appId and secret. It's an older one which allows 1000 user before I will need to certify with Nest. I do not have the ability to see any of your data or who is even using the token

Advantages

  • Able to add/remove multiples devices from a single SmartApp
  • No need to many enter device serial number and login info in preferences
  • Nest Login info is not stored by the application
  • No need to use 3rd Party Polling apps for device updates
  • One single API call for all Nest devices
  • Since there is only a single poll for all devices, updates are more often
  • The devices look great 😄

Disadvantages

  • The level of info available through the Official API is very limited compared to the hacked version currently available.

Works With

  • Routines
  • Rule Machine (Rules)
  • Rule Machine (Custom Commands)

Future Items

  • Switching app to parent-child app to support multiple locations and allow creation of other child apps that perform various automation tasks.

Installation

Method 1: (Recommended)

Enabling the GitHub Integration in your IDE is by far the easiest way to install and get the latest updates for Nest Connect App, Presence, Protect and Thermostat devices.

The Manager App

  • Go to "My SmartApps" in the IDE

  • Click on "Settings"

  • Click on "Add New Repository"

  • Owner: tonesto7, Name: nest-manager, Branch: master

  • Under "My SmartApps" Click on "Update from Repo" and select the nest-manager

  • Check the box next to nest-manager and click "Execute Update"

  • Click on the Nest Manager app link and select "Publish" and "For me"

    You will also need to Enable OAuth under the app preferences in the IDE

The Presence, Protect, and Thermostat Device Handlers

  • Go to My Device Types in the IDE (Not necessary if you added repository for the app)
  • Click on "Settings"
  • Click on Add new repository
  • Owner: tonesto7, Name: nest-manager, Branch: master
  • Under My Device Types Click on Update from Repo and select the nest-manager
  • Check the box next to nest-presence, nest-protect and nest-thermostat then click Execute Update
  • Click on each device link and select "Publish and For Me

That's it your Done in the IDE... Just install "Nest Manager" from the Marketplace > MyApps under the mobile app.

When updates are available to the source code you will see the color change from black in the IDE.


Method 2: The Manual Way

The Manager App

  • Log into your SmartThings account at https://graph.api.smartthings.com/
  • Go to "My SmartApps"
  • Click on "+ New SmartApp"
  • Choose "From Code"
  • Copy source code from nest-manager.src
  • Click "Create"
  • Go into SmartApp Nest Manager Settings
  • Click on "App Settings" and enable OAuth and click "Update"

The Presence, Protect, and Thermostat Device Handlers

  • Go to "My Device Handlers"
  • Create "New Device Handler"
  • Choose "From Code"
  • Copy Source code from nest-protect.src
  • Repeat for nest-presence.src
  • Repeat for nest-thermostat.src
  • Remember to open each device and click "Publish" and "For me"

Setting up Nest Manager App

  • In the SmartThings Mobile App
  • Go to "Marketplace" and select "SmartApps"
  • At the bottom of the list, select "My Apps"
  • Select "Nest Manager" from the list.
  • Enter you Nest Login credentials when prompted.
  • Choose Structure
  • Choose Thermostats
  • Choose Protects
  • Choose Use Nest as Presence Device (Optional)
  • Tap on "Done"

Issues and Troubleshooting

Issues

If you are experiencing any issues, please let us know by heading over to projects issues page on GitHub. If you don't see the issue reported please help open an new one and provide as much detail as you can.

Project Issues Link

In an effort to make it easier for some of you troubleshoot without having to use the IDE constantly. I have added in a diagnostic option under the preference section of the SmartApp.
Once this is enabled it will begin to store non-user identifiable error logs from the app and store in a local state variable of the app.
This feature will help you to view and export the logs (also see the tip below) directly from the Smart App. This also allows you to copy & paste them into the issues form on GitHub.

Tip: If you enable diagnostic logs in the app you can share the logs from with in the app you can store the direct link to log JSON file on you computer and browse directly to the log everytime you need to review the errors.


Troubleshooting

Tip: The most common issue is forgetting to enable oAuth for the app under SmartThings

Check the Wiki before posting question in the forums Wiki Home Page


Feature Requests

  • We love new ideas so please head on over to github and open an issue for the feature you would like to see. This will help prioritize what is important and what is not.
  • There is a Google Form that will allow you to vote for the newest features. Voting Form

Nest API Documentation

Nest Developer Documents

To view the json returned from the API just get your authToken from the SmartApp state data and add it to this Url

https://developer-api.nest.com/devices?auth=__yourAuthTokenHere__

About

SmartThings Nest Manager (Unofficial)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Groovy 100.0%