Stack Overflow: A New Way for Developers to Get Support for Alexa

Now you can find Alexa-specific tags and topics in the AWS Collective on Stack Overflow. Ask questions and get help from badged experts and the Alexa developer community!


curiousfly avatar image
curiousfly asked

How can Integrate Echo with my home automation hub connected to cloud.?

I am trying to make my home automation hub to work with Alexa.Our architecture is as follows.We have many users who have a central hub in their home which is always connected to the cloud server.The hub is also connected to various smart switch nodes in each room. Each hub has a unique id.Each user has a unique username and password.Each hub is mapped to one user. A user can use his unique credentials to log in to a mobile app and control appliances remotely.

My request flow is as follows. A sample request to 'turn on' a device from the mobile app is handed to cloud server via API.The server identifies the user and forwards the request to the hub mapped with the requesting user. The hub handles the request and forwards it to the corresponding smart switch node.The smart switch node turns on the requested device and acknowledges the hub.Hub acknowledges the server that device has turned on.

From my little research, I found that Alexa smart home skill is apt for my case.But I couldn't find any tutorials that let my users login into my system from Alexa companion app and authenticate Alexa to make requests to my server on behalf of user's voice commands. Users voice command can be anything like 'turn off kitchen floorlight', 'what is my bedroom fan speed.?', 'turn on scene movietime' , 'is living room Air Conditoner on.?' , 'dim bedroom lights by 50%' etc.

alexa skills kitalexa voice servicealexa smart homeaccount linkingcompanion app
10 |5000

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

1 Answer

Jenn@amazon avatar image
Jenn@amazon answered

It sounds very similar to the Samsung Smarthings or Universal Devices ISY controllers.

Here's the docs that outline how to Authenticate an Alexa User to a User in Your System Using Account Linking

10 |5000

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