Git Product home page Git Product logo

googlenest's Introduction

GoogleNest

Crestron S# library for controlling google nest devices

Current code supports only thermostats for 3-series and 4-series. I will be creating a fork for 4-series only that will support more events from thermostats and other devices.

To get started you will need to enable the Smart Device Managment API for the Device Access Sandbox through this link: https://developers.google.com/nest/device-access There is a one time fee of $5 for 25 user accounts across 5 structures.

Next you'll need to create an Oauth2 client ID and Client Secret at this link: https://console.developers.google.com/apis/credentials (make sure to set the URI to www.google.com)

Copy the client ID and Client Secret and head back to the Device Access Sandbox at this link: https://console.nest.google.com/device-access/project-list

Create a project and copy the Oauth2 client ID into Client ID field. Copy the Client ID, Client Secret and Project ID and enter them into the Google Nest System Processor module.

To get an auth code, change the project-id field and the oauth2-client-id parameter you've copied down in this link and then follow this link; https://nestservices.google.com/partnerconnections/project-id/auth?redirect_uri=https://www.google.com&access_type=offline&prompt=consent&client_id=oauth2-client-id&response_type=code&scope=https://www.googleapis.com/auth/sdm.service

Once you return to the google page, in the URI, you'll find the auth code. Copy it down and send the full code to the AuthCode serial signal. The auth code only last for about 10 minutes. If you've exceeded that time and still havent consumed it, get another auth code. Next trigger the Initialize signal. Once the initial initialization is complete, a refresh token will take care of authorizing from here on out as long as the processor is online once every six months. Make sure to set the Label field in the Nest app for the thermostat. The DeviceName parameter in SIMPL uses the Label field to identify and control the thermostat.

Set points/temperature joins are 1*10, 22.5 degrees Celsius would be 225d. Valid ranges are 90-320 (9-32 degrees Celsius) or the Fahrenheit equivalent.

Please visit this URI which outlines the limitations of this API: https://developers.google.com/nest/device-access/project/limits#sandbox_rate_limits

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.