alexa-samples / Alexa-Gadgets-Raspberry-Pi-Samples

This repository enables you to prototype an Alexa Gadget using Raspberry Pi. It includes Python-based software, sample projects, and step-by-step instructional guides that walk you through how to use key features of the Alexa Gadgets Toolkit to create new, engaging customer interactions with gadget devices.
Other
91 stars 29 forks source link

Conflict between Alexa smart home skill and Custom gadget skill #5

Closed rajdpandey closed 4 years ago

rajdpandey commented 4 years ago

Hi,

I have created Alexa on Raspberry Pi 4 using AVS device SDK and created a gadget on another raspberry pi which has IR transmitter connected. I have created this gadget as an accessory so that if some homes don't have smart devices like TV or AC even though we can control them using IR.

So when I say "Alexa, turn on the tv," it says "No smart home devices connected to your account found"

So what is the solution for this?

vartakr commented 4 years ago

Hi rajdpandey,

To use Gadgets you will need to setup a custom skill and use the skill's invocation name to invoke the skill (more information). You will not be able to invoke custom skills designed for Gadgets using generic smart home invocation utterances like "Alexa, turn on the tv".

Instead, you can say "Alexa, ask to turn on the tv" which should then invoke a particular skill intent; which would be then handled by the skill lambda code by sending a custom directive to the gadget; and finally the gadget can use IR to turn on the TV upon receiving the custom directive. To learn more about sending Custom directives to gadgets, you can read the technical documentation and refer the Color Cycler example.

Also, you mentioned that you are using AVS Device SDK on RPi 4. Please note that Gadgets are currently only supported on Echo Family Devices.

rajdpandey commented 4 years ago

Hi @vartakr ,

OK, got your point man.thanks.

Vaishnavikumara commented 4 years ago

Hi @vartakr , as you mentioned color cycler example , I am facing the following issue while trying to deploy the code.

ERROR: Package 'ask-sdk' requires a different Python: 3.5.3 not in '>2.6, !, !=3.1., !=3.2., !=3.3., !=3.4., !=3.5.'

Please help me out.I have python 3.6.8 installed on my pi.