honeywellhome-api v1.0.2
honeywell-api
Simple web server to retrieve credentials for using the Honeywell Home service.
The process requires two separate logins:
A login for a developer site to generate API keys. You probably don't have a login for this site, but that's OK, because the instructions below explains the process.
A login for a service to authorize an application. You probably already have a login for this service, because you've already created a login when you started to use the Honeywell Home App.
API Keys
First,
generate two parameters, a consumerKey
and a consumerSecret
:
Go to the Honeywell Home developer site.
If you have already registered, click on
LOGIN
; otherwise, you will have to create an account, click onSIGNUP
.Once you have logged in, click on
MY APPS
and then onCREATE NEW APP
. You will be asked to enter anApp Name
and aCallback URL
. Please enter the values you see here: (Protip: copy-paste the values from the fileconfig/options.global.js
.)After you click on
Save Changes
, you will see something like this:Now click on
homebridge-honeywell-home
and you will see something like this:Edit the file
config/options.global.js
to include the values shown in your browser, e.g.,consumerKey: 'A5nV2bVn7Jzo4FzcZQyADZVGoxSrHAJe', consumerSecret: 'xjokooAQHWkqAEel'
Finaly, click on
LOG OUT
.
Generate OAuth credentials
In the terminal:
% npm start
This starts a node ./app.js
process and opens up a browser window:
Click on the login
link:
Enter the Email
and Password
that you use for your
Honeywell Home App and click on LOG IN
:
Skim the text, and Click on
ALLOW`:
Select the devices that you want to manage, by clicking in the upper-right-hand corner of each device:
Click on CONNECT
:
You will need to enter these exact values into the configuration section for your application,
e.g., for homebridge-honeywell-home,
the file ~/.homebridge/config.json
would have this added to it:
{ "platform" : "homebridge-honeywell-home"
, "name" : "HoneywellHome"
, "credentials" :
{ "consumerKey" : "A5nV2bVn7Jzo4FzcZQyADZVGoxSrHAJe"
, "consumerSecret" : "xjokooAQHWkqAEel"
, "accessToken" : "MbCNslDA5jJJdm8JRhGOXWKdPYKQ"
, "refreshToken" : "YgOEocILQcPySJiLod33UzPXNFDE4rQ1"
}
, "options" : { "ttl": 600, "verboseP" : false }
}
You can now terminate the node ./app.js
process started earlier.
Enjoy!