Hello,
I am trying to install the DiyHue along with the philips bridge. I am able to login to the DiyHue UI after the initial installation with the correct MAC address. I am also able to pair the app and the bridge along with one WLED led strip and able to create and control rooms with lights on the emulated bridge with bot WLED led strip and the hue lights.
After 5-10 mins when I try to log back into the iPhone hue app, I am getting the screen that I attached and when I check the logs I am gettting pyton errors.
After this, I am trying to restart the app with debug mode on and I am not be able to reach out to the UI.
Environment:
- Home assistant add-on
- Docker image on a Linux server VM with recommended stack
- Docker image on a Linux server VM with recommended script
Rate of reproduction:
6 of 6 tries.
Reproduction steps
Install DiyHue with the respective MAC address within container or home assistant add-on
Pair the existing bridge
Pair the hue app
Find lights
Create rooms
Wait 5-10 mins
App unable to reach out to the DiyHue bridge.
KeyError: 'points_capable'\n","stream":"stderr","time":"2024-12-25T05:02:01.093399849Z"}
{"log":"2024-12-24 21:02:01,093 - werkzeug - 225 - INFO - 192.168.68.121 - - [24/Dec/2024 21:02:01] \"\u001b[35m\u001b[1mGET /clip/v2/resource HTTP/1.1\u001b[0m\" 500 -\n","stream":"stdout","time":"2024-12-25T05:02:01.093684926Z"}
{"log":"2024-12-24 21:02:02,043 - werkzeug - 225 - INFO - 192.168.68.121 - - [24/Dec/2024 21:02:02] \"GET /clip/v2/resource/bridge HTTP/1.1\" 200 -\n","stream":"stdout","time":"2024-12-25T05:02:02.043590599Z"}
{"log":"2024-12-24 21:02:02,064 - werkzeug - 225 - INFO - 192.168.68.121 - - [24/Dec/2024 21:02:02] \"GET /eventstream/clip/v2 HTTP/1.1\" 200 -\n","stream":"stdout","time":"2024-12-25T05:02:02.065190776Z"}
{"log":"[2024-12-24 21:02:02,093] ERROR in app: Exception on /clip/v2/resource [GET]\n","stream":"stderr","time":"2024-12-25T05:02:02.094748215Z"}
{"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2024-12-25T05:02:02.094785849Z"}
{"log":" File \"/usr/local/lib/python3.11/dist-packages/flask/app.py\", line 1516, in full_dispatch_request\n","stream":"stderr","time":"2024-12-25T05:02:02.094791421Z"}
{"log":" rv = self.dispatch_request()\n","stream":"stderr","time":"2024-12-25T05:02:02.094810117Z"}
{"log":" ^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:02.0948147Z"}
{"log":" File \"/usr/local/lib/python3.11/dist-packages/flask/app.py\", line 1502, in dispatch_request\n","stream":"stderr","time":"2024-12-25T05:02:02.094819174Z"}
{"log":" return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)\n","stream":"stderr","time":"2024-12-25T05:02:02.094823822Z"}
{"log":" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:02.094828609Z"}
{"log":" File \"/usr/local/lib/python3.11/dist-packages/flask_restful/__init__.py\", line 467, in wrapper\n","stream":"stderr","time":"2024-12-25T05:02:02.094833135Z"}
{"log":" resp = resource(*args, **kwargs)\n","stream":"stderr","time":"2024-12-25T05:02:02.094837879Z"}
{"log":" ^^^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:02.094842321Z"}
{"log":" File \"/usr/local/lib/python3.11/dist-packages/flask/views.py\", line 84, in view\n","stream":"stderr","time":"2024-12-25T05:02:02.094846755Z"}
{"log":" return current_app.ensure_sync(self.dispatch_request)(*args, **kwargs)\n","stream":"stderr","time":"2024-12-25T05:02:02.09485149Z"}
{"log":" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:02.094856038Z"}
{"log":" File \"/usr/local/lib/python3.11/dist-packages/flask_restful/__init__.py\", line 582, in dispatch_request\n","stream":"stderr","time":"2024-12-25T05:02:02.094861085Z"}
{"log":" resp = meth(*args, **kwargs)\n","stream":"stderr","time":"2024-12-25T05:02:02.094865874Z"}
{"log":" ^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:02.09489729Z"}
{"log":" File \"/opt/hue-emulator/flaskUI/v2restapi.py\", line 274, in get\n","stream":"stderr","time":"2024-12-25T05:02:02.094902595Z"}
{"log":" data.append(light.getV2Api())\n","stream":"stderr","time":"2024-12-25T05:02:02.094907192Z"}
{"log":" ^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:02.094911725Z"}
{"log":" File \"/opt/hue-emulator/HueObjects/Light.py\", line 292, in getV2Api\n","stream":"stderr","time":"2024-12-25T05:02:02.094929809Z"}
{"log":" \"points_capable\": self.protocol_cfg[\"points_capable\"]}\n","stream":"stderr","time":"2024-12-25T05:02:02.094934407Z"}
{"log":" ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:02.09495334Z"}
{"log":"KeyError: 'points_capable'\n","stream":"stderr","time":"2024-12-25T05:02:02.094958038Z"}
{"log":"2024-12-24 21:02:02,094 - werkzeug - 225 - INFO - 192.168.68.121 - - [24/Dec/2024 21:02:02] \"\u001b[35m\u001b[1mGET /clip/v2/resource HTTP/1.1\u001b[0m\" 500 -\n","stream":"stdout","time":"2024-12-25T05:02:02.095167933Z"}
{"log":"2024-12-24 21:02:02,538 - werkzeug - 225 - INFO - 192.168.68.124 - - [24/Dec/2024 21:02:02] \"GET /api/0df6911ac27911efa1fbf2975223a28d/config/swupdate2 HTTP/1.1\" 200 -\n","stream":"stdout","time":"2024-12-25T05:02:02.539213157Z"}
{"log":"2024-12-24 21:02:02,540 - werkzeug - 225 - INFO - 192.168.68.124 - - [24/Dec/2024 21:02:02] \"GET /api/0df6911ac27911efa1fbf2975223a28d/groups/0 HTTP/1.1\" 200 -\n","stream":"stdout","time":"2024-12-25T05:02:02.540564499Z"}
{"log":"2024-12-24 21:02:02,666 - werkzeug - 225 - INFO - 192.168.68.121 - - [24/Dec/2024 21:02:02] \"GET /api/config HTTP/1.1\" 200 -\n","stream":"stdout","time":"2024-12-25T05:02:02.666773431Z"}
{"log":"2024-12-24 21:02:03,035 - werkzeug - 225 - INFO - 192.168.68.121 - - [24/Dec/2024 21:02:03] \"GET /clip/v2/resource/bridge HTTP/1.1\" 200 -\n","stream":"stdout","time":"2024-12-25T05:02:03.035951753Z"}
{"log":"2024-12-24 21:02:03,052 - werkzeug - 225 - INFO - 192.168.68.121 - - [24/Dec/2024 21:02:03] \"GET /eventstream/clip/v2 HTTP/1.1\" 200 -\n","stream":"stdout","time":"2024-12-25T05:02:03.052374338Z"}
{"log":"[2024-12-24 21:02:03,084] ERROR in app: Exception on /clip/v2/resource [GET]\n","stream":"stderr","time":"2024-12-25T05:02:03.085657042Z"}
{"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2024-12-25T05:02:03.085683402Z"}
{"log":" File \"/usr/local/lib/python3.11/dist-packages/flask/app.py\", line 1516, in full_dispatch_request\n","stream":"stderr","time":"2024-12-25T05:02:03.085689085Z"}
{"log":" rv = self.dispatch_request()\n","stream":"stderr","time":"2024-12-25T05:02:03.085694141Z"}
{"log":" ^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:03.085698705Z"}
{"log":" File \"/usr/local/lib/python3.11/dist-packages/flask/app.py\", line 1502, in dispatch_request\n","stream":"stderr","time":"2024-12-25T05:02:03.085703159Z"}
{"log":" return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)\n","stream":"stderr","time":"2024-12-25T05:02:03.085708286Z"}
{"log":" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:03.085712859Z"}
{"log":" File \"/usr/local/lib/python3.11/dist-packages/flask_restful/__init__.py\", line 467, in wrapper\n","stream":"stderr","time":"2024-12-25T05:02:03.085717347Z"}
{"log":" resp = resource(*args, **kwargs)\n","stream":"stderr","time":"2024-12-25T05:02:03.085722133Z"}
{"log":" ^^^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:03.08572655Z"}
{"log":" File \"/usr/local/lib/python3.11/dist-packages/flask/views.py\", line 84, in view\n","stream":"stderr","time":"2024-12-25T05:02:03.085730992Z"}
{"log":" return current_app.ensure_sync(self.dispatch_request)(*args, **kwargs)\n","stream":"stderr","time":"2024-12-25T05:02:03.08573558Z"}
{"log":" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:03.085754198Z"}
{"log":" File \"/usr/local/lib/python3.11/dist-packages/flask_restful/__init__.py\", line 582, in dispatch_request\n","stream":"stderr","time":"2024-12-25T05:02:03.085759785Z"}
{"log":" resp = meth(*args, **kwargs)\n","stream":"stderr","time":"2024-12-25T05:02:03.085764635Z"}
{"log":" ^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:03.085769189Z"}
{"log":" File \"/opt/hue-emulator/flaskUI/v2restapi.py\", line 274, in get\n","stream":"stderr","time":"2024-12-25T05:02:03.085773634Z"}
{"log":" data.append(light.getV2Api())\n","stream":"stderr","time":"2024-12-25T05:02:03.085778323Z"}
{"log":" ^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:03.085783037Z"}
{"log":" File \"/opt/hue-emulator/HueObjects/Light.py\", line 292, in getV2Api\n","stream":"stderr","time":"2024-12-25T05:02:03.085787613Z"}
{"log":" \"points_capable\": self.protocol_cfg[\"points_capable\"]}\n","stream":"stderr","time":"2024-12-25T05:02:03.085792457Z"}
{"log":" ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:03.08579736Z"}
{"log":"KeyError: 'points_capable'\n","stream":"stderr","time":"2024-12-25T05:02:03.085819441Z"}
{"log":"2024-12-24 21:02:03,085 - werkzeug - 225 - INFO - 192.168.68.121 - - [24/Dec/2024 21:02:03] \"\u001b[35m\u001b[1mGET /clip/v2/resource HTTP/1.1\u001b[0m\" 500 -\n","stream":"stdout","time":"2024-12-25T05:02:03.086105467Z"}
{"log":"2024-12-24 21:02:04,037 - werkzeug - 225 - INFO - 192.168.68.121 - - [24/Dec/2024 21:02:04] \"GET /clip/v2/resource/bridge HTTP/1.1\" 200 -\n","stream":"stdout","time":"2024-12-25T05:02:04.037970767Z"}
{"log":"2024-12-24 21:02:04,056 - werkzeug - 225 - INFO - 192.168.68.121 - - [24/Dec/2024 21:02:04] \"GET /eventstream/clip/v2 HTTP/1.1\" 200 -\n","stream":"stdout","time":"2024-12-25T05:02:04.056962483Z"}
{"log":"[2024-12-24 21:02:04,108] ERROR in app: Exception on /clip/v2/resource [GET]\n","stream":"stderr","time":"2024-12-25T05:02:04.109045878Z"}
{"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2024-12-25T05:02:04.109121216Z"}
{"log":" File \"/usr/local/lib/python3.11/dist-packages/flask/app.py\", line 1516, in full_dispatch_request\n","stream":"stderr","time":"2024-12-25T05:02:04.109128584Z"}
{"log":" rv = self.dispatch_request()\n","stream":"stderr","time":"2024-12-25T05:02:04.109133722Z"}
{"log":" ^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:04.109138331Z"}
{"log":" File \"/usr/local/lib/python3.11/dist-packages/flask/app.py\", line 1502, in dispatch_request\n","stream":"stderr","time":"2024-12-25T05:02:04.109143137Z"}
{"log":" return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)\n","stream":"stderr","time":"2024-12-25T05:02:04.109148033Z"}
{"log":" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:04.10915259Z"}
{"log":" File \"/usr/local/lib/python3.11/dist-packages/flask_restful/__init__.py\", line 467, in wrapper\n","stream":"stderr","time":"2024-12-25T05:02:04.109157285Z"}
{"log":" resp = resource(*args, **kwargs)\n","stream":"stderr","time":"2024-12-25T05:02:04.109161974Z"}
{"log":" ^^^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:04.109166559Z"}
{"log":" File \"/usr/local/lib/python3.11/dist-packages/flask/views.py\", line 84, in view\n","stream":"stderr","time":"2024-12-25T05:02:04.109171128Z"}
{"log":" return current_app.ensure_sync(self.dispatch_request)(*args, **kwargs)\n","stream":"stderr","time":"2024-12-25T05:02:04.109175922Z"}
{"log":" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:04.10918058Z"}
{"log":" File \"/usr/local/lib/python3.11/dist-packages/flask_restful/__init__.py\", line 582, in dispatch_request\n","stream":"stderr","time":"2024-12-25T05:02:04.109185254Z"}
{"log":" resp = meth(*args, **kwargs)\n","stream":"stderr","time":"2024-12-25T05:02:04.109203541Z"}
{"log":" ^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:04.10920884Z"}
{"log":" File \"/opt/hue-emulator/flaskUI/v2restapi.py\", line 274, in get\n","stream":"stderr","time":"2024-12-25T05:02:04.109213582Z"}
{"log":" data.append(light.getV2Api())\n","stream":"stderr","time":"2024-12-25T05:02:04.109218292Z"}
{"log":" ^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:04.109222938Z"}
{"log":" File \"/opt/hue-emulator/HueObjects/Light.py\", line 292, in getV2Api\n","stream":"stderr","time":"2024-12-25T05:02:04.109227637Z"}
{"log":" \"points_capable\": self.protocol_cfg[\"points_capable\"]}\n","stream":"stderr","time":"2024-12-25T05:02:04.109232417Z"}
{"log":" ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:04.109237383Z"}
{"log":"KeyError: 'points_capable'\n","stream":"stderr","time":"2024-12-25T05:02:04.109242182Z"}
{"log":"2024-12-24 21:02:04,109 - werkzeug - 225 - INFO - 192.168.68.121 - - [24/Dec/2024 21:02:04] \"\u001b[35m\u001b[1mGET /clip/v2/resource HTTP/1.1\u001b[0m\" 500 -\n","stream":"stdout","time":"2024-12-25T05:02:04.109580656Z"}
{"log":"2024-12-24 21:02:05,037 - werkzeug - 225 - INFO - 192.168.68.121 - - [24/Dec/2024 21:02:05] \"GET /clip/v2/resource/bridge HTTP/1.1\" 200 -\n","stream":"stdout","time":"2024-12-25T05:02:05.037648431Z"}
{"log":"2024-12-24 21:02:05,055 - werkzeug - 225 - INFO - 192.168.68.121 - - [24/Dec/2024 21:02:05] \"GET /eventstream/clip/v2 HTTP/1.1\" 200 -\n","stream":"stdout","time":"2024-12-25T05:02:05.05622325Z"}
{"log":"[2024-12-24 21:02:05,086] ERROR in app: Exception on /clip/v2/resource [GET]\n","stream":"stderr","time":"2024-12-25T05:02:05.087345052Z"}
{"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2024-12-25T05:02:05.087369395Z"}
{"log":" File \"/usr/local/lib/python3.11/dist-packages/flask/app.py\", line 1516, in full_dispatch_request\n","stream":"stderr","time":"2024-12-25T05:02:05.087375228Z"}
{"log":" rv = self.dispatch_request()\n","stream":"stderr","time":"2024-12-25T05:02:05.087380042Z"}
{"log":" ^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:05.087384791Z"}
{"log":" File \"/usr/local/lib/python3.11/dist-packages/flask/app.py\", line 1502, in dispatch_request\n","stream":"stderr","time":"2024-12-25T05:02:05.087389365Z"}
{"log":" return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)\n","stream":"stderr","time":"2024-12-25T05:02:05.087394058Z"}
{"log":" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:05.087398626Z"}
{"log":" File \"/usr/local/lib/python3.11/dist-packages/flask_restful/__init__.py\", line 467, in wrapper\n","stream":"stderr","time":"2024-12-25T05:02:05.087403244Z"}
{"log":" resp = resource(*args, **kwargs)\n","stream":"stderr","time":"2024-12-25T05:02:05.087408005Z"}
{"log":" ^^^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:05.087412426Z"}
{"log":" File \"/usr/local/lib/python3.11/dist-packages/flask/views.py\", line 84, in view\n","stream":"stderr","time":"2024-12-25T05:02:05.087416799Z"}
{"log":" return current_app.ensure_sync(self.dispatch_request)(*args, **kwargs)\n","stream":"stderr","time":"2024-12-25T05:02:05.087421489Z"}
{"log":" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:05.087426Z"}
{"log":" File \"/usr/local/lib/python3.11/dist-packages/flask_restful/__init__.py\", line 582, in dispatch_request\n","stream":"stderr","time":"2024-12-25T05:02:05.087430745Z"}
{"log":" resp = meth(*args, **kwargs)\n","stream":"stderr","time":"2024-12-25T05:02:05.08743546Z"}
{"log":" ^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:05.087440027Z"}
{"log":" File \"/opt/hue-emulator/flaskUI/v2restapi.py\", line 274, in get\n","stream":"stderr","time":"2024-12-25T05:02:05.087444631Z"}
{"log":" data.append(light.getV2Api())\n","stream":"stderr","time":"2024-12-25T05:02:05.087475499Z"}
{"log":" ^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:05.087497515Z"}
{"log":" File \"/opt/hue-emulator/HueObjects/Light.py\", line 292, in getV2Api\n","stream":"stderr","time":"2024-12-25T05:02:05.087502329Z"}
{"log":" \"points_capable\": self.protocol_cfg[\"points_capable\"]}\n","stream":"stderr","time":"2024-12-25T05:02:05.087507224Z"}
{"log":" ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-12-25T05:02:05.087511992Z"}
{"log":"KeyError: 'points_capable'\n","stream":"stderr","time":"2024-12-25T05:02:05.087516694Z"}
Update: Just realized somehow I am able to keep the DiyHue up in Home Assistant. Now the problem is that the port 443 is closed
Starting Nmap 7.95 ( https://nmap.org ) at 2024-12-24 22:40 Pacific Standard Time
Nmap scan report for 192.168.68.142
Host is up (0.0040s latency).
PORT STATE SERVICE
443/tcp closed https
MAC Address: A2:4C:DA:BF:9C:16 (Unknown)
Nmap done: 1 IP address (1 host up) scanned in 0.24 seconds