I have created an Alexa Skill (Smart Home type) and configured it with ARN associated with my AWS Lambda function (eu-west). I have also linked it with "Login with Amazon" and set the scope to "profile". I have then created an AWS Lambda function for Smart Home, and added triggers for "Alexa Skills Kit" and "Alexa Smart Home" correctly. I have also configured test events, and they are able to correctly turn on and turn off my devices through my device cloud APIs. When I test device discovery using the test event, the test succeeds and the request and response directives looks fine when I checked the CloudWatch logs. The request directive in the log entry contains the request header that identifies the namespace as "Alexa.ConnectedHome.Discovery" correctly. However, when I initiate "Add Device" from the Alexa App or Echosim.io, I get "No new devices found" in the App. When I looked at CloudWatch log, it shows that the request directive does not contain the request header at all. The request directive only contains the request id. Since there is no header, no namespace in the request directive, the log entry shows an error: "TypeError: Cannot read property 'namespace' of undefined at exports.handler (/var/task/index.js:374:27)". This clearly shows that the request directive does not contain the header information. Since I have configured it as "Smart Home" type, I had expected the Alexa Smart Home API to call my Lambda function with the 'request.header.namespace' set to "Alexa.ConnectedHome.Discovery". But, this is not the case. I checked out various online forums including Amazon support. But, none of them helped. Can you please help me resolve the device discovery issue?
-
- Alexa
- Alexa Prize
- Alexa Connect Kit (ACK)
- Alexa Dev Days
- Alexa Developer Programs
- Alexa Developer Rewards
- Alexa Flash Briefing Skill API
- Alexa Gadgets
- Alexa Skill Management API (SMAPI)
- Alexa Skills Kit (ASK)
- Alexa Smart Home Skill API
- Alexa Video Skill API
- Alexa Voice Service (AVS)
- Amazon Pay
- In-Skill Purchases
- Works with Alexa
- Appstore
- Frustration-Free Setup
- Leaderboards & Tournaments
- Amazon Fire Devices
- Merch by Amazon
- Amazon Underground
- Mobile APIs and Services
- General Android
- Amazon Dash Replenishment
- 日本語版ナレッジベース
- 亚马逊应用开发者中文论坛
- Forum Help
- Alexa
- Sign in