question

Filip avatar image
Filip asked ·

Alexa Smart Home Skill does not find devices anymore

Hi all,


I am currently working on a smart home skill to enable our own smart home devices to be used with Alexa. Last friday everything was working as expected. At some point however alexa stopped finding devices with the Discovery procedure.


I can see that my lambda is called and returns the list of devices. I also tried to return just the sample Discovery Response provided by Amazon. No Luck!

Here is the discovery request

{
  "directive": {
    "header": {
      "namespace": "Alexa.Discovery",
      "name": "Discover",
      "payloadVersion": "3",
      "messageId": "40614b94-24ed-4f70-9f9e-805000c1f670"
    },
    "payload": {
      "scope": {
        "type": "BearerToken",
        "token": "Atza|IwEBIE..."
      }
    }
  }
}

And the response I send (I have a couple more devices just took two for the sake of readabilty)

{
    "event": {
        "header": {
            "namespace": "Alexa.Discovery",
            "name": "Discover.Response",
            "messageId": "c3d5a799-2db0-4fdb-9aa0-992f79f7c8d8",
            "payloadVersion": "3"
        },
        "payload": {
            "endpoints": [
                {
                    "capabilities": [
                        {
                            "type": "AlexaInterface",
                            "interface": "Alexa",
                            "version": "3"
                        },
                        {
                            "type": "AlexaInterface",
                            "interface": "Alexa.TemperatureSensor",
                            "version": "3",
                            "properties": {
                                "supported": [
                                    {
                                        "name": "temperature"
                                    }
                                ],
                                "proactivelyReported": false,
                                "retrievable": true
                            }
                        }
                    ],
                    "description": "Temperatursensor",
                    "displayCategories": [
                        "OTHER"
                    ],
                    "endpointId": "00:0F:C9:0E:CB:31-1",
                    "friendlyName": "Intern",
                    "manufacturerName": "My Manufacturer"
                },
                {
                    "capabilities": [
                        {
                            "type": "AlexaInterface",
                            "interface": "Alexa",
                            "version": "3"
                        },
                        {
                            "type": "AlexaInterface",
                            "interface": "Alexa.ContactSensor",
                            "version": "3",
                            "properties": {
                                "supported": [
                                    {
                                        "name": "detectionState"
                                    }
                                ],
                                "proactivelyReported": false,
                                "retrievable": true
                            }
                        }
                    ],
                    "description": "4-fach Schalteingang (Bit 0...3)",
                    "displayCategories": [
                        "OTHER"
                    ],
                    "endpointId": "00:0F:C9:0E:CB:31-2",
                    "friendlyName": "Eingangstür",
                    "manufacturerName": "My Manufacturer"
                }
            ]
        }
    }
}


While this was working on friday since monday after I have deleted all of my devices in the Alexa App the skill is unable to find any new devices. I cannot see any error in Cloudwatch and the Lambda is called properly. I have no idea what else I could try.

Can anyone advise? Is there any way to debug what is happening on the skill side?

Please Help!

alexaalexa smart homesmart home
10 |2000 characters needed characters left characters exceeded

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

1 Answer

Jason@Amazon avatar image
Jason@Amazon answered ·

Check out the tips in the following blog, mainly the point on testing one interface, one endpoint at a time:

https://developer.amazon.com/en-US/blogs/alexa/device-makers/2020/12/common-issues-in-alexa-smart-home-skills-and-how-to-troubleshoot-them

10 |2000 characters needed characters left characters exceeded

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