JavaScript Domoticz API for Node.JS
A Node.JS module, which provides a simplified object oriented wrapper for the Domoticz API. No properties which begin with uppercase or a multitude of parameters !
This API can determine the specific type of your devices (WallPlug, PowerNode, ...).
Installation
$ npm install domoticz-api
Usage
Default usage :
var Domoticz = ; var api = ;
Or you can use params :
var Domoticz = ; var api = protocole: "https" host: "192.168.0.20" port: 8080 username: "wifsimster" password: "_password_";
Get an existing device :
api;
Get all devices used :
api;
Get the generic type of a device like Switch, Power, Thermometer, ...
console;
Get the number of device siblings, useful for OpenZWave devices
api;
Licence
MIT license. See the LICENSE file for details.