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

Hue app does not work when gradient lightstrip added #1035

Open
ummetcivi opened this issue Aug 4, 2024 · 2 comments
Open

Hue app does not work when gradient lightstrip added #1035

ummetcivi opened this issue Aug 4, 2024 · 2 comments

Comments

@ummetcivi
Copy link

Issue does not already exist?

I have searched and found no existing issue

Select Environment

Docker

Home Assistant related?

No

Description

Hey,

I have Hue Play gradient lightstrip 65 connected to Zigbee2Mqtt. It's recognized as LCX002

image

I added this light to Diyhue as LCX002.

image

But whenever I add this light to Diyhue, Hue App does not work. If I remove it, everything backs to normal.

I attached the logs of Diyhue when Hue app tries to connect.

Errorlog:

2024-08-04 19:19:25,558 - werkzeug - 225 - INFO - 192.168.1.123 - - [04/Aug/2024 19:19:25] "GET /clip/v2/resource HTTP/1.1" 500 -
2024-08-04 19:19:25,964 - werkzeug - 225 - INFO - 192.168.1.67 - - [04/Aug/2024 19:19:25] "GET /lights HTTP/1.1" 200 -
2024-08-04 19:19:26,525 - werkzeug - 225 - INFO - 192.168.1.123 - - [04/Aug/2024 19:19:26] "GET /clip/v2/resource/bridge HTTP/1.1" 200 -
2024-08-04 19:19:26,538 - werkzeug - 225 - INFO - 192.168.1.123 - - [04/Aug/2024 19:19:26] "GET /eventstream/clip/v2 HTTP/1.1" 200 -
[2024-08-04 19:19:26,558] ERROR in app: Exception on /clip/v2/resource [GET]
Traceback (most recent call last):
File "/usr/local/lib/python3.11/dist-packages/flask/app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/flask/app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/flask_restful/init.py", line 467, in wrapper
resp = resource(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/flask/views.py", line 84, in view
return current_app.ensure_sync(self.dispatch_request)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/flask_restful/init.py", line 582, in dispatch_request
resp = meth(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/hue-emulator/flaskUI/v2restapi.py", line 244, in get
data.append(light.getV2Api())
^^^^^^^^^^^^^^^^
File "/opt/hue-emulator/HueObjects/Light.py", line 281, in getV2Api
"points_capable": self.protocol_cfg["points_capable"]}
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 'points_capable'
2024-08-04 19:19:26,560 - werkzeug - 225 - INFO - 192.168.1.123 - - [04/Aug/2024 19:19:26] "GET /clip/v2/resource HTTP/1.1" 500 -
2024-08-04 19:19:26,662 - werkzeug - 225 - INFO - 172.18.0.12 - - [04/Aug/2024 19:19:26] "GET /api/config HTTP/1.0" 200 -

Steps to reproduce

  • Add LCX002 to Zigbee2Mqtt
  • Add LCX002 to Diyhue
  • Open Hue App

Please enter your operating system details here

Hue-Emulator Version: 2024-08-02 20:11:46.000000000 +0300
WebUI Version: 2024-08-02 20:10:26.000000000 +0300
Architecture: x86_64
OS: Linux
Linux version: #1 SMP PREEMPT_DYNAMIC Debian 6.1.99-1 (2024-07-15)
Linux release: 6.1.0-23-amd64
Hardware: %Hardware%

Upload debug tar

This can be downloaded from the webUI.
DiyHue > Bridge > Brdige Control > Download debug > Full debug
Do not upload from Force config dump, Force config dump contains sensitive information
``
[config_debug_2.zip](https://github.com/user-attachments/files/16488242/config_debug_2.zip)


### What DiyHue version(branch) are you using?

master (latest)
@AJ-Reckless
Copy link

AJ-Reckless commented Nov 8, 2024

Just adding that this same issue also happens when adding LCX006 (Hue Play Gradient Lightstrip) via Zigbee2MQTT.

@hendriksen-mark
Copy link
Member

hendriksen-mark commented Nov 8, 2024

Hi, please look at the diyhue docs at https://diyhue.readthedocs.io/en/latest/lights/lightTypes.html

The lcx types in diyhue only work with diyhue lights and not with other lights.

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

No branches or pull requests

3 participants