question

newuser-5e0d7e20-f035-496f-a9a3-6fd7aefb2eae avatar image
newuser-5e0d7e20-f035-496f-a9a3-6fd7aefb2eae asked ·

Alexa smart home skill best option?

Hello! I'm having problems developing my Alexa smart home skill but first of all I would like to explain my case. I'm controlling one smart house with her own server and I would like have the control using Alexa. I developed one Alexa skill and in my lamba function communicate with my home server and working fine but there's a big problem... because I don't want to invoke my skill every time when I want to do an action like "Alexa, open my_skill_name" and after that "Alexa, turn on the kitchen light". Checking this problem I think that I can use Alexa smart home skill to invoke directly and for example 1) say "Alexa, turn on kitchen light"

2) Go to lambda function

3) In my lambda function connect with my home server.

Is that the best option to do that?

Developing my smart home skill I have a problem in the section "account linking" for that I go to "App & Service", "security profiles", and I don't know what I need to write in "Consent Privacy Notice URL" After that, In "account linking" I have that:

Authorization URI * . https://www.amazon.com/ap/oa Access

Token URI * . https://api.amazon.com/auth/o2/token

Client ID * . (my_client_id)

Client Secret * . (my_client_secret)

Client Authentication Scheme * . HTTP BASIC (Recommended)

Scope * . profile

Domain List . (I don't have nothing)

Redirect URLs (I don't have nothing)

When I go to my skill and I try to login in I have this error: "Error Summary 400 Bad Request The redirect URI you provided has not been whitelisted for your application. Please add your redirect URI in the 'Allowed Return URLs' section under 'Web Settings' for your Security Profile on Amazon Developer Portal." Somebody know how can I to fix the problem?

Thanks in advance!!

Regards!

alexa skills kitalexa voice servicealexa smart homesmart homeworks with alexa
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.

Brian@Amazon avatar image
Brian@Amazon answered ·

Make sure to add the return urls listed under the account linking section of the developer console to your security profile. Under your Login with Amazon settings add these redirect URIs to the "Allowed Return URLs" section, which is located under "Web Settings"

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.

newuser-5e0d7e20-f035-496f-a9a3-6fd7aefb2eae avatar image
newuser-5e0d7e20-f035-496f-a9a3-6fd7aefb2eae answered ·

Thank you very much for your response Brian! I did your steps and I fixed that problem but now, when I try to enable the aplication (with name "example1") I have that message:

We were unable to link domotica at this time.

For instructions and assistance with configuring your skill for account linking with OAuth, please see this guide.

Do you know what could be happend now?

Thanks you in advance.

Regards!

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.

Brian@Amazon avatar image
Brian@Amazon answered ·

Take a look at the account linking debug guide located here: https://forums.developer.amazon.com/articles/38610/alexa-debugging-account-linking.html as well as the one located in the message.

File a contact us case with the requested information if that doesn't solve your problem.

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.