mirror of
https://github.com/mtan93/homebridge.git
synced 2026-04-12 14:23:08 +01: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 {
|
else {
|
||||||
that.log("Error finding device '" + that.wemoName + "': " + err);
|
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 binaryState = powerOn ? 1 : 0;
|
||||||
var that = this;
|
var that = this;
|
||||||
|
|
||||||
this.log("Setting power state on the '"+this.wemoName+"' to " + binaryState);
|
this.log("Setting power state on the '"+this.wemoName+"' to " + binaryState);
|
||||||
|
|
||||||
this.device.setBinaryState(binaryState, function(err, result) {
|
this.device.setBinaryState(binaryState, function(err, result) {
|
||||||
|
|||||||
@@ -16,6 +16,6 @@
|
|||||||
|
|
||||||
"carwingsjs": "0.0.x",
|
"carwingsjs": "0.0.x",
|
||||||
"sonos": "0.6.x",
|
"sonos": "0.6.x",
|
||||||
"wemo": "0.1.x"
|
"wemo": "0.2.x"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user