An Alexa integration that uses Gooee's API for lighting control.
- Python 3.6 or higher
- AWS account
- Amazon Developer Account
- OAuth2 client ID and secret obtained by emailing cloud-backend@gooee.com
This is meant to be ran in an AWS Lambda environment, but to run tests locally:
pip install -r requirements.txt
Below are steps to deploy this Lambda function as an Alexa Smart Home Skill:
- Create a Python 3.6 AWS Lambda function "from scratch" using your AWS account in the region you plan to distribute the Alexa skill.
- In the Designer section, select "Alexa Smart Home" as a trigger.
- A new section "Configure triggers" should prompt you to provide an Application ID. Open the "Alexa section" link IN A NEW TAB.
- In the new tab, login using your Amazon Developer Account and click "Create Skill" > "Smart Home"
- Copy the Skill ID to your clipboard and flip back to the AWS Lambda tab. Use this as the input for the "Application ID", then Save.
- Copy the Lambda ARN at the top right, flip back to the Amazon Developer tab, and use this as the "Default endpoint", then Save.
- In the Function code section, select "Upload a .ZIP file" from the "Code entry type" drop-down.
- Run
makeor Zip this directory. Providedist.zipor your created zip as the upload, then Save. - Afterwards, you will need to setup Account Linking using the Amazon Developer Console. Use the Client ID and Secret from the requirements section.
After installing the requirements, run them locally by executing pytest or make test
- Implement a
SceneController.