Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alexa connected lights no longer work #2185

Closed
lsellens opened this issue Feb 12, 2024 · 7 comments
Closed

alexa connected lights no longer work #2185

lsellens opened this issue Feb 12, 2024 · 7 comments

Comments

@lsellens
Copy link
Contributor

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

After updating to v4.9.1 my son's echo glow is no longer available in home assistant. Says the entity is no longer provided. I tried removing and reinstalling the integration to no luck. Rolled back to v4.9.0 and his light was back.

Screenshot at 2024-02-12 07-44-31

System details

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

Logs

I can provide a full log if needed but I think this is the only relevant error.

Logger: homeassistant.components.light
Source: helpers/entity_platform.py:344
Integration: Light (documentation, issues)
First occurred: 7:42:17 AM (1 occurrences)
Last logged: 7:42:17 AM

Error while setting up alexa_media platform for light
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 344, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/alexa_media/light.py", line 98, in async_setup_entry
    return await async_setup_platform(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/alexa_media/light.py", line 78, in async_setup_platform
    light = AlexaLight(coordinator, account_dict["login_obj"], light_entity)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/alexa_media/light.py", line 135, in __init__
    self._attr_supported_color_modes = color_modes(details)
                                       ^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/alexa_media/light.py", line 118, in color_modes
    return [ColorMode.HS_COLOR]
            ^^^^^^^^^^^^^^^^^^
AttributeError: type object 'ColorMode' has no attribute 'HS_COLOR'
@lsellens
Copy link
Contributor Author

I think ColorMode.HS_COLOR should be ColorMode.HS
https://github.com/home-assistant/core/blob/dev/homeassistant/components/light/__init__.py
I'll test and send a PR if it fixes it

@martymart8864
Copy link

I have an issue as well. The entity linked to the smart bulb Evolux controled via the Alexa Media Player integration is no longer there after re-installing Alexa Media Player.

@Scope666
Copy link

Same here, noticed all lights were unavailable. Deleted and re-added integration, made sure 'Include devices connected via Echo' was checked ... not picking up any light entities.

@lsellens
Copy link
Contributor Author

@martymart8864 can you test my PR #2186
If youre running hassos just open terminal and run these commands

cd config/custom_components/alexa_media/
mv light.py light.py.bak
wget https://raw.githubusercontent.com/lsellens/alexa_media_player/lights/custom_components/alexa_media/light.py

then just restart home assistant and test

@Scope666
Copy link

wget https://raw.githubusercontent.com/lsellens/alexa_media_player/lights/custom_components/alexa_media/light.py

That fixed it ... thanks!!! Guessing a breaking change in 2024.2 ?

@martymart8864
Copy link

@martymart8864 can you test my PR #2186 If youre running hassos just open terminal and run these commands

cd config/custom_components/alexa_media/
mv light.py light.py.bak
wget https://raw.githubusercontent.com/lsellens/alexa_media_player/lights/custom_components/alexa_media/light.py

then just restart home assistant and test

Worked! Thanks!!

@lsellens
Copy link
Contributor Author

wget https://raw.githubusercontent.com/lsellens/alexa_media_player/lights/custom_components/alexa_media/light.py

That fixed it ... thanks!!! Guessing a breaking change in 2024.2 ?

not a breaking change it was just referenced by the wrong name in #2183

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants