This is an extensible Alexa Companion Skill.
-
You will need an Amazon Developer account as well as an AWS account
-
Clone the repository
-
Install the Alexa Skill Kit
npm i -g ask-cli
-
Configure the Alexa Skill Kit
ask configure
You will need to associate an AWS Profile with ASK CLI. When asked for access keys:
- Go to the IAM user list and click on the user you just created
- Click on the security credentials tab
- Scroll down to the access keys section and create a new key
- After finish, copy the access keys to ask cli
If you have trouble getting it to work you can also try it by using your main aws account.
-
Set the correct region (i.e. region=eu-west-1)
nano ~/.aws/credentials
-
Set up config
Rename
lambda/.env.sample
tolambda/.env
Fill in
lambda/.env
OR
You may also set those in the AWS UI as "Environment Variables"
-
Update
skill.json
Rename
skill-package/skill.sample.json
toskill.json
-
Install dependencies
cd lambda/
npm i
-
API_URL: URL to your backend API (E.g. for HA: https://your-public-ha.domain/api)
-
API_TOKEN: API token to authenticate against the API
-
BACKEND: The backend to connect to. Supported: 'hass' and 'todo'
- Run
ask deploy
-
Get the ARN of your lambda function and update
skill-package/skill.json
"apis": { "custom": {} },
to
"apis": { "custom": { "endpoint": { "uri": "arn:aws:lambda:..." } } },
-
Add the
/.ask/ask-states.json
you saved from your last deployment -
Run
ask deploy
ask dialog --locale de-DE
- German