This module is made for people who have a Myq Chamberlain garage door opener.
This is made for API v 4.1. As of March 2017 it is working correctly.
Install
npm i --save myq-node
Usage
let myq = myq//Email and password are reqired, device ID is optional myq //Don't forget to catch errors /*If you set a device ID then it will use one for the rest of the methods, if not just provideone now*/ myq myq myq
Methods
login(email, password[, deviceId])
Sets email address and password for future requests. deviceId is optional but will set them for other methods.
getDevices()
Promise, gets devices connected to your myq account.
getState([deviceId])
Promise, returns state of the device.
2 = Closed
8 = Opening or Closing
9 = Open
openDoor([deviceId])
Promise, opens the selected device. Returns if the device was opened.
closeDoor([deviceId])
Promise, opens the selected device. Returns if the device was closed.