question

newuser-49f552bc-4d0c-4db3-961f-1d0dafafb272 avatar image
newuser-49f552bc-4d0c-4db3-961f-1d0dafafb272 asked ·

How to make lambda work in asynchrously for smart home skill

The alexa skill is for smart home service to control switches (Turn on/off), so when try to control the multiple switches because of synchronous nature execution of lambda it turns on switches one after the other causing delay. I need to control them at single shot so need asynchronous execution for lambda where requests need to execute without waiting for the response. Earlier alexa worked as expected where all switches turned on/off at a single shot, but now there is a delay. Where was the issue do anybody have similar issues?

alexa smart homesubmission testing distributionlambdasmart 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

Gaetano@Amazon avatar image
Gaetano@Amazon answered ·

Hello and thanks for your post.

Can you please share the skill-ID, the discovery response of the switches, and the directives you are sending to switch them off simultaneously?

Regards,
Gaetano

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.