mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-16 21:03:09 +00:00
WeMo accessory improvements
- Continue searching for WeMo devices until found - Upgrade wemo lib version
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -16,6 +16,6 @@
|
||||
|
||||
"carwingsjs": "0.0.x",
|
||||
"sonos": "0.6.x",
|
||||
"wemo": "0.1.x"
|
||||
"wemo": "0.2.x"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user