I need to make a Custom Skill for the Alexa Skills Kit, which should be one echo device in every room. I need to get the device_id for every echo device. I heard this isn't possible, but maybe it changed, or if not is there any other way around.
Asked
Active
Viewed 1.0k times
7

Suneet Patil
- 608
- 9
- 21

rpajaziti
- 171
- 1
- 5
- 13
-
https://github.com/alexa/skill-sample-node-device-address-api – Naga Harish M Apr 05 '17 at 15:35
-
I am facing a similar problem. Could you finally solve it? Is it possible to get a unique deviceId nowadays? Thanks. – oz19 Nov 13 '19 at 09:37
2 Answers
8
You can do it now! context:System:device:deviceId
As far as I can tell it only works on real devices. So if you are testing in the developer's Skills Manager you don't get the field, but when used with a real Alexa device, it works.

Lukas
- 434
- 3
- 14

Nick Stefanisko
- 96
- 1
- 1
-
If it is real what you're saying, it seems like a great opportunity. Thanks a lot for the respond – rpajaziti Apr 05 '17 at 18:52
-
3Please keep in mind that 'context:System:device:deviceId' changes when a user turns off and re-enable Alexa skill. – MikePtr Aug 09 '17 at 10:22
-
1It looks like 'deviceId' is specific to each skill, i.e. different skills see different 'deviceId's. I tried to assign my devices to certain rooms in a database with one skill and then get this information in another skill--and failed. The idea was to put each device in each room and have different responses depending on which room they are in. Is it at all possible to get a permanent unique ID of the Echo device (like MAC address)? – Pavel Anni Oct 03 '17 at 01:43
-
Discovered that too. What I did was to create an auto registration, so that the first time an ID is encountered it gets put into my DB as unauthorized. And then I validate by hand. I supposed you could voice validate too with a conversation. A:"New device detected, voice validate now" H:"Picard 1 alpha 0 0 0 1" A:"Voice validation accepted, where is this device?" H:"Billiard Room" A:"OK" – Nick Stefanisko Oct 04 '17 at 21:43
-
1@PavelAnni You probably have already seen it, but check out Alexa for Business if not. They have a room API. – dillon.harless Mar 26 '19 at 18:50