-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discovery works, status works, but setting the temp doesnt? #29
Comments
Thanks for this, @eelstretching! I upgraded the underlying Try adding a new zip of the src folder contents to your Lambda function. Let me know if the issue isn't resolved? |
Thanks for the update, but unfortunately, it looks like it didn't work (Dang! :-) I tried both pulling the changes from the git repo on the master branch and from the zip file. I then deleted the thermostat device from the Alexa app and disabled the Skill and then re-discovered it as described on the update wiki page. As I'm still doing all of this with only a vague understanding of the pieces (Javascript only runs in browsers, right? :-), I modified the log message for the Alexa event to make sure that I was running the new code that I'd uploaded. It looks like the new code is running in the Lambda and it gets a TypeError when I try to change the temp from the Alexa app on my phone. At best I get "Your device doesn't seem to support that" from my Alexa hardware and at worst the Alexa hardware claims to not know about the device. Their device naming and how you use it in the sentences seems kind of bad? Maybe it's just me. I haven't figured out a non-awkward name for the thermostat yet. What else can I do to help debug this? Is it possible to get a full stack trace out of the node.js stack so we can see where the TypeError is coming from? Edit to add: wrapping the exports.handler in a try/catch didn't help. |
Thanks for this repo, Kate! Getting Alexa to set the temp for me is my fun Christmas week activity.
I followed the instructions on the wiki and wung (winged?) it a little bit when the AWS setup seemed different than what was in the wiki (can one do a PR for a Wiki in github?).
I can add the skill to my Alexa from the dev skills and the device shows the correct temp from the thermostat when I use the Alexa app on my phone (and even tracks changes that I make on the thermostat itself!), but when I use Alexa to try to set the temperature, it fails. The Alexa hardware just tells me that it can't do that and the Alexa app on my phone puts up a "Device is unresponsive" message.
I set DEBUG to 1 in the env of the Lambda function, and looking through the CloudWatch logs I see the following:
which looks like the request to set the temp to 70 made it through to the Lambda function, but then the next part of this request is the following:
which looks like some Javascript tried to look up a property called value in an undefined value. I don't have a whole lot of Javascript experience, but poking around in the main index.js didn't uncover anything obvious, so I'm thinking it might be in the icomfort js?
Any suggestions would be greatly appreciated!
The text was updated successfully, but these errors were encountered: