mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-30 06:13:10 +01:00
Merge pull request #313 from fcarucci/master
Fix MyQ Garage Opener and multiple Nests configuration
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -13,4 +13,8 @@ npm-debug.log
|
|||||||
|
|
||||||
# HomeBridge
|
# HomeBridge
|
||||||
config.json
|
config.json
|
||||||
|
config.test.json
|
||||||
persist/
|
persist/
|
||||||
|
|
||||||
|
|
||||||
|
.AppleDouble
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ LiftMasterAccessory.prototype = {
|
|||||||
for (var i=0; i<devices.length; i++) {
|
for (var i=0; i<devices.length; i++) {
|
||||||
var device = devices[i];
|
var device = devices[i];
|
||||||
|
|
||||||
if (device["MyQDeviceTypeName"] == "GarageDoorOpener") {
|
if (device["MyQDeviceTypeName"] == "GarageDoorOpener" || device["MyQDeviceTypeName"] == "VGDO") {
|
||||||
|
|
||||||
// If we haven't explicity specified a door ID, we'll loop to make sure we don't have multiple openers, which is confusing
|
// If we haven't explicity specified a door ID, we'll loop to make sure we don't have multiple openers, which is confusing
|
||||||
if (!that.requiredDeviceId) {
|
if (!that.requiredDeviceId) {
|
||||||
@@ -303,4 +303,4 @@ LiftMasterAccessory.prototype = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports.accessory = LiftMasterAccessory;
|
module.exports.accessory = LiftMasterAccessory;
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ function NestThermostatAccessory(log, name, device, deviceId) {
|
|||||||
if (name) {
|
if (name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
} else {
|
} else {
|
||||||
this.name = "Nest";
|
this.name = "Nest" + device.serial_number;
|
||||||
}
|
}
|
||||||
this.model = device.model_version;
|
this.model = device.model_version;
|
||||||
this.serial = device.serial_number;
|
this.serial = device.serial_number;
|
||||||
|
|||||||
Reference in New Issue
Block a user