Alexa integration with HA (AWS Lambda)

Hey guys!

I’m having trouble integrating my AWS with my Home Assistant that is in a VirtualBox on Linux. It is already properly exposed and I can access it from outside my network.

I don’t use DuckDNS. I do the process via Cloudfare and, at first, everything is ok. This is the payload I get when I try to test the connection between Lambda and HA:

{
"event": {
"payload": {
“type”: “INVALID_AUTHORIZATION_CREDENTIAL”,
“message”: “401: Unauthorized”
}
}
}

Also, the Long-Lived Access Token is configured and in use by AWS Lambda function.

Any idea what it could be? Has anyone been through this situation?

Thanks

2 Likes

Did you solve the problem. I stuck at the same point.
AWS Test results in the error:
{
“event”: {
“payload”: {
“type”: “INVALID_AUTHORIZATION_CREDENTIAL”,
“message”: “401: Unauthorized”
}
}
}

HA notifies me with the message:
Login attempt failed
Login attempt or request with invalid authentication from ec2-54-74-7-242.eu-west-1.compute.amazonaws.com (54.74.7.242). See the log for details.

The logbook-entry is:
Logger: homeassistant.components.http.ban
Source: components/http/ban.py:82
Integration: HTTP (documentation, issues)
First occurred: 17:12:49 (1 occurrences)
Last logged: 17:12:49
Login attempt or request with invalid authentication from ec2-54-74-7-242.eu-west-1.compute.amazonaws.com (54.74.7.242). Requested URL: ‘/api/alexa/smart_home’. (python-urllib3/1.26.9)

Anyone here with an idea?
Thanks in advance!

2 Likes