question

newuser-6e2550e9-4417-4c6e-a56c-21177432c055 avatar image

Home Skill not calling Lambda

I am able to link my smart home skill but later on it doesnot call the lambda function for discovery once successfully linked.

I tried with new lambda function also. But lambda function doesnt get invoked for discovery of devices

smart home
10 |3000 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

Hi,

please make sure that your lambda function is deployed in the correct region according to your skill-locale.

Here's a reference:
https://developer.amazon.com/docs/smarthome/steps-to-build-a-smart-home-skill.html#configure-the-smart-home-service-endpoint

10 |3000 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.

newuser-6e2550e9-4417-4c6e-a56c-21177432c055 avatar image
newuser-6e2550e9-4417-4c6e-a56c-21177432c055 answered

* Account linking done successfully (although using a different oauth provider, but that shouldn't matter, right?)

* Lambda has Alexa Smart Home trigger, which is enabled, and has the correct skill arn configured

* Skill has correct lambda function ARN as the Default endpoint

* When sending test discovery event from lambda, it works fine

* When trying to discover devices using the alexa app, I get a message stating "No devices found". There are no log entries in CloudWatch after this.

* When trying to discover devices using the alexa webpage, I see the dialog which states it is trying to find devices, but ultimately does not find any. No log entries in CloudWatch after this.

* My skill is in devUS and lambda function in N.Virginia


10 |3000 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

Hi,

Thanks for the details provided. Can you provide the skill-ID?

Thanks,
Gaetano

3 comments
10 |3000 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.

please find the skill id:

amzn1.ask.skill.c8285358-2c1c-4ac3-b92d-8a6e6e22db28

0 Likes 0 ·
Gaetano@Amazon avatar image Gaetano@Amazon ♦ newuser-6e2550e9-4417-4c6e-a56c-21177432c055 ·

Hi,

your skill is missing some test instruction (i.e account linking credentials). Please update this info within the relevant field or open a Contact Us case here.

Kind regards,
Gaetano

0 Likes 0 ·
Gaetano@Amazon avatar image Gaetano@Amazon ♦ newuser-6e2550e9-4417-4c6e-a56c-21177432c055 ·

Hi,

I have removed the account credentials for security reason. Please open a Contact Us case with the link from the above message if you need to provide sensitive information.

Thanks,
Gaetano

0 Likes 0 ·