This is just a simple Alexa skill you can use to add Alexa support to open and close your garage door by using the phrase alexa ask my garage to open
This can only be used for personal use, and can only work if you have one MyQ garage door opener.
- Go here and click Start a Skill. You will need to login with your Alexa account as this skill will only be available to your account.
- Once signed in click the create a skill button
- Enter the name of the sill eg. My Garage
- Choose a
custom
model and then scroll to the bottom and selectAlexa-Hosted
. (The free tier will be way more than needed for this skill)
- On the build page go to the
JSON Editor
section - Take the alexa.json file and added it to this editor, either by dragging the file to the file drop section or copying the contents.
- Change the invocation name if wanted in the
invocation
section- It is set to my garage but if you would like to do something else feel free to change it to anything like gateway or big door. You will be using the app like
alexa ask gateway to open
- It is set to my garage but if you would like to do something else feel free to change it to anything like gateway or big door. You will be using the app like
- Hit the Build Model button at the top.
- Go to
code
tab at the top - Change code in
index.js
to the code in the index.js in the repository- At the top of the code you will need to change the login information to your personal login information for MyQ. You will see the
username
andpassword
at line 5.
- At the top of the code you will need to change the login information to your personal login information for MyQ. You will see the
- Change the
package.json
code to the one found in the repository.
- Hit the
Deploy
button and let it build.
- Go to the
test
section at the top - Click the dropdown and select
Development
- Type in the box
ask my garage to open
- If it worked properly you should now be able to do the same command on your alexa devices that are connected to the account you logged in with.
You can use the commands after saying Alexa ask my garage
(or whatever invoke word you use)
- Open
- Close
- Status
If you would like to specify a certain door(device) you can change the getDoor()
function to the following. This is useful if you have more than one door you can set up a couple of skills that control separate doors.
const getDoor = async () => {
await account.refreshDevices();
return account.devices[0];
}