diff --git a/accessories/knxdevice.js b/accessories/knxdevice.js index c07e2ac..ffcb50e 100644 --- a/accessories/knxdevice.js +++ b/accessories/knxdevice.js @@ -339,35 +339,6 @@ KNXDevice.prototype = { * * returns a configured service object to the caller (accessory/device) * - * the config section is supposed to look like that for the complete device - * "devices": [ - { - "accessory_type": "knxdevice", - "name": "Living Room North Lamp", - "services": [ - { - "type": "Light", - "name": "Living Room North Lamp", - "On": { - "Set": "1/1/6", - "Listen": [ - "1/1/63" - ] - }, - "Brightness": { - "Set": "1/1/62", - "Listen": [ - "1/1/64" - ] - } - } - ] - }, - - * for each service it is supposed to have a - * type - * name - * and service specific objects */ bindCharacteristic: function(myService, characteristicType, valueType, config) { @@ -406,7 +377,7 @@ KNXDevice.prototype = { } } if ([config.Set].concat(config.Listen || []).length>0) { - this.log("Binding LISTEN"); + //this.log("Binding LISTEN"); // can read switch (valueType) { case "Bool": @@ -443,7 +414,7 @@ KNXDevice.prototype = { this.log("[ERROR] Lightbulb Service without 'name' property called"); return undefined; } - var myService = new Service.Lightbulb(config.name,config.name); + var myService = new Service.Lightbulb() //(config.name,config.name); // On (and Off) if (config.On) { this.log("Lightbulb on/off characteristic enabled"); @@ -477,7 +448,7 @@ KNXDevice.prototype = { // this.addOptionalCharacteristic(Characteristic.HeatingThresholdTemperature); - // some sanity checks + // some sanity checks if (config.type !== "Thermostat") { @@ -488,7 +459,7 @@ KNXDevice.prototype = { this.log("[ERROR] Thermostat Service without 'name' property called"); return undefined; } - var myService = new Service.Thermostat(config.name,config.name); + var myService = new Service.Thermostat() //(config.name,config.name); // CurrentTemperature) if (config.CurrentTemperature) { this.log("Thermostat CurrentTemperature characteristic enabled"); diff --git a/package.json b/package.json index e7fd564..9ee336f 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "carwingsjs": "0.0.x", "color": "0.10.x", "elkington": "kevinohara80/elkington", + "eibd": "0.3.1", "hap-nodejs": "git+https://github.com/KhaosT/HAP-NodeJS#fff863d7a387636fc612cf27cb859e82d9ee3294", "harmonyhubjs-client": "^1.1.4", "harmonyhubjs-discover": "git+https://github.com/swissmanu/harmonyhubjs-discover.git",