diyhue / diyHue

Main diyHue software repo
https://diyhue.org/
Other
1.52k stars 274 forks source link

Entertainment segment in Hue app stopped working #935

Closed Justdigit closed 7 months ago

Justdigit commented 8 months ago

Issue does not already exist?

I have searched and found no existing issue

Select Environment

Docker

Home Assistant related?

No

Description

Since the new API and new versions its not possible to create an entertainment room for a PC monitor.

The lights that have been aded are not visiable when you are going to create a room.

Errorlog:

Please paste the full error log here

Steps to reproduce

Go in the Hue app and try to create an entertainment room.

Please enter your operating system details here

Docker Android Hue app

What DiyHue version(branch) are you using?

master (latest)

EDIT: The enttertainment mode works with on Older Android App 4.36 for instance

igorcv88 commented 7 months ago

I have that same issue… it’s been happening for almost a month now

mariusmotea commented 7 months ago

This is an api change that need to be investigated. Do you have any output from a gradient request using last Hue app version?

igorcv88 commented 7 months ago

Ok sorry for the delay, here’s my output when I have my WS2812B light set as a Gradient Lightstrip in DiyHue and I try to setup the Hue App:

2023-12-03 09:43:36,778 - werkzeug - INFO - 192.168.1.13 - - [03/Dec/2023 09:43:36] "GET /clip/v2/resource/bridge HTTP/1.1" 200 -
2023-12-03 09:43:36,795 - werkzeug - INFO - 192.168.1.13 - - [03/Dec/2023 09:43:36] "GET /eventstream/clip/v2 HTTP/1.1" 200 -
[2023-12-03 09:43:36,830] ERROR in app: Exception on /clip/v2/resource [GET]
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1516, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.8/site-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.8/site-packages/flask_restful/__init__.py", line 467, in wrapper
    resp = resource(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/flask/views.py", line 84, in view
    return current_app.ensure_sync(self.dispatch_request)(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/flask_restful/__init__.py", line 582, in dispatch_request
    resp = meth(*args, **kwargs)
  File "/opt/hue-emulator/flaskUI/v2restapi.py", line 248, in get
    data.append(light.getV2Api())
  File "/opt/hue-emulator/HueObjects/__init__.py", line 503, in getV2Api
    "points_capable": self.protocol_cfg["points_capable"]}
KeyError: 'points_capable'
2023-12-03 09:43:36,835 - werkzeug - INFO - 192.168.1.13 - - [03/Dec/2023 09:43:36] "GET /clip/v2/resource HTTP/1.1" 500 -
2023-12-03 09:43:37,775 - werkzeug - INFO - 192.168.1.13 - - [03/Dec/2023 09:43:37] "GET /clip/v2/resource/bridge HTTP/1.1" 200 -
2023-12-03 09:43:37,829 - werkzeug - INFO - 192.168.1.13 - - [03/Dec/2023 09:43:37] "GET /eventstream/clip/v2 HTTP/1.1" 200 -
2023-12-03 09:43:37,844 - werkzeug - INFO - 192.168.1.1 - - [03/Dec/2023 09:43:37] "GET /api/205f498272a711eebcaed83add210e04/groups/0 HTTP/1.1" 200 -
[2023-12-03 09:43:37,864] ERROR in app: Exception on /clip/v2/resource [GET]
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1516, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.8/site-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.8/site-packages/flask_restful/__init__.py", line 467, in wrapper
    resp = resource(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/flask/views.py", line 84, in view
    return current_app.ensure_sync(self.dispatch_request)(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/flask_restful/__init__.py", line 582, in dispatch_request
    resp = meth(*args, **kwargs)
  File "/opt/hue-emulator/flaskUI/v2restapi.py", line 248, in get
    data.append(light.getV2Api())
  File "/opt/hue-emulator/HueObjects/__init__.py", line 503, in getV2Api
    "points_capable": self.protocol_cfg["points_capable"]}
KeyError: 'points_capable'
2023-12-03 09:43:37,869 - werkzeug - INFO - 192.168.1.13 - - [03/Dec/2023 09:43:37] "GET /clip/v2/resource HTTP/1.1" 500 -

And here’s what’s happening in the app:

IMG_6165

mariusmotea commented 7 months ago

i made a commit 10 minutes ago to add some new entertainment keys that were missing from the api.

igorcv88 commented 7 months ago

Solved!