homestar-nest

0.0.22 • Public • Published

homestar-nest

IOTDB Bridge for Nest Devices

About

See the samples for details how to add to your project, particularly connect.js for standalone and iotdb*.js for HomeStar/IOTDB.

Installation and Configuration

Then:

$ npm install -g homestar    ## may require sudo
$ npm install homestar-nest
$ homestar configure homestar-nest

You'll need the instructions on this page to complete configuratio

https://homestar.io/tools/nest

If you don't have a Nest, they provide a very nice simulator

https://developer.nest.com/documentation/cloud/home-simulator

Use

const iotdb = require('iotdb')
iotdb.use("homestar-nest")
iotdb.connect("NestThermostat").set(":temperature", 20)

Models

NestThermostat

Control Nest Thermostat

Functionality:

  • discover Nest Thermostats

  • get target temperature, actual temperature and humidity

  • set target temperature

    { target_temperature_c: 18, ambient_temperature_c: 14, humidity: 30 }

NestProtect

Read values from Nest Protect

{
    co_alarm_state: 'warning',
    smoke_alarm_state: 'ok',
    battery_health: 'ok'
}

NestCam

Read values from Nest Camera. In particular, it will change state when new "events" happen.

{
    animated_image_url: 'https://developer.nest.com/...',
    image_url: 'https://developer.nest.com/simulator/...',
    start_time: '2015-10-22T15:12:14.140Z',
    end_time: '2015-10-22T15:12:15.161Z'
}

Readme

Keywords

none

Package Sidebar

Install

npm i homestar-nest

Homepage

homestar.io

Weekly Downloads

2

Version

0.0.22

License

Apache-2.0

Last publish

Collaborators

  • dpjanes