Configure the Alexa Smart Home skill and fill out the required settings.
- Return to the Alexa Skills Kit Developer Console at https://developer.amazon.com/alexa/console/ask and open your skill-sample-nodejs-smarthome-switch skill.
- On the SMART HOME tab, leave the Payload version at v3.
- For the Smart Home service endpoint, enter the ARN saved in your
setup.txt
file as [AWS Lambda ARN] into the Default endpoint field. The ARN should look something like:arn:aws:lambda:us-east-1:XXXXXXXXXXXX:function:skill-sample-language-smarthome-switch
- Click Save. If you get an error stating “Failed to save skill information, Please make sure that "Alexa Smart Home" is selected for the event source type...” return to your AWS Lambda for the skill-sample-nodejs-smarthome-switch function and verify you correctly set and saved the Smart Home trigger.
- Either select the *ACCOUNT LINKING *tab on the left or the Setup Account Linking button at the bottom of the page.
- On the Account Linking page, for the Authorization URI, enter
https://www.amazon.com/ap/oa
. - For the Access Token URI, enter
https://api.amazon.com/auth/o2/token
. - For the Client ID, copy and paste the previously saved [Login with Amazon Client ID] value from the
setup.txt
file. - For the Client Secret, copy and paste the previously saved [Login with Amazon Client Secret] value from the
setup.txt
file. - Under Scope, click the + Add scope link and then add the following scope into the text box:
profile:user_id
- Copy the three (3) redirect urls from the Redirect URLs section and save them to the [Redirect URLs] section of the
setup.txt
file. - Click Save.
Using your account-specific values from the skill configuration section, collect the Redirect URLs and set them in the Security Profile Web Settings Allowed Return URLs.
- Open https://developer.amazon.com/iba-sp/overview.html in another browser tab and make sure APPS & SERVICES is selected in the top menu and Security Profiles is selected in the sub menu.
- Select the Smart Home Sample Security Profile.
- On the Security Profile Management page, select the Web Settings tab.
- In the Web Settings, click the Edit button.
- In the Allowed Return URLs text input, add each of the saved Redirect URLs from the
setup.txt
file. You will need to click the Add Another link to add each Return/Redirect URL. Each of the Return/Redirect URLs will have a format similar tohttps://pitangui.amazon.com/api/skill/link/XXXXXXXXXXXXXX
- Click Save.
Return to the Instructions