Closed diskjunkie closed 7 years ago
I am sorry can you try
"requiredDeviceId": "<device ID>"
instead of just deviceID in your config file?
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},
"description": "assurelink config section",
"accessories": [
{
"accessory": "Assurelink",
"name": "barn door",
"username": "email@email.com",
"password": "password",
"requiredDeviceId": "18534593"
},
{
"accessory": "Assurelink",
"name": "Garage Door",
"username": "email@email.com",
"password": "password",
"requiredDeviceId": "483127"
}
]
}
Hi, I just tried "requiredDeviceID" instead of "deviceID". I still get the same error.
I see that it is complaining about the "requiredDeviceID" property, but I don't have any "property" statements, as I have seen in other config.json files I've looked at. Could that be it? I haven't yet found any combinations of "property" and "accessory" used to describe a device, so I am not sure how to code that.
Also, I'm not sure why they are both being reported as [barn door]:
[1/4/2017, 8:16:51 PM] [barn door] Found Door: 18534593 - barn door opener [1/4/2017, 8:16:51 PM] [barn door] Found Door: 483127 - Garage Door
Thanks!
Ok, I don't have multiple openers to test with. Can you try doing this?
-Uninstall the assurelink plugin using:
npm uninstall -g homebridge-assurelink
Install the plugin using
npm install -g https://github.com/tekuonline/Homebridge-Assurelink.git
Change the config.json to:
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},
"description": "assurelink config section",
"accessories": [
{
"accessory": "Assurelink",
"name": "barn door",
"username": "email@email.com",
"password": "password",
"deviceID": "18534593"
},
{
"accessory": "Assurelink",
"name": "Garage Door",
"username": "email@email.com",
"password": "password",
"deviceID": "483127"
}
]
}
Hi, Thanks for looking at it. I am getting the same error with that module.
I am not sure if I mentioned it, but the error occurs when I ask Siri if the garage door is open. The program terminates and Siri reports that she wasn't able to find any garage door this time.
If I ask her if the barn door is open, she doesn't know what barn means.
Sent from my iPhone
On Jan 6, 2017, at 12:42 PM, Tek Nepal notifications@github.com wrote:
Ok, I don't have multiple openers to test with. Can you try doing this?
-Uninstall the assurelink plugin using: npm uninstall -g homebridge-assurelink Install the plugin using npm install -g https://github.com/tekuonline/Homebridge-Assurelink.git
Change the config.json to:
"bridge": { "name": "Homebridge", "username": "CC:22:3D:E3:CE:30", "port": 51826, "pin": "031-45-154" }, "description": "assurelink config section", "accessories": [ { "accessory": "Assurelink", "name": "barn door", "username": "email@email.com", "password": "password", "deviceID": "18534593" }, { "accessory": "Assurelink", "name": "Garage Door", "username": "email@email.com", "password": "password", "deviceID": "483127" } ] } — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
Would you be able to give v2 a try? https://github.com/tekuonline/homebridge-assurelink2.git Instructions are in the Readme file.
Hi, That works! It recognizes both doors without any additional changes!
Thank you!
On Tue, 10 Jan 2017 11:01:36 -0800 Tek Nepal notifications@github.com wrote:
Would you be able to give v2 a try? https://github.com/tekuonline/homebridge-assurelink2.git Instructions are in the Readme file.
I'm having trouble with the config.json file syntax, the example isn't clear. I have two assurelink garage door openers, but can't figure out how to define them both in the config.json file. I continue to receive the error message that multiple openers are detected and need to be specified with the device ID.
Here is my config.json:
{ "bridge": { "name": "Homebridge", "username": "CC:22:3D:E3:CE:30", "port": 51826, "pin": "031-45-154" }, "description": "assurelink config section", "accessories": [ { "accessory": "Assurelink", "name": "barn door", "username": "email@email.com", "password": "password", "deviceID": "18534593" }, { "accessory": "Assurelink", "name": "Garage Door", "username": "email@email.com", "password": "password", "deviceID": "483127" } ] }
The error is listed here: [1/4/2017, 8:12:17 PM] Loaded plugin: homebridge-assurelink [1/4/2017, 8:12:17 PM] Registering accessory 'homebridge-assurelink.Assurelink' [1/4/2017, 8:12:17 PM] --- [1/4/2017, 8:12:17 PM] Loaded plugin: homebridge-multi [1/4/2017, 8:12:17 PM] Registering accessory 'homebridge-multi.Multi' [1/4/2017, 8:12:17 PM] --- [1/4/2017, 8:12:17 PM] Loaded config.json with 2 accessories and 0 platforms. [1/4/2017, 8:12:17 PM] --- [1/4/2017, 8:12:17 PM] Loading 2 accessories... [1/4/2017, 8:12:17 PM] [barn door] Initializing Assurelink accessory... [1/4/2017, 8:12:18 PM] [Garage Door] Initializing Assurelink accessory... Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
[1/4/2017, 8:16:38 PM] Homebridge is running on port 51826. [1/4/2017, 8:16:51 PM] [barn door] Logged in with user ID 0 [1/4/2017, 8:16:51 PM] [Garage Door] Logged in with user ID 0 [1/4/2017, 8:16:51 PM] [barn door] WARNING: You have multiple doors on your Assurelink account. [1/4/2017, 8:16:51 PM] [barn door] WARNING: Specify the ID of the door you want to control using the 'requiredDeviceId' property in your config.json file. [1/4/2017, 8:16:51 PM] [barn door] WARNING: You can have multiple Assurelink accessories to cover your multiple doors [1/4/2017, 8:16:51 PM] [barn door] Found Door: 18534593 - barn door opener [1/4/2017, 8:16:51 PM] [barn door] Found Door: 483127 - Garage Door
/usr/local/lib/node_modules/homebridge-assurelink/index.js:155 throw "FATAL: Please specify which specific door this Assurelink accessory should control - you have multiples on your account"; ^ FATAL: Please specify which specific door this Assurelink accessory should control - you have multiples on your account
Thanks