I have been pulling my hair out for a couple of days using several sources to install and configure haaska. I am up to the testing part in lambda and receive the error below.
START RequestId: f4699d74-d2d1-11e8-8a95-63dc489c0c83 Version: $LATEST
401 Client Error: Unauthorized for url: https://morayfield.duckdns.org/api/alexa/smart_home: HTTPError
Traceback (most recent call last):
File "/var/task/haaska.py", line 109, in event_handler
return ha.post('alexa/smart_home', event, wait=True).json()
Assuming that Haaska is attempting to connect to your HA and its authorization has failed…
May depend on the version of Haaska you’re using. A recent change was made
to use Long Lived Token instead of the legacy api_password, but the documentation
has not yet been changed to reflect this.
Ok i have it working!! I went back and reread some more instructions and seen this part.
To use the current version of Login with Amazon, you must go to the [Developer Console](https://developer.amazon.com/)
* Under "Apps & Services", select "Login with Amazon" (not "Security Profiles")
* Click "Create a New Security Profile"
* You can enter anything for the name (which is shown on the login page) and the privacy URL
I was using the security profile instructions from finity…
Well when i say working I mean that the test function works and I can add the skill to the Alexa app. When I ask it to turn on kitchen light it responds with sorry I didnt find a device called kitchen light.
Yes, Mine is working fine. I’m just seeing entries in logbook for the discovery as well as every alexa command. Sorry to hijack the thread, was really just looking for how to exclude the alexa entries from logbook.
FINALLY I have it working!! I was going through some github issues and I found this post below. It matters which region you are from. (full post link https://github.com/mike-grant/haaska/issues/35)
### **[anthonylavado](https://github.com/anthonylavado)** commented [on 2 Aug](https://github.com/mike-grant/haaska/issues/35#issuecomment-409708054) •
edited
[@rchl](https://github.com/rchl) - So I've figured it out. It's not documented *anywhere* by Amazon, but the breakdown is this:
**EU (Ireland)**
* English (UK)
* English (IN)
* German
* French (FR)
**US West (Oregon)**
* Japanese
* English (AU)
**N. Virginia**
* English (US)
* English (CA)
* Rest of World / International Version
hi,
i work on hasska app last month all ok, yesterday i can’y associate the skill with my alexa’s account… lok for the test dont work… ok i try to do all from begin…
but the test dont give ok… it say :
“errorMessage”: “404 Client Error: Not Found for url: https://XXXXXXXXXX:8123/api/alexa/smart_home”,
“errorType”: “HTTPError”,
“stackTrace”: [
[
“/var/task/haaska.py”,
111,
“event_handler”,
“return ha.post(‘alexa/smart_home’, event, wait=True)”
],
[
“/var/task/haaska.py”,
66,
“post”,
“r.raise_for_status()”
],
[
“/var/task/requests/models.py”,
940,
“raise_for_status”,
“raise HTTPError(http_error_msg, response=self)”
]
]
}
please give me some way to chek…