Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Alexa and Haaska Issue #32

Open
intrawit opened this issue Feb 9, 2017 · 22 comments
Open

Alexa and Haaska Issue #32

intrawit opened this issue Feb 9, 2017 · 22 comments

Comments

@intrawit
Copy link

intrawit commented Feb 9, 2017

i followed exactly what bruhautomation said but i get the error message when i run the test.

{
"errorMessage": "Unable to import module 'lambda_function'"
}

i did upload the haaska file from my pi
clicked save and test and then i get the errormessage.

please help

@intrawit
Copy link
Author

intrawit commented Feb 9, 2017

what must the handler be in aws?

@gabrielbratescu
Copy link

The handler should be: haaska.event_handler

@intrawit
Copy link
Author

intrawit commented Feb 11, 2017 via email

@gabrielbratescu
Copy link

You find the redirect URLs in the Configuration page of the skill.
Something like https://layla.amazon.com/api/..... and https://pitangui.amazon.com/api.....

@intrawit
Copy link
Author

intrawit commented Feb 11, 2017 via email

@gabrielbratescu
Copy link

In what sense are they not working ? You have to copy them to Amazon/your app/web settings/Allowed Return URL

@intrawit
Copy link
Author

intrawit commented Feb 11, 2017 via email

@gabrielbratescu
Copy link

It's on to return null, because in browser you are not sending the required information.
Go to next step. Please be aware that the video from bruhautomation has some missing info, so double check the video with setup info from the first page of this project.

@intrawit
Copy link
Author

intrawit commented Feb 11, 2017 via email

@gabrielbratescu
Copy link

I don not know what you mean by that.
Today I was able to set it up by using bruh's video and the setup info from this project.
It's not a walk in the park, but it works.
If you need some help, send me a private message and maybe we can do somenthing.

@mzjlswatt
Copy link

@gabrielbratescu
Hi,did u successfully use the Alex?i fellowed the video step by step,nothing missed I think,finally my Alex app need account linking,I don't know what's the account!

@intrawit
Copy link
Author

intrawit commented Feb 12, 2017 via email

@gabrielbratescu
Copy link

@mzjlswatt Yes, it works. I can say Alexa turn on /off "device from HA". Except a few failures, see issue #34 .
I don't know for sure what do you mean by account linking. When you start Alexa app you need to login with your amazon account. And then install the skill you just created (haaska). You find it under Skills/Your skills. After that it tells you you need to discover your devices, do so. A list of discovered devices will the appear in Alexa.
Here I had some issues because the I had some devices without friendly_name or haaska_name and Haaska would generate an error on discovery. The way the script is working right now is that an error occures on one device, it stops and no devices are discovered. All or nothing. Please check pull request #29 . I made this modification to my script in order to work.

@intrawit After installing Haaska skill, did Alexa discovered your devices ? Do you see them in Alexa/Smart Home menu ? Please read also the above response.

For the future, please tell me the minute from the bruh's video where are are stuck on. I am not a native english and it's easier for me to understand at what step are you

@iyesildirek
Copy link

I am not able to enable the haaska skill on my amazon app. I run make test on my RPI and I get the following results:

Unknown output type: ENTER
{
"header": {
"payloadVersion": "2",
"namespace": "Alexa.ConnectedHome.System",
"name": "HealthCheckResponse",
"messageId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
},
"payload": {
"isHealthy": true
}
}
true

When I got to my AWS console and test my skill I get the following in my log output:

Execution result: succeeded(logs)

START RequestId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Version: $LATEST
END RequestId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
REPORT RequestId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Duration: 464.19 ms Billed Duration: 500 ms

I can also see a list of all my devices in my AWS Console log output:

The area below shows the result returned by your function execution.
{
"header": {
"payloadVersion": "2",
"namespace": "Alexa.ConnectedHome.Discovery",
"name": "DiscoverAppliancesResponse",
"messageId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx"
},
"payload": {
"discoveredAppliances": [
{
"modelName": "Unknown",
"actions": [
"turnOn",
"turnOff",
"incrementPercentage",
"decrementPercentage",
"setPercentage"
],
"friendlyDescription": "Home Assistant Light",
"version": "Unknown",
"additionalApplianceDetails": {
"entity_id": "light.hue_white_lamp_1",
"dimmable": true
},
"manufacturerName": "Unknown",
"friendlyName": "Hue white lamp 1",
"applianceId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"isReachable": true
},

I have been stuck trying to figure out what is wrong with my configuration and why am I getting an "account linkage required" message below the button to enable my Skill.

Any ideas what I am doing wrong?

@trisk
Copy link
Contributor

trisk commented Apr 19, 2017

@iyesildirek "Account linkage required" is normal for this skill, which requires OAuth (Login with Amazon). When you click "Enable", you will be sent to the Login with Amazon page for the security profile you created.

@mohaggag
Copy link

Do i need a real echo to run this skill . I mean the discovery command is only available on a real amazon echo but i am using The AVS on a raspberry pi so I don't know if this skill will work or not

@trisk
Copy link
Contributor

trisk commented May 7, 2017

@mohaggag I believe it will work if you can access the Smart Home web interface for Alexa while signed into your Amazon account, http://alexa.amazon.com/spa/index.html#smart-home

@mohaggag
Copy link

mohaggag commented May 9, 2017

@trisk no not working

@trisk
Copy link
Contributor

trisk commented May 10, 2017

@mohaggag can you be more specific? Does the Smart Home page list the skill you created and the "Discover Devices? link?

@mohaggag
Copy link

@trisk yes

@redstar2k1
Copy link

@mohaggag so what is "not working"? No devices shows up in the "Smart Home" page after you try to "Discover Devices"? If so, what country/region is your Amazon Developer account set (https://developer.amazon.com/settings/profile/detail.html) and on what region (North America/Europe) is your Lambda skill set?

@shadow05139
Copy link

replace whatever is in the handler box with:

haaska.event_handler

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants