aws-lambdaalexa-skills-kitevent-gateway

Which event endpoint should each device send a StateReport/ChangeReport to?


I built an Alexa skill and it worked on multiple regions with our light devices.

As we know, while the state of a device changes, our server should send a ChangeReport event to Alexa, and there are 3 endpoints for each region:

I'm confused cause I don't know each device bought by which region's user.


Solution

  • We can fix it by recording customers's region when they're discovering devices.

    As we know, each region linked to a lambda function, do as these two steps: