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

Ambilight television not connecting with bridge #593

Open
chrisism opened this issue Aug 23, 2024 · 0 comments
Open

Ambilight television not connecting with bridge #593

chrisism opened this issue Aug 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@chrisism
Copy link

Description

When connecting the tv to the emulated hue bridge, it finds the bridge directly. But after ending the connection it breaks right away and the connection is lost. On the server side (docker) it throws a python exception as provided below.

Expected behavior

To finish ambilight connection succesfull.

Reproduction steps

Run emulated hue. Start TV and go to settings, philips + hue and connect to the bridge.

Relevant log output

2024-08-23 12:16:18,862 DEBUG emulated_hue.api -- [192.*.*.*] GET /api/cA6dEBe1F78a8cfc5dB47C28ac2***********
2024-08-23 12:16:18,868 ERROR aiohttp.server -- Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
    resp = await self._request_handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 499, in _handle
    resp = await handler(request)
  File "/app/emulated_hue/api.py", line 92, in wrapped_func
    return await func(cls, request)
  File "/app/emulated_hue/api.py", line 498, in get_full_state
    "lights": await self.__async_get_all_lights(),
  File "/app/emulated_hue/api.py", line 960, in __async_get_all_lights
    result[light_id] = await self.__async_entity_to_hue(
  File "/app/emulated_hue/api.py", line 837, in __async_entity_to_hue
    const.HUE_ATTR_HUE: entity_attr.get(
TypeError: 'NoneType' object is not subscriptable

Operating system

Other Linux

Install method

Docker Compose

Version

latest

Dev Version

No response

Any other information that may be helpful

No response

@chrisism chrisism added the bug Something isn't working label Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant