domoticz.js
function(options) {
	events.EventEmitter.call(this); 	// inherit from EventEmitter
    	TRACE 		= options.log;
	IDX 		= options.idx;
	STATUS 		= options.status;
	HOST 		= options.host;
	REQUEST		= options.request;
	this.domoMQTT	= this.connect(HOST);
}
function(options) {
	events.EventEmitter.call(this); 	// inherit from EventEmitter
    	TRACE 		= options.log;
	IDX 		= options.idx;
	STATUS 		= options.status;
	HOST 		= options.host;
	REQUEST		= options.request;
	this.domoMQTT	= this.connect(HOST);
}
function ( options ) { events . EventEmitter . call ( this ) ; // inherit from EventEmitter TRACE = options . log ; IDX = options . idx ; STATUS = options . status ; HOST = options . host ; REQUEST = options . request ; this . domoMQTT = this . connect ( HOST ) ; }
Device IDX you want to watch. Get Options
Device IDX you want to watch . Get Options