From 466ace27617c4c95bfa09231e0d92ede65f52e8c Mon Sep 17 00:00:00 2001 From: Alistair Galbraith Date: Tue, 30 Jun 2015 19:19:29 -0700 Subject: [PATCH] Added ability to specify a specific Liftmaster door Current version operates the "first door found". For users with multiple doors, this allows them to specify a specific door with the 'requiredDeviceId' option in config. --- accessories/LiftMaster.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/accessories/LiftMaster.js b/accessories/LiftMaster.js index 2b20448..8690a0e 100644 --- a/accessories/LiftMaster.js +++ b/accessories/LiftMaster.js @@ -9,6 +9,7 @@ function LiftMasterAccessory(log, config) { this.name = config["name"]; this.username = config["username"]; this.password = config["password"]; + this.requiredDeviceId = config["requiredDeviceId"]; } LiftMasterAccessory.prototype = { @@ -86,14 +87,14 @@ LiftMasterAccessory.prototype = { // look through the array of devices for an opener for (var i=0; i