indigo-client
v2.0.0
Published
simple node client for Indigo home automation server
Downloads
8
Maintainers
Readme
indigo-client
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));
});