question

newuser-27a9b963-c2b7-4ab0-8970-7be425cafff8 avatar image
newuser-27a9b963-c2b7-4ab0-8970-7be425cafff8 asked ·

No Devices found after discovery

Discovery request is happening and response is being sent properly, even after that it gives "No Devices found"

Even more earlier it was working.

Few months ago, I had demo Smart Home skill working, in which user can link account, some types of demo devices were discovering and control on it. Currently when I discover devices, it tells 'No new devices found'. It does not show demo/virtual devices in app also. Earlier it was working.

Response to discovery interface is same as earlier.

Here is example request:
{
"directive": {
    "header": {
        "namespace": "Alexa.Discovery",
        "name": "Discover",
        "payloadVersion": "3",
        "messageId": "90939566-c7a7-4195-93ad-1a97834a3ab7"
    },
    "payload": {
        "scope": {
            "type": "BearerToken",
            "token": "Atza|IwEBIAjCr4kpR6T2B1cEdIfvCCxQmwwRBn28bC-pMOT0gmphXVQ1RR7cpuuuyX5Zd3nIKc77VmqeBw1FHP7m2LsOloqErzjHiliicy8pvtlJ1jvUxetVarUj8LvL_e9cT39CTqyERCJLzOKicZsW6z_679I7re1MOIOragx2T6yvrDRUUxo_O3KiflwMVZe87QZqZqURydYIZeCdi1S9SwmqCgPMKBxmsMfRq1vQIFP2RLe63C8VqlkTLvcBsWmVfSNE8SFwDpJuZI3Q2tFy2q2yOgBbLdL1oTd_EK8-mh813fsrzD1GcFixrTKrUgyAZulOmAe7jqB4-4E9eZbqbZ3Iyx1sPX0ltGc1KFjcOs2nZSVnpg"
        }
    }
}
}


And here is Response:
{
"event": {
    "header": {
        "namespace": "Alexa.Discovery",
        "name": "Discover.Response",
        "messageId": "3d09ff51-44a5-4a57-85a2-99de5daec683",
        "payloadVersion": "3"
    },
    "payload": {
        "endpoints": [
            {
                "capabilities": [
                    {
                        "type": "AlexaInterface",
                        "interface": "Alexa",
                        "version": "3"
                    },
                    {
                        "type": "AlexaInterface",
                        "interface": "Alexa.PowerController",
                        "version": "3",
                        "properties": {
                            "supported": [
                                {
                                    "name": "powerState"
                                }
                            ],
                            "proactivelyReported": false,
                            "retrievable": false
                        }
                    }
                ],
                "description": "Sample Endpoint Description",
                "displayCategories": [
                    "OTHER"
                ],
                "endpointId": "sample-switch-01",
                "friendlyName": "Sample Switch",
                "manufacturerName": "Sample Manufacturer"
            },
            {
                "capabilities": [
                    {
                        "type": "AlexaInterface",
                        "interface": "Alexa",
                        "version": "3"
                    },
                    {
                        "type": "AlexaInterface",
                        "interface": "Alexa.BrightnessController",
                        "version": "3",
                        "properties": {
                            "supported": [
                                {
                                    "name": "brightness"
                                }
                            ],
                            "proactivelyReported": false,
                            "retrievable": false
                        }
                    }
                ],
                "description": "Sample Endpoint Description",
                "displayCategories": [
                    "OTHER"
                ],
                "endpointId": "sample-brightness-01",
                "friendlyName": "Sample Brightness Bulb",
                "manufacturerName": "Sample Manufacturer"
            },
            {
                "capabilities": [
                    {
                        "type": "AlexaInterface",
                        "interface": "Alexa",
                        "version": "3"
                    },
                    {
                        "type": "AlexaInterface",
                        "interface": "Alexa.ColorTemperatureController",
                        "version": "3",
                        "properties": {
                            "supported": [
                                {
                                    "name": "SetColorTemperature"
                                }
                            ],
                            "proactivelyReported": false,
                            "retrievable": false
                        }
                    }
                ],
                "description": "Sample Endpoint Description",
                "displayCategories": [
                    "OTHER"
                ],
                "endpointId": "sample-dining-room-01",
                "friendlyName": "Sample Dining Room",
                "manufacturerName": "Sample Manufacturer"
            },
            {
                "capabilities": [
                    {
                        "type": "AlexaInterface",
                        "interface": "Alexa",
                        "version": "3"
                    },
                    {
                        "type": "AlexaInterface",
                        "interface": "Alexa.ThermostatController",
                        "version": "3",
                        "properties": {
                            "supported": [
                                {
                                    "name": "targetSetpoint"
                                }
                            ],
                            "proactivelyReported": false,
                            "retrievable": false
                        }
                    }
                ],
                "description": "Sample Endpoint Description",
                "displayCategories": [
                    "OTHER"
                ],
                "endpointId": "sample-heater-01",
                "friendlyName": "Sample Heater",
                "manufacturerName": "Sample Manufacturer"
            },
            {
                "capabilities": [
                    {
                        "type": "AlexaInterface",
                        "interface": "Alexa",
                        "version": "3"
                    },
                    {
                        "type": "AlexaInterface",
                        "interface": "Alexa.Speaker",
                        "version": "3",
                        "properties": {
                            "supported": [
                                {
                                    "name": "SetVolume"
                                },
                                {
                                    "name": "SetMute"
                                }
                            ],
                            "proactivelyReported": false,
                            "retrievable": false
                        }
                    }
                ],
                "description": "Sample Endpoint Description",
                "displayCategories": [
                    "OTHER"
                ],
                "endpointId": "sample-speaker-01",
                "friendlyName": "Sample Speaker",
                "manufacturerName": "Sample Manufacturer"
            }
        ]
    }
}


I have tried updating response for only one device and adding all objects available like this:

{
    "event": {
        "header": {
            "namespace": "Alexa.Discovery",
            "name": "Discover.Response",
            "messageId": "39a68672-58f9-4d41-8249-f7bd3fd80d58",
            "payloadVersion": "3"
        },
        "payload": {
            "endpoints": [
                {
                    "capabilities": [
                        {
                            "type": "AlexaInterface",
                            "interface": "Alexa",
                            "version": "3"
                        },
                        {
                            "type": "AlexaInterface",
                            "interface": "Alexa.PowerController",
                            "version": "3",
                            "properties": {
                                "supported": [
                                    {
                                        "name": "powerState"
                                    }
                                ],
                                "proactivelyReported": false,
                                "retrievable": false
                            }
                        }
                    ],
                    "description": "Sample Endpoint Description",
                    "displayCategories": [
                        "OTHER"
                    ],
                    "endpoint_id": "sample-switch-01",
                    "friendlyName": "Sample Switch",
                    "manufacturerName": "Sample Manufacturer",
                    "additional_attributes": {
                        "model": "123"
                    }
                }
            ]
        }
    }
}


Even after that no success.

Please help. What am I missing?

Does it have any relation to different users, database etc?

Thank you

alexa skills kitlambdadevicesresponsesmart 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.

Gaetano@Amazon avatar image
Gaetano@Amazon answered ·

Hello,

Is your lambda function getting the discovery request? Also, are you using the same Amazon account you built your skill with to discover devices?

Can you share the skill-ID so I can have a better look at it?

Thanks,
Gaetano

2 comments
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.

Hey @Gaetano@Amazon

I'm also having the same problem. I have added one question regarding this on the forum but it is under moderation for some reason.


AWS Lambda: arn:aws:lambda:us-east-1:257285270416:function:LightsDemoFunction

Skill Id: amzn1.ask.skill.8de7b4ea-b170-480c-b59e-b4a96e7bfbe4


I have also checked the CloudWatch Logs and the Discovery Directive is not being sent to the AWS Lambda. I have also cross checked the skill Id and Lambda Id but still can't find the problem.


Everything was working fine till yesterday but suddenly the skill request are not being sent to AWS Lambda. Please see if you can help me with this.

0 Likes 0 ·
Gaetano@Amazon avatar image Gaetano@Amazon ♦ newuser-52504b4f-777b-473e-a1cd-a04486128616 ·

Hi,

I can see you also opened a contact-us case for that skill-ID.

I will assist you there and then share the solution here if applicable.

Thanks,
Gaetano

0 Likes 0 ·
newuser-982812fc-83b7-4f48-be61-1f2b78730c6a avatar image
newuser-982812fc-83b7-4f48-be61-1f2b78730c6a answered ·

Hello,


I have the same problem. The lambda receives the Accept grant directive (with success). Then no directive is sent to the lambda.


Have you any solution for this problem.


1 comment
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.

Hello,

For this kind of issue we would need information related to your account. Please file a contact us here where we will be able to assist further.

Regards,

Gaetano

0 Likes 0 ·
rsar avatar image
rsar answered ·

Hello @Gaetano@Amazon is this problem solved? I had similar issue and it was working before.

After successful account linking, discovery request sent to my lambda and I responded correctly, but Alexa App says 'No devices found'

2 comments
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.

Hi rsar,

Please follow the procedure I have highlighted here. Make sure to provide the discovery JSON of your device and some test credentials for the account linking process.

Thanks,
Gaetano

0 Likes 0 ·
rsar avatar image rsar Gaetano@Amazon ♦ ·

Thank you @Gaetano@Amazon, I have created case 7398057231

0 Likes 0 ·