Amazon Alexa Smart Home : Unable to discover device

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Amazon Alexa Smart Home : Unable to discover device



I am having an issue in Discovery.



when I discover devices, it does not appear to be calling the Lambda function that I have defined. The Lambda function is configured on the Skill and the event source is configured on the Lambda function.



I have check from monitoring logs that lambda function is not getting called when I try to discover devices from Alexa interface.



If I try to test same using lambda test interface it gives me the response.



Sample request being made from lambda test interface



"header":
"messageId": "6d6d6e14-8aee-473e-8c24-0d31ff9c17a2",
"name": "DiscoverAppliancesRequest",
"namespace": "Alexa.ConnectedHome.Discovery",
"payloadVersion": "2"
,
"payload":
"accessToken": "some string"




Response I got from my API endpoint is as below



"header":
"messageId": "6d6d6e14-8aee-473e-8c24-0d31ff9c17a2",
"name": "DiscoverAppliancesResponse",
"namespace": "Alexa.ConnectedHome.Discovery",
"payloadVersion": "2"
,
"payload":
"discoveredAppliances": [

"actions": [
"incrementPercentage",
"decrementPercentage",
"setPercentage",
"turnOn",
"turnOff"
],
"additionalApplianceDetails":
"serialNumber": "CRED DEVICE 1456842949167",
"firmwareVersion": "0.7.1.1"
,
"applianceId": "d4cab60d-b2e5-4d0f-ae50-c566e0de26ce",
"friendlyDescription": "Den",
"friendlyName": "Den",
"isReachable": true,
"manufacturerName": "CredSmartLabs",
"modelName": "H+1140-87-",
"version": "1"

]






If the Lambda function itself is never being called, there is a problem with your configuration. Ensure everything is setup correctly, perhaps start over and follow the set up step by step making sure everything is right. Is your lambda event handler set up right? Does your Handler match up with your exports.handler function in the Lambda config?
– master565
Jul 21 '16 at 15:18




1 Answer
1



I just had the same same issue. No discover requests were sent to my lambda function. The error was that I've entered an invalid application id for the Trigger > Smart Home Trigger.



This needs to be the same value as your skill application id.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Creating a leaderboard in HTML/JS