To test the smart home skill on a device, it must first be enabled and linked to your Amazon developer account.
- Go to https://alexa.amazon.com, login with your developer account, and select Skills from the left menu.
- Click Your Skills from the top right of the section.
- On the Your Skills page, select the DEV SKILLS tab.
- Click the skill-sample-nodejs-smarthome-switch skill.
- On the skill-sample-nodejs-smarthome-switch page, click Enable in the top right and authenticate with your Amazon developer account. If you are already signed in, you will be presented with a dialog asking to “Click 'Allow' to sign in to Smart Home Sample”.
- On success, you should be presented with a window that reads “skill-sample-nodejs-smarthome-switch” has been successfully linked.
- When redirected back to the Skill page, you will be prompted Discover Devices. Click Discover Devices.
- After the discovery process completes, a new “Sample Switch” with the description of “Sample Endpoint Description” will be available in your Devices list.
The Alexa Developer Console has test functionality built-in and can be used to test your skills under development.
- Navigate to https://developer.amazon.com/alexa/console/ask and select skill-sample-nodejs-smarthome-switch from the list of Alexa Skills.
- Select the Test tab.
- In the Alexa Simulator tab, leave English selected and type
Alexa, turn on sample switch
into the input box. - If successful, Alexa should respond with
ok
.
If you have an Amazon Echo or other Alexa-enabled device associated to your Amazon developer account, you can give that device the command “Alexa, turn on sample switch” and she should respond with “OK”.
Return to the Instructions