question

Joe (Work) avatar image
Joe (Work) asked

How to deal with Discovery timeouts

I have a smart home skill that calls a 3rd party API for all interactions with devices (Thermostats, etc). When doing a "Alexa.Discovery", the skill calls the 3rd party api to return the list of devices. Depending on the number of devices, the 3rd party API can exceed the 8 second limitation and the discovery will fail. Does anyone have any suggestions on how to deal with this? Can discovery be done asynchronously?


Thanks.

device discovery
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

Chihiro@Amazon avatar image
Chihiro@Amazon answered

Hi Joe,

The device discovery response should be send synchronously to discover directive. I would recommend reviewing your infrastructure and see if you can improve the response time. Alternatively, you can call the API in regular interval and cash the result at skill endpoint.

10 |5000

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