Alexa Media Player - HA Login failing (127.0.0.1 ban)

Hi everyone,

I have a problems using the Alexa Media Player integration.

Everything used to work fine, but since a month (or two?) my localhost 127.0.0.1 gets reguarly banned.

I searched the logs and found this:

“Login attempt or request with invalid authentication from localhost (127.0.0.1). Requested URL: ‘/api/states/input_text.alexa_actionable_notification’. (None)”

So it gets triggered by the “Actionable notification - Automations” and I can trigger the fault on my own.
So far so good.

As the Alexa media player integration seems to be the problem, I reconfigured everything.

  • Reinstalling the Alexa Media Player integration, Re-Authentication included
  • Followed this guide (again): Amazon Alexa Smart Home Skill - Home Assistant → did this 2 years ago and everything worked…but I gave it a try with no success

Using my echo to switch on/off smart home stuff still works with Nabu Casa Cloud. But all Actionable notifications are not working any more.

ip_bans.yaml:
127.0.0.1:
banned_at: ‘2023-12-15T16:19:47.414127+00:00’

HTTP-Config:
http:
use_x_forwarded_for: false ← changing this to true does not change anything
trusted_proxies:
- 172.30.33.0/24
- 127.0.0.1
ip_ban_enabled: true
login_attempts_threshold: 4

homeassistant:
auth_providers:
- type: homeassistant
- type: trusted_networks ← adding these lines from here did not help…
trusted_networks:
- 192.168.0.0/24
- 192.168.10.0/24

I am grateful for any help.

Thanks,
Kombi

1 Like

Ok, I think I found the solution :slight_smile:

I had to re-link my Alexa-Skill with Homeassistant. Not the one for Nabu Casa. I had to re-link the Dev Skill I created following this instructions in the Alexa app(!):

Next, you will use the Alexa Mobile App or the Alexa web-based app to link your account.

  • In the Alexa app, navigate to MoreSkills & GamesYour SkillsDev
  • Or In the Alexa web app, navigate to SkillsYour Skills in the top right → Dev Skill
  • Click the Smart Home skill you just created.
  • Click Enable to use.
  • A new window will open to direct you to your Home Assistant’s login screen.
  • After you successfully login, you will be redirected back to the Alexa app.

Maybe it helps someone.

Best regards,
Kombi