diff --git a/accessories/WeMo.js b/accessories/WeMo.js index 7e45387..befa1b0 100644 --- a/accessories/WeMo.js +++ b/accessories/WeMo.js @@ -25,6 +25,8 @@ WeMoAccessory.prototype = { } else { that.log("Error finding device '" + that.wemoName + "': " + err); + that.log("Continuing search for WeMo device with exact name '" + that.wemoName + "'..."); + that.search(); } }); }, @@ -38,7 +40,7 @@ WeMoAccessory.prototype = { var binaryState = powerOn ? 1 : 0; var that = this; - + this.log("Setting power state on the '"+this.wemoName+"' to " + binaryState); this.device.setBinaryState(binaryState, function(err, result) { diff --git a/package.json b/package.json index afd65c3..8b34eb5 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,6 @@ "carwingsjs": "0.0.x", "sonos": "0.6.x", - "wemo": "0.1.x" + "wemo": "0.2.x" } -} \ No newline at end of file +}