AlexaAWSIoT
Overview
- Alexa skill > AWS IOT
- Webpage > AWS IOT (uses cognito to grant access)
AWS IoT
- AWS IOT: create your things. The demo expects the following devices: light1, light2, light3, light4, frontlight, backlight, tv1, window1, window2, window3, window4, frontdoor.
- Sample AWS IOT requests: https://github.com/PaulCutsinger/AlexaAWSIoT/tree/master/WebsiteCode/sample_requests
Alexa
Backend
- Lambda: create a Lamba function
- Lambda: update index.js in the /LambdaCode folder with your AWS IOT endpoint
- IAM: Add IoT full access policy to Lambda Access role created in 1
Frontend
- create a skill on developer.amazon.com with the invocation name "our house" and using information from /SpeechAssets
Webpage
grant permission
- Cognito: create cognito identity pool, get creds from sample code tab
- IAM: Add IoT full access policy to Cognito Auth and Unauth roles that were created in step 1
WebsiteCode
- update ./policy/cognito_unathenticated.json with your AWS IOT ARN
- update index.html with your cognito ID pool and your AWS IOT endpoint. Also in this file, double check that you're subcribed to all the AWS IOT devices you created.
##Currently working scenarios:
- Alexa, tell [invocation name] to switch to [scene] mode. where scene is "all on", "all off", "movie"
- Alexa, open [invocation name]. where several settings are toggled just to show it's working.
On this page
Contributors
Created September 15, 2016
Updated December 1, 2016