question

newuser-37b4c23c-223e-4ae7-b018-68345d0b4cb0 avatar image

No device was found, How can I debug this?

Hi,

My skill ID:  amzn1.ask.skill.a9d5e860-38e8-4b6b-ae8e-37ab4e90010e
My endpoint:  arn:aws:lambda:us-east-1:250200575570:function:alexa_endpoint

I could link account in My Smart Home Skill, but the devices discovery failed.
I received the directive "Alexa.Discovery", then my lambda return the "Discover.Response".
No device was found finally.

Here is my "Discover.Response":

{
    "event": {
        "header": {
            "namespace": "Alexa.Discovery",
            "name": "Discover.Response",
            "payloadVersion": "3",
            "messageId": "0ef8875b-ef36-4016-be5d-49359c69d5a1"
        },
        "payload": {
            "endpoints": [
                {
                    "endpointId": "lightjenny",
                    "manufacturerName": "Sample Manufacturer",
                    "friendlyName": "White Light",
                    "description": "003 Light that is dimmable and can change color temperature only",
                    "displayCategories": [
                        "LIGHT"
                    ],
                    "cookie": {},
                    "capabilities": [
                        {
                            "type": "AlexaInterface",
                            "interface": "Alexa.PowerController",
                            "version": "3",
                            "properties": {
                                "supported": [
                                    {
                                        "name": "powerState"
                                    }
                                ],
                                "proactivelyReported": false,
                                "retrievable": false
                            }
                        }
                    ]
                }
            ]
        }
    }
}
alexa skills kitalexa smart home
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Anand@Amazon avatar image
Anand@Amazon answered

Hi there,

There is some issue with your Discovery Response JSON. Please use below Response JSON in your skill.

{
    "event": {
        "header": {
            "namespace": "Alexa.Discovery",
            "name": "Discover.Response",
            "payloadVersion": "3",
            "messageId": "0ef8875b-ef36-4016-be5d-49359c69d5a1"
        },
        "payload": {
            "endpoints": [
                {
                    "endpointId": "lightjenny",
                    "manufacturerName": "Sample Manufacturer",
                    "friendlyName": "White Light",
                    "description": "003 Light that is dimmable and can change color temperature only",
                    "displayCategories": [
                        "LIGHT"
                    ],
                    "cookie": {},
                    "capabilities": [
                        {
                            "type": "AlexaInterface",
                            "interface": "Alexa",
                            "version": "3" 
                        },
                        {
                            "type": "AlexaInterface",
                            "interface": "Alexa.PowerController",
                            "version": "3",
                            "properties": {
                                "supported": [
                                    {
                                        "name": "powerState"
                                    }
                                ],
                                "proactivelyReported": true,
                                "retrievable": true
                            }
                        }
                    ]
                }
            ]
        }
    }
}
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.