@cdmnky/nexia-api
v0.0.2
Published
Api for interfacing with nexia thermostat
Downloads
8
Readme
Nexia-thermostat-api
An api to control nexia thermostats
Usage
- connect using a mobile id from nexia site
- use api.getHouse() to load basic info
- use commands
API
to be added soon
Activation
To get the mobile ID and the api key you have to do the following:
- Login to mynexia.com
- Go the to Mobile tab
- Create a new mobile device
- Click the Get Activation code button for the new mobile device
- Make a call to
NexiaApi.connect(activation_code)
and log the output
const nexiaApi = require('nexia-api');
const activation_code = 12345; // get this from the web ui by following directions above
nexiaApi.connect(activation_code).then((api) => {
console.log(api);
}).catch((e) => {
console.error(e);
});