Git Product home page Git Product logo

homebridge-chamberlain's Introduction

iRayanKhan's github stats

homebridge-chamberlain's People

Contributors

brandonmartinez avatar caseywebdev avatar conradirwin avatar dereklucas avatar dmblakeley avatar irayankhan avatar mattwillems avatar shawnstrickland avatar ycao56 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebridge-chamberlain's Issues

Why? Just use liftmaster plugin....

Chamberlain and Liftmaster connect to the exact same MYQ servers....
It would be better to make a pull request of that plugin rather than creating an entire new plugin.. There have been I think 3 other plugins other than the Liftmaster Plugin, that have since been published that are less stable and it's confusing users on which one to download.

ECONNRESET Error

I've been using this plugin for a few weeks now and had this issue pop up in the last few days:

 { FetchError: request to https://myqexternal.myqdevice.com/api/v4/DeviceAttribute/GetDeviceAttribute?AttributeName=doorstate&MyQDeviceId=**<<removed for post>>** failed, reason: read ECONNRESET
    at ClientRequest.<anonymous> (/usr/lib/node_modules/homebridge-chamberlain/node_modules/node-fetch/index.js:133:11)
    at emitOne (events.js:116:13)
    at ClientRequest.emit (events.js:211:7)
    at TLSSocket.socketErrorListener (_http_client.js:401:9)
    at emitOne (events.js:116:13)
    at TLSSocket.emit (events.js:211:7)
    at emitErrorNT (internal/streams/destroy.js:66:8)
    at _combinedTickCallback (internal/process/next_tick.js:139:11)
    at process._tickCallback (internal/process/next_tick.js:181:9)
  name: 'FetchError',
  message: 'request to https://myqexternal.myqdevice.com/api/v4/DeviceAttribute/GetDeviceAttribute?AttributeName=doorstate&MyQDeviceId=**<<removed for post>>** failed, reason: read ECONNRESET',
  type: 'system',
  errno: 'ECONNRESET',
  code: 'ECONNRESET' }

I updated the plugin yesterday (8/7) hoping that this would fix the issue but no luck. Any help would be greatly appreciated on this.

Report/response delay

Is there a line I can change to lengthen the delay of Siri's report back when closing the garage door? Siri seems to report too quickly, giving a confused reply by Siri stating the door is still opening/closing. When, if the report just came 2 seconds later on each attempt, she would report a successful operation.

ECONNRESET

I am able to control two garage doors with no issues. On occasion after the doorstate has changed from closing to closed I receive a FetchError ECONNRESET message for both doors. Running Node v10.15.0 and Npm 6.5.0 on a RaspberryPI Raspbian 9.6 (stretch).

[1/12/2019, 2:46:36 PM] [Single Car Garage] doorstate changed from opening to open
[1/12/2019, 3:39:00 PM] [Two Car Garage] desireddoorstate changed from closed to open
[1/12/2019, 3:39:02 PM] [Two Car Garage] doorstate changed from closed to opening
[1/12/2019, 3:39:18 PM] [Two Car Garage] doorstate changed from opening to open
[1/12/2019, 3:50:15 PM] [Two Car Garage] doorstate changed from open to closing
[1/12/2019, 3:50:15 PM] [Two Car Garage] desireddoorstate changed from open to closed
[1/12/2019, 3:50:25 PM] [Two Car Garage] doorstate changed from closing to closed
[1/12/2019, 3:58:13 PM] [Single Car Garage] { FetchError: request to https://myqexternal.myqdevice.com/api/v4/DeviceAttribute/GetDeviceAttribute?AttributeName=doorstate&MyQDeviceId=xxxxxxx failed, reason: read ECONNRESET
at ClientRequest. (/usr/local/lib/node_modules/homebridge-chamberlain/node_modules/node-fetch/index.js:133:11)
at ClientRequest.emit (events.js:182:13)
at TLSSocket.socketErrorListener (_http_client.js:392:9)
at TLSSocket.emit (events.js:182:13)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
name: 'FetchError',
message:
'request to https://myqexternal.myqdevice.com/api/v4/DeviceAttribute/GetDeviceAttribute?AttributeName=doorstate&MyQDeviceId=xxxxxxx failed, reason: read ECONNRESET',
type: 'system',
errno: 'ECONNRESET',
code: 'ECONNRESET' }
[1/12/2019, 3:59:58 PM] [Two Car Garage] { FetchError: request to https://myqexternal.myqdevice.com/api/v4/DeviceAttribute/GetDeviceAttribute?AttributeName=doorstate&MyQDeviceId=xxxxxxx failed, reason: read ECONNRESET
at ClientRequest. (/usr/local/lib/node_modules/homebridge-chamberlain/node_modules/node-fetch/index.js:133:11)
at ClientRequest.emit (events.js:182:13)
at TLSSocket.socketErrorListener (_http_client.js:392:9)
at TLSSocket.emit (events.js:182:13)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
name: 'FetchError',
message:
'request to https://myqexternal.myqdevice.com/api/v4/DeviceAttribute/GetDeviceAttribute?AttributeName=doorstate&MyQDeviceId=xxxxxxxxx failed, reason: read ECONNRESET',
type: 'system',
errno: 'ECONNRESET',
code: 'ECONNRESET' }

Unauthorized (216)

Performed an update to the latest package. No longer able to use. Error in log:

[Garage Door] Error: Unauthorized (216) at fetch.then.then.data (/usr/local/lib/node_modules/homebridge-chamberlain/src/api.js:26:29) at process._tickCallback (internal/process/next_tick.js:68:7)

I completely reset homebridge, deleted accessories and persist folders, re-added to homekit. However, 216 error still appears in log.

status and state change requests not processing

My opener's status and state change requests are not processing as of this afternoon, but had been working previously with no changes made.

Not seeing any errors in homebridge status/log. Maybe API changes again?

Multiple controllable devices found error

When I start up homebridge, I immediately get this error:

[Garage Door] Error: Multiple controllable devices found: 1369702, 1369703, 976994
at getDeviceList.then.devices (/usr/local/lib/node_modules/homebridge-chamberlain/src/api.js:78:13)
at process._tickCallback (internal/process/next_tick.js:109:7)

But I only have 1 garage door opener. How can I fix it?

'Closed' Notifications Not Always Received

Hi,

About 60% of the time the plugin works great. The other 40% I have noticed that I will get a "Garage Door Opened" notification, but I won't receive a "Garage Door Closed" notification. Then, upon opening the Home App on my phone I immediately receive a "Garage Door Closed" notification. This immediate notification could come hours later - when I haven't opened the Home app for a while. I notice that when I do finally open the Home app I see the Garage Door Homebridge icon briefly in an "Opening" state, which then quickly turns to "Closed" - and then I receive the "Garage Door Closed" notification.

Any ideas what could be causing this?

Thanks

--- Update ---

After investigating this further, the Log file shows that the Garage Door is opened, closed etc. but I'm not consistently receiving the 'Closed' notifications on some devices. I always see the 'Open' notifications.

My iPhone is consistently the device that's NOT receiving the Closed notifications. But the devices that I leave at home like my iPad had been receiving them - not sure if it receives them 100% of the time though. I'm wondering if it could be some sort of Cellular Network / Wifi issue? But I don't have this problem with any other devices. That is, if I set up a device to receive notifications - I get them wherever and on whichever device I'm using.

As you can see below, the log shows the opening and closing, but the Garage Door Closed Notification from HomeKit is not always received on my iPhone.

[12/30/2018, 2:40:56 PM] [Garage Door] doorstate changed from closed to opening
[12/30/2018, 2:40:56 PM] [Garage Door] desireddoorstate changed from closed to open
[12/30/2018, 2:41:08 PM] [Garage Door] doorstate changed from opening to open
[12/30/2018, 2:46:02 PM] [Garage Door] desireddoorstate changed from open to closed
[12/30/2018, 2:46:12 PM] [Garage Door] doorstate changed from open to closing
[12/30/2018, 2:46:26 PM] [Garage Door] doorstate changed from closing to closed

Any ideas? Or ideas on how to troubleshoot further?

Thanks!

Siri is reporting garage door is "closing" and "opening", instead of "closed" and "open"

I have this plugin installed successfully (thanks!!) and want to report a minor annoyance with the implementation. I'm not sure if this is an item to be reported with this plugin, homebridge, or HomeKit in general but when I ask Siri if the garage door is open or closed, the response is that the the garage door is "closing" instead of "closed" and "opening" instead of "open".

For instance, if the garage door is open and I ask if the garage door is closed, the response is that the garage door is "opening". If I then ask if the garage is open, the response is again that it's "opening".

Not a major issue but the annoyance with this is that I want the confidence in knowing how Siri interpreted my request without looking at the phone. So if I ask if the garage is open, and Siri responds that it's "opening", it could mean that Siri thinks I asked to open the garage.

Any thoughts on if this behavior can be adjusted? Thanks

img_0457
img_0458

Homekit status stuck on opening

When opening the garage door using the homekit app the door opens but the button is indefinitely in the opening state until homebridge is restarted.

No Response/Error 217

Installed homebridge on Raspberry Pi Zero and successfully running Nest and Arlo devices. Can’t quite seem to get garage door working. Works fine in MyQ app. Garage door shows up in Home app but always with No Response status, and when I watch homebridge in terminal I’m getting error 217 over and over again. I already tried updating the api.js to a newer version number on line 17 ( believe) per the instructions on Issue 39 to no avail. Is there anything else I can try or has Chamberlain/LiftMaster done something on their end to affect functionality of this?

One garage door, but plugin detects 2 device IDs and throws error

I only have one garage door, but this plugin detects two device Ids. Throws an error on startup with the default config:

[Garage Door] Error: Multiple controllable devices found: 4355369, 4355368
at getDeviceList.then.devices (/usr/local/lib/node_modules/homebridge-chamberlain/src/api.js:78:13)
at process._tickCallback (internal/process/next_tick.js:103:7)

Within the online Chamberlain account, only one garage door is configured, and only one is shown.

So I then manually add both device IDs to the config, and it starts up fine - Homekit now shows two garage doors, one works fine, the other does nothing.

The part number of the Chamberlain unit is: 050DCTWF
Listed on Lowes website as a "B970C" (Chamberlain 1.25-HP Whisper Drive Belt)

Weird issue. Manually removed the non-functioning garage accessory from showing in 'favourites'.

Crash on Homebridge start

ERROR LOADING PLUGIN homebridge-chamberlain:
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object. (/usr/local/lib/node_modules/homebridge-chamberlain/src/index.js:1:92)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10

Test Issue for templates

Explain the issue occuring:

(Give a description of the occuring behaviour.)

Expected Result

(Give a description of the expected behaviour.)

Info

iOS Version:
Plugin Version:
HomeBridge Version:
Node/Npm Version:

Log Output:

(If applicable)

Error loading Plugin

Was wanting to try your plugin in Homebridge, but get the following error: Also, what is different between your plugin and the homebridge-liftmaster?

[9/26/2016, 4:32:27 PM] ERROR LOADING PLUGIN homebridge-chamberlain:
stderr
16:32:27
[9/26/2016, 4:32:27 PM] SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
stderr
16:32:27
    at exports.runInThisContext (vm.js:53:16)
stderr
16:32:27
    at Module._compile (module.js:387:25)
stderr
16:32:27
    at Object.Module._extensions..js (module.js:422:10)
stderr
16:32:27
    at Module.load (module.js:357:32)
stderr
16:32:27
    at Function.Module._load (module.js:314:12)
stderr
16:32:27
    at Module.require (module.js:367:17)
stderr
16:32:27
    at require (internal/module.js:16:19)
stderr
16:32:27
    at Object.&lt;anonymous&gt; (/usr/lib/node_modules/homebridge-chamberlain/src/index.js:1:92)
stderr
16:32:27
    at Module._compile (module.js:413:34)
stderr
16:32:27
    at Object.Module._extensions..js (module.js:422:10)

Error: No controllable devices found

I've successfully logged in and home bridge can't see my device. Is there any other setup todo?

Error: No controllable devices found

[ { MyQDeviceId: xxxxxx,
    MyQDeviceTypeId: 1,
    MyQDeviceTypeName: 'Gateway',
    RegistrationDateTime: '2016-09-18T23:33:34.297',
    SerialNumber: 'GW0xxxxxxBB',
    UserName: '[email protected]',
    UserCountryId: 0,
    Attributes: 
     [ [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object] ],
    ChildrenMyQDeviceIds: 'xxxxx,xxxxxxx',
    UpdatedBy: 'System',
    UpdatedDate: '2016-09-18T23:33:34.297',
    ConnectServerDeviceId: 'xxxxxxxx' },
  { MyQDeviceId: xxxxxxx,
    ParentMyQDeviceId: xxxxxx,
    MyQDeviceTypeId: 7,
    MyQDeviceTypeName: 'VGDO',
    RegistrationDateTime: '2016-09-18T23:33:34.313',
    SerialNumber: 'xxxxxxxxx',
    UserName: '[email protected]',
    UserCountryId: 0,
    Attributes: 
     [ [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object] ],
    ChildrenMyQDeviceIds: '',
    UpdatedBy: 'System',
    UpdatedDate: '2016-09-18T23:33:34.313',
    ConnectServerDeviceId: 'xxxxxxxxxx' } ]

Not Responding

I recently upgraded to Node.js 8 and now the homebridge-chamberlain doesn't work anymore. My device is not responding. It was working when I had Node.js v4 installed by itself, once I upgraded, it stopped. Is this not compatible with node.js 6 or 8?

Feature Suggestion - For Your Consideration

One feature I would love to have is the ability to set an automation so that my doors can automatically open / close when I drive up to the garage or leave. As I'm sure you know, HomeKit doesn't allow this for devices like Garage Door Openers as you need to confirm their operation.

I think this could be achieved, however, by implementing the Garage Door Opener as a "Switch" HAP service with an On characteristic instead of the "TargetDoorState." I was hoping I could do this myself, but the code is pretty complex. I expect the code would need to be able to map garage door states like opening / closing to a simple On/Off. Would you consider implementing a change like this as a separate fork / project? If not, thoughts on whether this is achievable and any guidance on what you think would be needed to do this? Thanks!

Opening/Closing w/ Siri desyncs Homekit and Chamberlain MyQ App

It has been working for a while. This last week however whenever we open or close the garage door using Siri or Homekit app the chamberlain app doesn't show the update. We then have to manually cycle the door a few times for chamberlain to get back in sync.

Multiple Garage Doors to Open/Close

I was finally able to get both garage doors opening and closing with the deviceId. Is there any way to close/open them both at the same time? It seems i have to do them both individually. Maybe a new accessory in the config.json to include both deviceid's? Has anyone done this?

Requested Accessory Name Not Registered by any plugin?

I'm getting this error everytime I try to load homebridge:

Feb 17 09:52:28 jacobwtyler homebridge[15428]: throw new Error("The requested accessory '" + name + "' was not registered by any plugin.");
Feb 17 09:52:28 jacobwtyler homebridge[15428]: ^
Feb 17 09:52:28 jacobwtyler homebridge[15428]: Error: The requested accessory 'Chamberlain' was not registered by any plugin.
Feb 17 09:52:28 jacobwtyler homebridge[15428]: at API.accessory (/usr/local/lib/node_modules/homebridge/lib/api.js:60:13)
Feb 17 09:52:28 jacobwtyler homebridge[15428]: at Server._loadAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:254:42)
Feb 17 09:52:28 jacobwtyler homebridge[15428]: at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:81:38)
Feb 17 09:52:28 jacobwtyler homebridge[15428]: at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
Feb 17 09:52:28 jacobwtyler homebridge[15428]: at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
Feb 17 09:52:28 jacobwtyler homebridge[15428]: at Module._compile (module.js:409:26)
Feb 17 09:52:28 jacobwtyler homebridge[15428]: at Object.Module._extensions..js (module.js:416:10)
Feb 17 09:52:28 jacobwtyler homebridge[15428]: at Module.load (module.js:343:32)
Feb 17 09:52:28 jacobwtyler homebridge[15428]: at Function.Module._load (module.js:300:12)
Feb 17 09:52:28 jacobwtyler homebridge[15428]: at Function.Module.runMain (module.js:441:10)
Feb 17 09:52:28 jacobwtyler homebridge[15428]: at startup (node.js:134:18)
Feb 17 09:52:28 jacobwtyler homebridge[15428]: at node.js:962:3
Feb 17 09:52:28 jacobwtyler systemd[1]: homebridge.service: main process exited, code=exited, status=1/FAILURE

error loading plugin.. on clean homebridge install

I am getting this error,

[8/3/2017, 11:01:30 AM] ==================== [8/3/2017, 11:01:30 AM] ERROR LOADING PLUGIN homebridge-chamberlain: [8/3/2017, 11:01:30 AM] SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:374:25) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Module.require (module.js:354:17) at require (internal/module.js:12:17) at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-chamberlain/src/index.js:1:92) at Module._compile (module.js:410:26) at Object.Module._extensions..js (module.js:417:10) [8/3/2017, 11:01:30 AM] ====================
node version ver 4.2.6
homebridge ver 0.4.22
npm ver 3.5.2
on ubuntu server 16.04

Error: Multiple controllable devices found

Hi guys, I'll be straight up here: I'm a first timer on Homebridge so forgive my ignorance and potentially stupid question. This seem different enough from the other issues that I thought it was necessary to open a new issue.

I've installed Homebridge and this homebridge-chamberlain plugin, but I keep hitting a wall with the blow error in macOS terminal:

[7/2/2017, 12:25:40 PM] [Garage Light] Error: Multiple controllable devices found: 38349717, 38349718
at getDeviceList.then.devices (/usr/local/lib/node_modules/homebridge-chamberlain/src/api.js:78:13)
at process._tickCallback (internal/process/next_tick.js:109:7)
[7/2/2017, 12:25:40 PM] [Garage Door] Error: Multiple controllable devices found: 38349717, 38349718
at getDeviceList.then.devices (/usr/local/lib/node_modules/homebridge-chamberlain/src/api.js:78:13)
at process._tickCallback (internal/process/next_tick.js:109:7)

It repeats the error and eventually gives the following error in addition (similar one for the second device):

[7/2/2017, 12:48:08 PM] [Garage Door] { FetchError: request to https://myqexternal.myqdevice.com/api/v4/UserDeviceDetails/Get?filterOn=true failed, reason: getaddrinfo ENOTFOUND myqexternal.myqdevice.com myqexternal.myqdevice.com:443
at ClientRequest. (/usr/local/lib/node_modules/homebridge-chamberlain/node_modules/node-fetch/index.js:133:11)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at TLSSocket.socketErrorListener (_http_client.js:309:9)
at emitOne (events.js:96:13)
at TLSSocket.emit (events.js:188:7)
at connectErrorNT (net.js:1021:8)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
name: 'FetchError',
message: 'request to https://myqexternal.myqdevice.com/api/v4/UserDeviceDetails/Get?filterOn=true failed, reason: getaddrinfo ENOTFOUND myqexternal.myqdevice.com myqexternal.myqdevice.com:443',
type: 'system',
errno: 'ENOTFOUND',
code: 'ENOTFOUND' }

I only have one MyQ opener, no other garage door openers. After digging through, I've found some suggestions that maybe it's recognizing the light and opener as different devices. I've tried the "single accessory" config.json as well as the multiple accessories config. I've tried with and without "DeviceId", "requiredDeviceId", and variations of these with upper and lower case. Same error.

Here is my current config.json with obscured personal information:
`{
"bridge": {
"name": "Homebridge",
"username": "username",
"port": 52464,
"pin": "031-45-154"
},

"description": "Homebridge Accessories",

"accessories": [{
		"accessory": "Chamberlain",
		"name": "Garage Door",
		"username": "email",
		"password": "password",
		"requiredDeviceId": "38349717"
	},
	{
		"accessory": "Chamberlain",
		"name": "Garage Light",
		"username": "email",
		"password": "password",
		"requiredDeviceId": "38349718"
	}
]

}`

Any idea what I'm doing wrong? Would appreciate any support.

Chamberlain MyQ and Craftsman

Hi,

I have a craftsman WIFI garage door I was wondering since chamberland and craftsman are owned by the same company and use the same style IOS app could i get it working on a craftsman garage door.

I'm very new to this so please forgive my ignorants.

Unable to load homebridge using chamberlain plugin

Error: The requested accessory 'Chamberlain' was not registered by any plugin.
at API.accessory (/Users/username/.nvm/versions/node/v4.2.4/lib/node_modules/homebridge/lib/api.js:64:13)

Added to config.json as accessory under existing accessories.
Only fails with this plugin.
Attempted to install plugin and uninstall plugin to see if issue was related per normal guidelines of
npm install -g homebridge-chamberlain.
Reverted config.json to previous version and Homebridge starts as expected.

Had chamberlain plugin installed and working previously and then failed to recognize. Uninstalled homebridge entirely and reinstalled and was able to use all other accessories until attempting to install chamberlain plugin.

Please advise how I can resolve this issue.

Compatibility Issue?

I've been trying for a couple of days to get my rpi3 back up and running. I've installed node, homebridge, the homebridge plugin for homebridge-chamberlain along with the config.json file as outlined but I continue to run into the following error:

[2018-2-1 22:30:12] Loaded plugin: homebridge-chamberlain
[2018-2-1 22:30:12] Registering accessory 'homebridge-chamberlain.Chamberlain'
[2018-2-1 22:30:12] ---
/usr/lib/node_modules/homebridge/lib/server.js:212
var username = config.bridge.username;
^

TypeError: Cannot read property 'username' of undefined

Any ideas what may be wrong. I've done the install a dozen times but nothing seems to work.. I'm using Raspian stretch. Thanks!!

Craftsman Assurelink version?

Hi Casey

I have a Craftsman Assurelink Connectivity Hub which works great from its iPhone App.
To all intents and purposes it is identical to the MyQ Internet Gateway device.
I even tried to register it through mychamberlain but it wouldn't let me.

Compare https://assurelink.craftsman.com/ to https://www.mychamberlain.com/ and https://www.myliftmaster.com/. All the iPhone apps look identical too. Liftmaster even call it MyQ.

I already tried your plugin and edited my config.json for it and tested. It all works great, including logging in (I created a MyQ account to test) but as there is no device registered on that account I can go no further.

I have homebridge running on a Raspberry Pi, and homebridge-zway on another.
I would like to incorporate the garage door and was excited to find your plugin which means it should be possible. I'd have a crack at it myself but my programming skills are based elsewhere!

Regards, Ian.
Houston, TX

Invalid Json

i get this error with the standard configuration like

{ "accessory": "Chamberlain", "name": "Garage Door", "username": "your mychamberlain.com email", "password": "your mychamberlain.com password" }

[9/20/2018, 12:51:38 PM] [Garagentor hinten] { FetchError: invalid json response body at https://myqexternal.myqdevice.com/api/v4/User/Validate reason: Unexpected token < in JSON at position 0 at /opt/node/lib/node_modules/homebridge-chamberlain/node_modules/node-fetch/lib/body.js:48:31 at process._tickCallback (internal/process/next_tick.js:109:7) name: 'FetchError', message: 'invalid json response body at https://myqexternal.myqdevice.com/api/v4/User/Validate reason: Unexpected token < in JSON at position 0', type: 'invalid-json' }

the config.json file is valid, there is no other plugin in the file.

what can i do?

id

how do we find the device id for each garage door?

Block-scope declarations syntax error after install

DISCLAIMER: Very new to Homebridge, etc. Unable to determine if there's an error in the code or in my installation.

I installed Homebrew for macOS, installed homebridge-chamberlain and configured the the config.json file per posted instructions. Upon running Homebridge, I received the following error:

[9/20/2016, 8:59:31 AM] ====================
[9/20/2016, 8:59:31 AM] ERROR LOADING PLUGIN homebridge-chamberlain:
[9/20/2016, 8:59:31 AM] SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-chamberlain/src/index.js:1:92)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
[9/20/2016, 8:59:31 AM] ====================
[9/20/2016, 8:59:31 AM] No plugins found. See the README for information on installing plugins.

config.json file contains:

{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:22:3D:E3:CE:30",
        "port": 51826,
        "pin": "031-45-154"
    },

    "description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.",

    "accessories": [
        {
        "accessory": "Chamberlain",
        "name": "Garage Door",
        "username": "[insert username here]",
        "password": "[insert password here]"
        }
    ],

    "platforms": [
        {

        }
    ]
}

Any help appreciated! Thanks!

Anyway to have another for node v4.2.6?

I would like to use your homebridge plugin, but I heavily rely on the homebridge-wink plugin for a bulk of my devices. I attempted to upgrade my nodejs and got everything to work but homebridge-wink because it can't work with node6.

Any chance you can make another branch for node v4.2.6?

much appreciated if you can.

Error: No controllable devices found at getDeviceList.then.devices (/usr/local/lib/node_modules/homebridge-chamberlain/src/api.js:71:31)

This is the error I am getting:

[10/18/2019, 4:33:55 PM] [Garage Door] Error: No controllable devices found
at getDeviceList.then.devices (/usr/local/lib/node_modules/homebridge-chamberlain/src/api.js:71:31)
at process._tickCallback (internal/process/next_tick.js:68:7)
hoobs : TTY=pts/0 ; PWD=/var/lib/homebridge ; USER=root ; COMMAND=/bin/journalctl -o cat -n 500 -f -u homebridge -u homebridge-config-ui-x
pam_unix(sudo:session): session opened for user root by (uid=0)

It was working fine earlier today. I have not changed anything

"accessories": [
{
"accessory": "Chamberlain",
"name": "Garage Door",
"username": "[email protected]",
"password": "MyPassword"
}
],

Error After installing chamberlain plugin and restarting homebridge

I am trying to install homebridge-chamberlain plugin on my raspberry pi.

Installed chamberlain using
sudo npm install homebridge-chamberlain
on restarting homebridge, getting the below error.

[2017-6-26 06:21:13] No plugins found. See the README for information on installing plugins.
/opt/node/lib/node_modules/homebridge/lib/api.js:64
throw new Error("The requested accessory '" + name + "' was not registered by any plugin.");
^

Error: The requested accessory 'Chamberlain' was not registered by any plugin.
at API.accessory (/opt/node/lib/node_modules/homebridge/lib/api.js:64:13)
at Server._loadAccessories (/opt/node/lib/node_modules/homebridge/lib/server.js:254:42)
at Server.run (/opt/node/lib/node_modules/homebridge/lib/server.js:81:38)
at module.exports (/opt/node/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object. (/opt/node/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)


pi@raspberrypi:~ $ node -v
v8.1.2


config.json.
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},

"description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.",

"accessories": [
 {
 "accessory": "Chamberlain",
 "name": "Garage Door",
 "username": "[email protected]",
 "password": "NNNNNNNNNNN"
 }
],

"platforms": [
]

}

Thanks

New and not much experience

I am new to trying to set up Homebridge, so I am sorry if this a totally stupid problem/question. I am trying to control my garage doors using you homebridge-chamberlain plugin.

I was able to get Homebridge running without plugins and connect via HomeKit.

MacBook-Pro-8:~ gregoryallen$ homebridge
[8/5/2017, 12:36:06 PM] No plugins found. See the README for information on installing plugins.
[8/5/2017, 12:36:06 PM] Loaded config.json with 0 accessories and 0 platforms.
[8/5/2017, 12:36:06 PM] ---
[8/5/2017, 12:36:06 PM] Loading 0 platforms...
[8/5/2017, 12:36:06 PM] Loading 0 accessories...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

┌────────────┐     
│ xxx-xx-xxx                         │     
└────────────┘     

[8/5/2017, 12:36:06 PM] Homebridge is running on port 51826.

I exited homebridge and then installed your plugin and got this:

MacBook-Pro-8:~ gregoryallen$ npm i homebridge-chamberlain
[email protected] /Users/gregoryallen
└── [email protected]

I edited my config.json as described., but when I then tried launching Homebridge I get this:

MacBook-Pro-8:~ gregoryallen$ homebridge
[8/5/2017, 12:45:50 PM] No plugins found. See the README for information on installing plugins.
[8/5/2017, 12:45:50 PM] Loaded config.json with 1 accessories and 0 platforms.
[8/5/2017, 12:45:50 PM] ---
[8/5/2017, 12:45:50 PM] Loading 0 platforms...
[8/5/2017, 12:45:50 PM] Loading 1 accessories...
/usr/local/lib/node_modules/homebridge/lib/api.js:64
throw new Error("The requested accessory '" + name + "' was not registered by any plugin.");
^

Error: The requested accessory 'Chamberlain' was not registered by any plugin.
at API.accessory (/usr/local/lib/node_modules/homebridge/lib/api.js:64:13)
at Server._loadAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:254:42)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:81:38)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)

Thanks for any help you might give to someone just starting out.

Plugin fails to load

I've had the plugin installed and working properly but due to an issue with my Raspberry Pi build, I had to blow it out and start over. Now I can't get this to load to save my life... I've tried with 3 fresh installs - all following the Wiki (for the RaspPi3) without exception. Here are the error's found with the plugin installed but without a config.json entry (Homebridge fails to load with the entry):

Jan 23 22:44:19 raspberrypi homebridge[2981]: [1/23/2017, 10:44:19 PM] ====================
Jan 23 22:44:19 raspberrypi homebridge[2981]: [1/23/2017, 10:44:19 PM] ERROR LOADING PLUGIN homebridge-chamberlain:
Jan 23 22:44:19 raspberrypi homebridge[2981]: [1/23/2017, 10:44:19 PM] SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
Jan 23 22:44:19 raspberrypi homebridge[2981]: at exports.runInThisContext (vm.js:53:16)
Jan 23 22:44:19 raspberrypi homebridge[2981]: at Module._compile (module.js:373:25)
Jan 23 22:44:19 raspberrypi homebridge[2981]: at Object.Module._extensions..js (module.js:416:10)
Jan 23 22:44:19 raspberrypi homebridge[2981]: at Module.load (module.js:343:32)
Jan 23 22:44:19 raspberrypi homebridge[2981]: at Function.Module._load (module.js:300:12)
Jan 23 22:44:19 raspberrypi homebridge[2981]: at Module.require (module.js:353:17)
Jan 23 22:44:19 raspberrypi homebridge[2981]: at require (internal/module.js:12:17)
Jan 23 22:44:19 raspberrypi homebridge[2981]: at Object. (/usr/local/lib/node_modules/homebridge-chamberlain/src/index.js:1:92)
Jan 23 22:44:19 raspberrypi homebridge[2981]: at Module._compile (module.js:409:26)
Jan 23 22:44:19 raspberrypi homebridge[2981]: at Object.Module._extensions..js (module.js:416:10)
Jan 23 22:44:19 raspberrypi homebridge[2981]: [1/23/2017, 10:44:19 PM] ====================
Jan 23 22:44:20 raspberrypi homebridge[2981]: [1/23/2017, 10:44:20 PM] Loaded plugin: homebridge-denon

This is on a fresh OS with just the Nest and Denon Plugins installed (and working).

Thanks!

doest work for me anymore

This was working for a long time, then recently (within the last week) I get this, repeatedly, over and over....

[2018-6-3 23:48:12] [House Side Garage Door] Error: Error processing request (217)
at fetch.then.then.data (/usr/local/lib/node_modules/homebridge-chamberlain/src/api.js:26:29)
at
at process._tickCallback (internal/process/next_tick.js:118:7)

Thanks if anyone can look into it. I've tried reloading, removing accessories and let it error out(thinking maybe my deviceIDs changed) nothing. Just will not work anymore.

Can't disable "allow notifications" for garage door accessory

For some reason i can't turn off "allow notifications" in the apple home app for my garage door.
Other accessories i can turn on and off notifications just fine. This one seems to be the only one where i can't.
When i turn the notification off for the garage door it appears to work. Toggle moves to off position. I can go back to the details page to see if it is off and it remains off in the UI.
However when i shutdown the app and re-open it, i can see that "allow notifications" is still turned on.
Is there some option to enable or disable this that needs to be coded for?
Or is my homekit config with apple just messed up for this one accessory?

Getting the following error, but everyting appears to be working

Everytime I open or close my garage door I get the following error:

Error: Error processing request (217)
at fetch.then.then.data (/usr/lib/node_modules/homebridge-chamberlain/src/api.js:26:29)
at
at process._tickCallback (internal/process/next_tick.js:189:7)

Everything appears to be working ok, I just keep seeing this in homebridge. I was wondering if anyone had seen this before? or if there is a way to fix it?

Fetch Error

Just installed this yesterday and it was/is working fine. However, I just noticed this in my log file and I'm not sure what to think of it. Note... same errors reoccurred 7 minutes after the first set (shown below). Problem with their service perhaps?

Jan 11 06:56:45 raspberrypi homebridge[700]: [1/11/2017, 6:56:45 AM] [Garage Door] { FetchError: request to https://myqexternal.myqdevice.com/api/v4/DeviceAttribute/GetDeviceAttribute?AttributeName=doorstate&MyQDeviceId=@@@@@@@ failed, reason: getaddrinfo ENOTFOUND myqexternal.myqdevice.com myqexternal.myqdevice.com:443
Jan 11 06:56:45 raspberrypi homebridge[700]: at ClientRequest. (/usr/lib/node_modules/homebridge-chamberlain/node_modules/node-fetch/index.js:133:11)
Jan 11 06:56:45 raspberrypi homebridge[700]: at emitOne (events.js:96:13)
Jan 11 06:56:45 raspberrypi homebridge[700]: at ClientRequest.emit (events.js:188:7)
Jan 11 06:56:45 raspberrypi homebridge[700]: at TLSSocket.socketErrorListener (_http_client.js:310:9)
Jan 11 06:56:45 raspberrypi homebridge[700]: at emitOne (events.js:96:13)
Jan 11 06:56:45 raspberrypi homebridge[700]: at TLSSocket.emit (events.js:188:7)
Jan 11 06:56:45 raspberrypi homebridge[700]: at connectErrorNT (net.js:1022:8)
Jan 11 06:56:45 raspberrypi homebridge[700]: at _combinedTickCallback (internal/process/next_tick.js:74:11)
Jan 11 06:56:45 raspberrypi homebridge[700]: at process._tickCallback (internal/process/next_tick.js:98:9)
Jan 11 06:56:45 raspberrypi homebridge[700]: name: 'FetchError',
Jan 11 06:56:45 raspberrypi homebridge[700]: message: 'request to https://myqexternal.myqdevice.com/api/v4/DeviceAttribute/GetDeviceAttribute?AttributeName=doorstate&MyQDeviceId=@@@@@@@ failed, reason: getaddrinfo ENOTFOUND myqexternal.myqdevice.com myqexternal.myqdevice.com:443',
Jan 11 06:56:45 raspberrypi homebridge[700]: type: 'system',
Jan 11 06:56:45 raspberrypi homebridge[700]: errno: 'ENOTFOUND',
Jan 11 06:56:45 raspberrypi homebridge[700]: code: 'ENOTFOUND' }

No device found

Noob here trying to make this HomeBridge thing work. Tried too much too fast and nothing worked. After uninstalling everything and starting from scratch, I have installed HomeBridge and the HomeBridge-Chamberlain plugin. HomeBridge now starts and loads config.json fine, but I get the following error repeatedly until I kill the process. My initial thought was I had my password incorrect, but went as far as resetting it completely to no avail. I'm pretty sure this is going to be a "Doh!" moment when I figure it out but hoping you can shed some light.

[9/30/2016, 5:00:01 PM] [Garage Door] Error: No controllable devices found at getDeviceList.then.devices (/usr/local/lib/node_modules/homebridge-chamberlain/src/api.js:70:31) at process._tickCallback (internal/process/next_tick.js:103:7)

Jeff

getting strict error

*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister
[10/20/2016, 10:53:25 AM] ====================
[10/20/2016, 10:53:26 AM] ERROR LOADING PLUGIN homebridge-chamberlain:
[10/20/2016, 10:53:26 AM] SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/usr/local/lib/node_modules/homebridge-chamberlain/src/index.js:1:92)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
[10/20/2016, 10:53:26 AM] ====================
[10/20/2016, 10:53:26 AM] No plugins found. See the README for information on installing plugins.
[10/20/2016, 10:53:26 AM] Loaded config.json with 1 accessories and 0 platforms.
[10/20/2016, 10:53:26 AM] ---
[10/20/2016, 10:53:26 AM] Loading 1 accessories...
/usr/local/lib/node_modules/homebridge/lib/api.js:60
throw new Error("The requested accessory '" + name + "' was not registered by any plugin.");
^

Error: The requested accessory 'Chamberlain' was not registered by any plugin.
at API.accessory (/usr/local/lib/node_modules/homebridge/lib/api.js:60:13)
at Server._loadAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:251:42)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:78:38)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)

Status not updating or incorrect in iOS Home app

Opening and Closing the doors is working correctly however the status does not update consistently. If I force quit the app on one device and launch it again the status will update correctly on the others. I am not sure if this is an issue with the plugin, the homebridge server or iOS. The console output from the homebridge server is showing the correct status.

Posting here to see if others are experiencing the same behavior.

iOS 10.0.1, iPad Pro 9.7" & iPhone 7

Light Swithes and Plugs

Any thoughts of adding support for Liftmaster/Chamberlain RF lights and plugs as wells as the Garage doors?

The tool "sees" my Chamberlain Remote light switch and discovers its Device Id but it does not work and homebridge just generates errors

Works fine for a few hours, then 'Validate Failed'

Noob here! I have just got this working, but after about an hour or two, it stops working and home bridge reporting the below error. If i restart homebridge, its fine again for a couple of hours. Any ideas?

Error
at ClientRequest. (/usr/lib/node_modules/homebridge-chamberlain/node_modules/node-fetch/index.js:133:11)
at emitOne (events.js:115:13)
at ClientRequest.emit (events.js:210:7)
at TLSSocket.socketErrorListener (_http_client.js:401:9)
at emitOne (events.js:115:13)
at TLSSocket.emit (events.js:210:7)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
name: 'FetchError',
message: 'request to https://myqexternal.myqdevice.com/api/v4/User/Validate failed, reason: getaddrinfo ENOTFOUND myqexternal.myqdevice.com myqexternal.myqdevice.com:443',
type: 'system',
errno: 'ENOTFOUND',
code: 'ENOTFOUND' }

Can't open door via Siri, but can every other way.

Running into a strange issue, if I use the button in the home app, I'm able to open and close the door at will. I can also check the status of the door, and ask for it to be closed via siri. But if I try to ask Siri to open the door, she'll say she'll do it, but it never opens. The status remains in opening.

Interestingly enough, the desireddoorstate does switch to open though.

Can this be used without internet connection?

I have this set up and working, but I would love to be able to use the myQ openers without having every command go through Chamberlain's internet servers. Is this possible? I have tried blocking internet access for the MyQ hub on my router, but then the accessory becomes unresponsive. Is there a way to get this working without involving the internet servers?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.