Using the Alexa Skills Kit to control your Chamberlain MyQ garage door.
By using the Alexa Skills Kit and AWS Lambda, you can control your Chamberlain MyQ garage door through your Amazon Echo. This code adapts David Pfeffer's unofficial Chamberlain Liftmaster API to a Python-based app you can use inside of AWS Lambda.
- Create an Alexa Skills Kit (ASK) app, using the intent schema, custom slot values, and sample utterances in this repo. Choose an invocation name like
my garage door
. - Replace
<MYQ_LOGIN_USERNAME>
and<MYQ_LOGIN_PASSWORD>
inmain.py
with the username and password you created at Chamberlain, and substituteamzn1.echo-sdk-ams.app.<your-alexa-skills-id>
with the ID of the ASK skill you created. TheAPP_ID
should remain the same, it is Chamberlain specific and not specific to your MyQ account. - Zip of the contents of this repo and upload as a new AWS Lambda function, and add "Alexa Skills Kit" as an "Event Source".
- Modify your ASK skill with the ARN of your newly created function.
- Test your interactions with the ASK console. When you've got it working, try it on your Echo:
Alexa, ask my garage door to open
.
The documentation for the Alexa Skills Kit is available on the Amazon Apps and Services Developer Portal.
Here are a few direct links to Alexa and Lambda documentation:
- Using the Alexa Skills Kit Samples (Node.js)
- Getting Started
- Invocation Name Guidelines
- Developing an Alexa Skill as an AWS Lambda Function
The code here is based off of an unsupported API from Chamberlain and is subject to change without notice. The authors claim no responsibility for damages to your garage door or property by use of the code within.