question

DTdad avatar image
DTdad asked

How to differentiate echo device from different cusstomers

We have connected device that we want to integrate with echo, the idea is user to say "turn on" command to echo, and echo plus IFTTT will have to turn on user's device. However, cloud side can detect "turn on" command but has no idea which user or echo send the command, therefore IFTTT has no idea which users device should receive remote turn on command. Anyway to differentiate or tie each echo with a user's account? Thanks
alexa skills kitdebugging
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Mark E. Fogle avatar image
Mark E. Fogle answered
I think this is what the "userId" in the Request Body is intended to address ( https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/alexa-skills-kit-interface-reference). It doesn't help much when the same user has multiple Echos associated with their account, but it should allow you to differentiate between completely different users.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Nick Gardner avatar image
Nick Gardner answered
Hi, You mention you're using IFTTT, but are you using that soley or in conjunction with the Alexa Skills Kit. If you are just using IFTTT, I don't believe there's any way to get it, but for the Alexa Skills Kit, the userId field as Mark mentioned will do the job, it will be unique for each Amazon.com account registered Echo. Thanks, Nick
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.