question

sparkgene avatar image
sparkgene asked

discover device from AVS running on Raspberry Pi

Hi I setup a Raspberry Pi with running AVS(pi-a). https://github.com/amzn/alexa-avs-raspberry-pi/blob/master/README.md It works perfectly and Alexa answer the weather. Next I setup WeMo devices which is running on another Raspberry Pi(pi-b). http://www.instructables.com/id/Hacking-the-Amazon-Echo/ When I use Amazon Echo to discover pi-b, it works good. But when I try to discover pi-b from pi-a, Alexa say no device discover. Is it possible to use WeMo device from AVS?
alexa voice service
10 |5000 characters needed characters left characters exceeded

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

swasey@amazon avatar image
swasey@amazon answered
AVS does not support device discovery yet. What you can do is use your Amazon Echo to discover pi-b, register it as a connected home device, and then you can say to either your Echo OR pi-a (your AVS device) "Alexa, turn on my device", for example. So you can't use AVS to discover the device, but you can use AVS to control a device. This only applies to devices that use a third-party cloud to control itself. This flow usually goes like: "Alexa, turn on my light", then that request goes to AVS, which then makes a request to the Device Manufacturer's cloud, which talks to the device to turn on the light. Now, looking at the instructable you posted and the code it links to it sounds like it uses local network commands, rather than a third-party cloud for control. That works fine on the Echo (as you've seen), as the Echo acts as a connected home Hub to send out the appropriate commands to pi-b. However, AVS does not currently have the support to act as a Hub, so it can't accomplish these tasks. You'll only be able to use your Echo to accomplish this. Depending on what you're trying to do, you might want to look at the Alexa Smart Home Skill API: https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/content/smart-home for developing Skills that talk to connected devices. For help with using that you can ask questions on the Smart Home forum: http://forums.developer.amazon.com/forums/category.jspa?categoryID=71
10 |5000 characters needed characters left characters exceeded

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

sparkgene avatar image
sparkgene answered
Great, thanks for the reply!
10 |5000 characters needed characters left characters exceeded

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