[RELEASE] MyQ Lite Door and Lamp Control (for Liftmaster/Chamberlain)

I tried installing the node but I get these errors, any input is appreciated:

43 error Darwin 15.6.0
44 error argv “/usr/local/bin/node” “/usr/local/bin/npm” “install” "myqcontroller"
45 error node v6.7.0
46 error npm v3.10.3
47 error code ENOSELF
48 error Refusing to install myqcontroller as a dependency of itself
49 error If you need help, you may report this error at:
49 error https://github.com/npm/npm/issues
50 verbose exit [ 1, true ]

Tom, I ordered them and now have them installed. Yes the world is good, or at least as good as it used to be. :slight_smile: Very happy with the MyQ Lite app in conjunction with Alexa Helper I’m happy again. Thanks much!

Well I managed to install the node by editing the name in package.json to “myqcontroller-test”. Now I face another error when I run the server.

myq.js had too many unstable restarts (16). Stopped. “errored”

Do you know what could be causing this? I’m using pm2 to start the server.

I got it to work, gotta say it was painfully hard to figure out that node stuff. But now that everything is up and running, I wanna say thank you for your awesome app. I didn’t even have to buy any sensors.

I updated the instructions last night how to install it - should be more clear hopefully now. :slight_smile:
Glad its now working for you.

Just set this up and it’s working great so far. I already had a node proxy server running for my Honeywell alarm/Envisalink IP module so the setup went smoothly. Currently running both servers on a Synology NAS.

Just skimmed the code and it looks like you’re polling the API every 5 seconds as an iOS 9.3 device. Aren’t you worried that this will eventually get blocked?

It’s using your local IP address, same as you would be using their official app on your phone. It can get blocked eventually I guess, but there are bunch of unofficial integrations that use the same method (i.e. multiple node modules for homebridge), as well as myq’s official app is using the same APIs I’m pretty sure. But hopefully it’ll last until we get an official integration with ST. :slight_smile:

Did I miss something? Getting a weird error after running the server:

=== === === MyQ Controller === === ===
[08/10 18:04:39] Retrieved config for server:
[08/10 18:04:39] Done.
[08/10 18:04:47] Handling request for: /ping
[08/10 18:04:47] Getting ping… replying pong
[08/10 18:04:51] Handling request for: /init
[08/10 18:04:51] Received init request
[08/10 18:04:51] Initializing…
[08/10 18:04:51] Error reading device list: SyntaxError: Unexpected token < in JSON at position 0
[08/10 18:04:51] Refreshing security tokens…
[08/10 18:04:52] Handling request for: /init
[08/10 18:04:52] Received init request
[08/10 18:04:52] Initializing…
[08/10 18:04:52] Error reading device list: SyntaxError: Unexpected token < in JSON at position 0
[08/10 18:04:52] Refreshing security tokens…

Interesting. Looks like the response that’s coming from chamberlain server is not in proper json format … or maybe server error or something. Can you add some debugging to see what’s coming?

Open server/service/myq.js file, and after line 90 ( where you see “if (body) {” ) - add:


so it would be:

if (body) {
    try {

so that you can see in console what message is getting returned when trying to get devices.

ahh… didn’t try debugging but I got it to work. Realized I had a VPN running. Disabling the VPN got it going. Thanks for deving!! :smiley:

For anyone running a VPN, you can run a static route to smartthings.com.


Very new to the SmartThings and community, thanks for all the interesting work integrating things that should be integrated but the vendor does not bother.

If I’m not interested in using the SmartThings system to monitor the state of the garage door but just to open and close it, is there a way to bybass the requirement of a separate Contact or Tilt sensor?

I live in Canada so an extra Tilt sensor is easily over $50, trying to conserve some costs.


Yes, it’s possible if you want to tweak the code around a bit. The challenge would be that SmartThings would have no way to know whether the door is open or not, so my thought would be to modify the device type to just hard-code a close command and an open command that you can trigger regardless of what the current state is.

Edit: Thinking about this a little more, it’s actually a pretty good idea to have an option in this app to integrate the door even without a sensor. Some things would be clunkier, but basic functionality could still work even if ST doesn’t know the door status. I probably won’t have time to get into it for awhile, but I’ll add it my list of fun stuff to do.

thanks @aromka got this working over the weekend on a original raspberry pi. Works great so far.

Thanks Brian, that’s awesome.

If you have any quick tips to give in the short term for hard coding the close and open command regardless of current state, please pass it along, I would really appreciated being able to delete the clunky MyQ app off my phone!

I’d suggest going into the SmartApp and changing required to “false” instead of true on the contact sensors. Then you could just create a routine that opens the door and another that closes it. Beyond that, you’d need to mess with the device handler quite a bit to make things more usable - I honestly haven’t thought that hard about how to make things work without knowing the status, so I’m not sure how well things will work.

Thanks for the insight.

I tried changing the “true” to “false” for the sensor requirement but it kicks back an error when I try to load up the app.

I guess I’m not techie enough to figure this out on my own!

Anyone having issues after hub update? Hub update yesterday and garage now says always open?

The hub update was delayed until today. It hasn’t happened yet.

1 Like

Would not clear till door cycled, did the normal st update panic mode… Not sure why sensor and myq both locked up? Myq app reported correctly, but st app confused.