Code Monkey home page Code Monkey logo

Comments (14)

briankel avatar briankel commented on May 27, 2024 1

@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:

12-11-2017 4-55-44 pm

from alexa-smarthome.

tkamaal avatar tkamaal commented on May 27, 2024 1

@briankel Yes, it is clear now and will be helpful for users.
No need to be sorry @briankel !!!

from alexa-smarthome.

briankel avatar briankel commented on May 27, 2024

@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.

tkamaal avatar tkamaal commented on May 27, 2024

@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.

lambda metrics

from alexa-smarthome.

briankel avatar briankel commented on May 27, 2024

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.

tkamaal avatar tkamaal commented on May 27, 2024

@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.

cloudwatch logs

from alexa-smarthome.

tkamaal avatar tkamaal commented on May 27, 2024

@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.

error message

from alexa-smarthome.

briankel avatar briankel commented on May 27, 2024

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.

tkamaal avatar tkamaal commented on May 27, 2024

@briankel Sure. Will check everything again. Thanks for help.

from alexa-smarthome.

tkamaal avatar tkamaal commented on May 27, 2024

@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.

briankel avatar briankel commented on May 27, 2024

@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.

tkamaal avatar tkamaal commented on May 27, 2024

@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.

tkamaal avatar tkamaal commented on May 27, 2024

@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.

briankel avatar briankel commented on May 27, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.