This is my first smart home skill, and this could be a dummies question
I am trying to create a smart home skill to integrate with doorbell using the following interface.
I have done the account linking with manufacture's cloud with Alexa. Also, done responding discover directive and state report directive in Lambda.
However, still confusing part is how to write a handler in Alexa Skill lambda to listen to doorbell events and state change events?
Is there any endpoint available to listen to device events?
Anyone could advise me how to achieve this?
I got the point of sending events to the event Gateway described here.
However, as per my understanding, this is something we manually send to the Alexa cloud to announce the event to Alexa enabled device. But, it won't happen whenever there is a door press event or motion detection happen in manufacturer cloud or doorbell physical device.
My understanding is Alexa cloud integrates with the manufacturer cloud to get the information which we need as we already did the account linking. I assume Alexa cloud knows how to communicates with manufacturers cloud, and we only have to focus on handling Lambda to announce to Alexa enabled device.