diyhue / diyHue

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

Exception connecting with philips hue app #713

Closed flash447 closed 2 years ago

flash447 commented 2 years ago

I have setup diyHue with the latest from the beta branch. Initially, I was able to connect with the Philips hue app and setup my lights and it seemed to work. But now when I connect, the hue app stalls and hue emulator generates the following exception over and over:

2021-10-24 08:50:29,328 - configManager.argumentHandler - INFO - Using Host 192.168.10.2:80
2021-10-24 08:50:29,349 - configManager.argumentHandler - INFO - Host MAC given as 00c0ba32d190
2021-10-24 08:50:29,349 - configManager.argumentHandler - INFO - IP range for light discovery: 0-255
2021-10-24 08:50:29,350 - configManager.argumentHandler - INFO - Deconz IP given as 127.0.0.1
2021-10-24 08:50:29,350 - configManager.argumentHandler - INFO - Online Discovery/Remote API Enabled!
2021-10-24 08:50:29,354 - configManager.argumentHandler - INFO - Debug logging disabled!
2021-10-24 07:50:30,374 - configManager.configHandler - INFO - Config loaded
Starting remote discovery
2021-10-24 07:50:30,769 - services.stateFetch - INFO - start lights sync
2021-10-24 07:50:30,777 - services.ssdp - INFO - starting ssdp...
2021-10-24 07:50:30,779 - services.ssdp - INFO - start ssdp broadcast
2021-10-24 07:50:30,780 - services.mdns - INFO - <MDNS> listener started
 * Serving Flask app "HueEmulator3" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off
 * Running on http://0.0.0.0:80/ (Press CTRL+C to quit)
 * Serving Flask app "HueEmulator3" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off
 * Running on https://0.0.0.0:443/ (Press CTRL+C to quit)
192.168.10.45 - - [24/Oct/2021 07:50:39] "GET /clip/v2/resource/bridge HTTP/1.1" 200 -
192.168.10.45 - - [24/Oct/2021 07:50:40] "GET /eventstream/clip/v2 HTTP/1.1" 200 -
[2021-10-24 07:50:40,760] ERROR in app: Exception on /clip/v2/resource [GET]
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/local/lib/python3.7/dist-packages/flask_restful/__init__.py", line 468, in wrapper
    resp = resource(*args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/flask/views.py", line 89, in view
    return self.dispatch_request(*args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/flask_restful/__init__.py", line 583, in dispatch_request
    resp = meth(*args, **kwargs)
  File "/opt/hue-emulator/flaskUI/v2restapi.py", line 210, in get
    data.append(light.getV2Api())
  File "/opt/hue-emulator/HueObjects/__init__.py", line 307, in getV2Api
    "mirek": self.state["ct"] if self.state["colormode"] == "ct" else None,
KeyError: 'colormode'
close-issue-app[bot] commented 2 years ago

This issue was automatically closed because the issue template was not filled out or because you have not confirmed you have read all parts of the checklist. To ensure we are able to properly support you, please make sure that you are posting in the right place and to fill out the issue template so that a bunch of standard questions don't need to be asked again each time. Thank you for taking the time to report a bug/feature/help request, hopefully it can be resolved soon. This issue will not be reviewed, so if you need further assistance, please create a new issue, following the template.

mariusmotea commented 2 years ago

Hi.

What types of lights you have? Are dimmable lights only? I think this is a bug that i need to fix.