Create an Alexa Smart Home Skill that will process the Smart Home commands.
4.1.1 In a web browser to the Alexa Developer Console at https://developer.amazon.com/alexa/console/ask. If not already authenticated, you may have to Sign In with your Amazon Developer Account .
4.1.2 From the Alexa Skills page, click the Create Skill button on the top right of the page.
4.2.1 On the Create a new skill page, enter Sample Smart Home Skill
as the Skill name.
4.2.2 Leave the language as English.
For more information on adding another language to your skill, see Develop Smart Home Skills in Multiple Languages.
4.2.3 Under Choose a model to add to your skill, select Smart Home.
4.2.4 Click Create a skill
4.3.1 When the skill is created, the page will refresh. In the Smart Home service endpoint section, copy the Your Skill ID of the Alexa Skill to the setup.txt
file into the [Alexa Skill Application Id] value. The format of the Application Id will look like following:
amzn1.ask.skill.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
4.3.2 Copy the Application Id value to the clipboard.
4.4.1 In a new tab, browse to https://us-east-1.console.aws.amazon.com/lambda/home?region=us-east-1#/functions/SampleSkillAdapter?tab=triggers.
4.4.2 Note the Add triggers section on the left menu. This part of the designer allows you to add triggers to your Lambda function.
4.4.3 In the Configuration section, select Alexa Smart Home from the left menu and it should be added to the SampleSkillAdapter as a trigger. The Alexa Smart Home trigger will report "Configuration required" until the corresponding Alexa Skill Application ID is entered as part of the configuration.
4.4.4 Select the Alexa Smart Home - Configuration required box and locate the Configure triggers section at the bottom of the page. Paste the Alexa Skill Application Id value from the clipboard into the Application Id text box. If you no longer have the value on your clipboard, you can retrieve it from the [Alexa Skill Application Id] section of the setup.txt
file.
4.4.5 Verify Enable trigger is checked and then click Add. To finish enabling the trigger, click Save for the function at the top right of the page. Once saved, the Alexa Smart Home trigger should report "Saved".
4.4.6 Close this tab and return to your Sample Smart Home Skill in the Alexa Developer Console.
Go to Step 5: Configure the Alexa Smart Home Skill.
Return to the Instructions