Giter Club home page Giter Club logo

pimatic-nest's Introduction

#pimatic-nest

Nest Plugin for Pimatic using old version of Firebase.

##Nest Token You need to obtain a nest api token for authentication using firebase. If you have on already, continue on to Setup

First start by signing up for a Nest developer account. Then sign in.

Click on CREATE NEW PRODUCT

Fill out the top section, and under Users select Individual.

In the Permissions Section, click on the following:

Away
Structure
Thermostat

Make sure you select read/write radio.

Also, feel free to add items if you have them (I do not).

If everything went well, you should now be directed to a screen that provides the following info:

Product ID
Product Secret
Authorization URL

Then click copy the Authorization URL and in a separate browser, navigate to it. It will ask for you sign in, and if all is successful, you should see a screen that says: Use this pincode to connect to Nest

Now, with the Product ID, Product Secret and PinCode, you can obtain a token by executing the following in a terminal:

 curl -X POST \
   -d "code=PIN_CODE&client_id=PRODUCT_ID&client_secret=PRODUCT_SECRET&grant_type=authorization_code" \
   "https://api.home.nest.com/oauth2/access_token"

Replacing the PIN_CODE, PRODUCT_ID, and PRODUCT_SECRET with your own.

After executing, you should get a response like:

{
    "access_token":"YOUR-NEST-API-TOKEN",
    "expires_in":315360000
}

No you can use the "access_token" below.

##SETUP

edit the pimatic config.json file, adding an entry in the plugins section like so:

{
    "plugin": "nest",
    "token": "YOUR-NEST-API-TOKEN"     
}

Now head over to the DEVICES section of the front-end app, and click on DISCOVER DEVICES

You should see your newly discovered Nest Thermostats.

pimatic-nest's People

Contributors

sweetpi avatar aap82 avatar

Watchers

James Cloos avatar Marcus Wittig avatar

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.