Comments (14)
@tkamaal I'm perplexed! One more idea, do you have lambda.py in the root of your environment (as opposed to in a subfolder)? Here's what my screen looks like:
from alexa-smarthome.
@briankel Yes, it is clear now and will be helpful for users.
No need to be sorry @briankel !!!
from alexa-smarthome.
@tkamaal did you perform a device discovery? When you look at the Smart Home section of your Alexa app (or alexa.amazon.com) do you see any devices? If not, do you see any errors in your Lambda CloudWatch logs when you run a discovery?
from alexa-smarthome.
@briankel I don't see any devices on alexa.amazon.com. As far errors are concerned. Please see below if the image helps you. This is a snap shot of Monitoring tab on Lambda Console. I don't see any errors in cloudwatch logs I believe.
from alexa-smarthome.
Thanks, the graphs seem to confirm that your skill is getting invoked which is good. You'll need to dig into the actual CloudWatch logs though (not just the graphs) to see what errors you might be getting when the Discovery request is received. Click on "Jump to logs" and dig through those logs. Unfortunately CloudWatch can be time consuming to browse through, especially if you have never done this before, so be prepared to spend a bit of time here exploring and looking for clues. :-)
from alexa-smarthome.
@briankel Do I need to add CloudWatch Logs Trigger ? I get this following error. Please provide some information about logs or some reference link so it would helpful to debug the situation.
from alexa-smarthome.
@briankel I think AWS Lambda fails to import module 'Lambda'. Please see the image for error message. This is error I get when I click Discover in Smart Home -> Devices.
from alexa-smarthome.
That's the info we needed. This most probably indicates you have named your file or function wrong. If your'e following the 15 minute smart home sample please ensure you have named everything correctly: https://github.com/alexa/alexa-smarthome/wiki/Build-a-Working-Smart-Home-Skill-in-15-Minutes
See Handler = lambda.lambda_handler
from alexa-smarthome.
@briankel Sure. Will check everything again. Thanks for help.
from alexa-smarthome.
@briankel I did a thorough check of the naming's provided in AWS Lambda function setup. I didn't see any wrong name provisions.
from alexa-smarthome.
@tkamaal the error messages for this type of error are confusing, but I'm relatively confident that you have a naming problem here. Are you following the 15 minute Smart Home sample? Do you have a file named lambda.py in the .zip you uploaded? What does your Handler property say in your Lambda configuration?
from alexa-smarthome.
@briankel Yes, I'm following 15 minutes Smart Home Sample wiki page. Their is lambda.py file in the uploaded zip folder.
Handler property on lambda configuration page says lambda.lambda_handler as mentioned in the wiki page.
According to me, I believe I have no naming errors. But if you can be more specific about which file names are you referring too then I can verify again.
from alexa-smarthome.
@briankel Thank you so much. That fixed the issue. As a suggestion, I think it's better to update your wiki page cos it took me 2 days to get it working instead of 15 mins, although I followed every step carefully provided on your documentation.
from alexa-smarthome.
@tkamaal good point, I've added a clarifying note to https://github.com/alexa/alexa-smarthome/wiki/Build-a-Working-Smart-Home-Skill-in-15-Minutes. Let me know if you think it can be more clear.
I'm glad you were able to get this working and I'm sorry that the steps weren't clear to begin with!
I'm going to close this issue but please open a new one if you have more questions.
from alexa-smarthome.
Related Issues (20)
- Adding my own development device esp8266 in alexa HOT 2
- About RTCSessionController API
- Is this repo maintained ?? HOT 16
- Alexa HOT 1
- Unable to get Access token using authorization code for a skill in lambda function HOT 3
- when testing smart home ample device it shows error HOT 2
- Validation schema fails to parse in Node.js HOT 7
- Add validation for Camera PTZ controllers HOT 1
- Getting Domain not whitelisted for using LWA javaScript SDK HOT 1
- Capability Evaluations & Test plans HOT 1
- "errorMessage": "2021-05-11T08:48:54.169Z d01782c6-b615-4b06-96b2-ac313bae6d72 Task timed out after 3.06 seconds"
- Adding Alexa.Cooking interfaces into the Validation Schemas? HOT 1
- Documentation misses an important gotcha HOT 1
- How to get utterance activity keys HOT 3
- Schema validation for endpointId using (.) periods HOT 1
- Alexa.PercentageController empty value in payload HOT 1
- Fixes for schema broken by commit 276150255d1843021dcd8b47809c0f79a6660517 HOT 4
- Hm, I'm having trouble reaching null. [Alexa] PowerController TurnOff 0E:38:82:9E:54:6B undefined null HOT 3
- How to report bugs? HOT 1
- Can Alexa Smart Home Lambda skill response with custom so far? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alexa-smarthome.