indigo-client
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

indigo-client Build License NPM Version

simple node client for Indigo home automation server

Usage

setup, configure and connect

'use strict';
import { IndigoClient } from 'indigo-client';

let client = new IndigoClient(
  'indigo.myhomedomain.com', // hostname
  'admin', // username
  's3cr3t', // password
  1138 // port (optional), defaults to 80
);

set device property to value

client.setDeviceValue( 'living-room-switch', 'isOn', 1)
  .then((response) => {
    console.log(JSON.stringify(response));
  });

Package Sidebar

Install

npm i indigo-client

Weekly Downloads

2

Version

2.0.0

License

MIT

Unpacked Size

7.46 kB

Total Files

5

Last publish

Collaborators

  • yamanote1138