simple node client for Indigo home automation server
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));
});