core icon indicating copy to clipboard operation
core copied to clipboard

Amazon Devices loading errror: `KeyError: 'LambdaBridge_AAA/SonarCloudService`

Open Anto79-ops opened this issue 6 months ago • 7 comments

The problem

Hello

Upon updating to 2025.6.1, my Alexa Devices integration does not load with this error in the logs:

Logger: homeassistant.components.alexa_devices
Source: helpers/update_coordinator.py:382
integration: Alexa Devices (documentation, issues)
First occurred: 5:02:40 PM (37 occurrences)
Last logged: 5:31:32 PM

Unexpected error fetching [email protected] data
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 382, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/alexa_devices/coordinator.py", line 54, in _async_update_data
    return await self.api.get_devices_data()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aioamazondevices/api.py", line 700, in get_devices_data
    entity_ids_list = await self._get_devices_ids()
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aioamazondevices/api.py", line 518, in _get_devices_ids
    lambda_bridge = amazon_bridge["LambdaBridge_AAA/SonarCloudService"]
                    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'LambdaBridge_AAA/SonarCloudService'

Thanks

What version of Home Assistant Core has the issue?

2025.6.1

What was the last working version of Home Assistant Core?

2025.6.0

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Alexa Devices

Link to integration documentation on our website

https://www.home-assistant.io/integrations/alexa_devices/

Diagnostics information

No response

Example YAML snippet


Anything in the logs that might be useful for us?


Additional information

No response

Anto79-ops avatar Jun 13 '25 21:06 Anto79-ops

Hey there @chemelli74, mind taking a look at this issue as it has been labeled with an integration (alexa_devices) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of alexa_devices can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign alexa_devices Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


alexa_devices documentation alexa_devices source (message by IssueLinks)

home-assistant[bot] avatar Jun 13 '25 21:06 home-assistant[bot]

Thx for reporting.

Which devices do you have on your Amazon account ?

chemelli74 avatar Jun 13 '25 21:06 chemelli74

For sure anytime!

Just the one Amazon Fire tab HD10 tablet.

FYI.

https://github.com/chemelli74/aioamazondevices/issues/210

Anto79-ops avatar Jun 13 '25 21:06 Anto79-ops

Confirm. 2025.6.0 ok. 2025.6.1 same error. Echo plus, show5, show8, dot, flex and input.

ninoger avatar Jun 13 '25 22:06 ninoger

Thx for the info; will provide a fix hopefully on Sunday evening (not home before).

Unfortunately I don't own all devices so developing and testing is a bit hard some times.

chemelli74 avatar Jun 14 '25 08:06 chemelli74

Please test the library via command line: https://github.com/chemelli74/aioamazondevices?tab=readme-ov-file#test

It will create a out folder with some debugging files; for this issue I need you to share "api-phoenix.json". There should not be sensitive data inside, but if you prefer you can join HomeAssistant on Discord and then contact me: chemelli74#2180 So you can share the file privately.

chemelli74 avatar Jun 14 '25 09:06 chemelli74

I have the same problem after updating HA to 2025.6.1!

Failed setup, will retry: 'LambdaBridge_AAA/SonarCloudService'

The devices are Xiaomi Smart Speaker Lite, I don't know if that could be the problem, but with HA version 2025.6.0 it works!

cpmarexel2f avatar Jun 15 '25 20:06 cpmarexel2f

hi @chemelli74 im just travelling now and not easy to do terminal commands via my cell phone. I can try later.

Anto79-ops avatar Jun 17 '25 15:06 Anto79-ops