I creating a smart home alexa skill, I study a lot of things and I need to use directives but I don't know how do I get the device_id to test in my devices, I use the example "https://developer.amazon.com/en-US/docs/alexa/smarthome/steps-to-build-a-smart-home-skill.html" from this page. I don't understand how I get the devices id's. Anybory know if I'm doing this correctly?
Asked
Active
Viewed 316 times
1 Answers
0
Hmmm, the only place I see "device id" on the page you provided is in the comment. Honestly I'm not sure what it is. Maybe it's a documentation bug.
Normally it works like this:
- Discovery contains endpoint id (one or more)
- When Alexa sends directive for the device, it includes the endpoint id in the directive. Should be
directive.endpoint.endpointId
.
You can extra data in the cookie
. Data sent in cookie in discovery is reflected in every directive, when your skill is called.

Tarlog
- 10,024
- 2
- 43
- 67