alexa_media_player: AQM sensors become unavailable after first scan interval due to `Login error detected; not contacting API`

IMPORTANT: Please search the issues, including closed issues, and the FAQ before opening a new issue. The template is mandatory; failure to use it will result in issue closure.

Describe the bug

Hi, I had my Amazon Smart Air Quality Monitor showing up in HA but now after latest update (HA to 2024.8.2 and latest “ALexa Media Player” I do not have it anymore…

To Reproduce

Expected behavior

Screenshots

System details

  • Home-assistant (version): 2024.8.2
  • alexa_media (version from const.py or HA startup): 4.12.7
  • alexapy (version from pip show alexapy or HA startup):
  • Amazon 2FA is enabled (y/n). <!—We will not debug login issues if unanswered—>:

Logs Please provide logs.

Additional context

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 56

Most upvoted comments

SOLVED! Did not checked “Include devices connected via Echo” in the configuration… Now sensor is visible again… Thanks!

Is this issue clear to the developers?

Alexa Media Player no longer has an active developer fixing issues! The original developer’s only involvement now with AMP is merging pull requests others submit. So, AMP is effectively on Life Support. Several contributors (myself being one) are doing our best with what we know.

what do cookies have to do with this problem?

Everything!

In the meantime I’m using a turnaround with this automation that reload the integration when the sensor become unknown:

alias: reload_when_unknown
description: ""
trigger:
  - platform: state
    entity_id:
      - sensor.name_of_the_sensor
    to: unknown
condition: []
action:
  - action: homeassistant.reload_config_entry
    metadata: {}
    data: {}
    target:
      device_id: .................
mode: single

Terrible, today same issue for me. Couple hours and Unknown. I’ve updated CORE to 2024.8.2 hoping to fix it but the same again. It’s terrible because I have a lot of sensors from Alexa… Maybe we go to change to a older version of AMP because I have one month ago this wasn’t a problems before… Anybody knows when appeared this issue?

wait for the next month. i think that will be solved. there are a lot of people with this problem.

Terrible, today same issue for me. Couple hours and Unknown. I’ve updated CORE to 2024.8.2 hoping to fix it but the same again. It’s terrible because I have a lot of sensors from Alexa… Maybe we go to change to a older version of AMP because I have one month ago this wasn’t a problems before… Anybody knows when appeared this issue?

Also, please verify your version is 4.12.7…

image

First, remove the existing config entry in UI. Then verify that config entry is gone from core.config_entries…

Same problem for me, after some time the amazon air quality sensor is disconnected. I set up an automation to reload the integration every hour but this a temporary solution that do not solve the problem.

@alexs197912 Is that sensor just completely disappearing from HA or is it unavailable / unknown?

I do not have any AQM sensors, just one echo with a temperature sensor that is handled the same way by AMP as AQM and it does not become unavailable for me. Perhaps you could disable your existing automation to reload AMP and create an automation to alert you when the AQM sensor has become unavailable or unknown so you can get the alexa debug logs at that point in time?

description: ""
mode: single
trigger:
  - platform: state
    entity_id:
      - sensor.daniel_s_echo_temperature
    to:
      - unavailable
      - unknkown
condition: []
action: []

Thank you Daniel for the suggestion. I will update you.