Im getting an error when i try to add the Bridge to HUE essentials.
Expected start of the array [ but had { instead at path: $ JSON input {massage: Internal Server Erros}
DIYHUE is running on an Raspy 4 with HA.
PROTOKOLL:
2024-11-02 11:03:37,421 - werkzeug - INFO - 192.168.178.29 - - [02/Nov/2024 11:03:37] “POST /api/ HTTP/1.1” 500 -
2024-11-02 11:03:39,114 - flaskUI.restful - INFO - {‘devicetype’: ‘Hue Essentials#SM-S908B’, ‘generateclientkey’: True}
[2024-11-02 11:03:39,117] ERROR in app: Exception on /api/ [POST]
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/restful.py”, line 80, in post
last_button_press = bridgeConfig[“config”][“linkbutton”][“lastlinkbuttonpushed”]
TypeError: ‘bool’ object is not subscriptable
2024-11-02 11:03:39,121 - werkzeug - INFO - 192.168.178.29 - - [02/Nov/2024 11:03:39] “POST /api/ HTTP/1.1” 500 -
2024-11-02 11:03:44,778 - flaskUI.restful - INFO - {‘devicetype’: ‘Hue Essentials#SM-S908B’, ‘generateclientkey’: True}
[2024-11-02 11:03:44,781] ERROR in app: Exception on /api/ [POST]
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/restful.py”, line 80, in post
last_button_press = bridgeConfig[“config”][“linkbutton”][“lastlinkbuttonpushed”]
TypeError: ‘bool’ object is not subscriptable
2024-11-02 11:03:44,786 - werkzeug - INFO - 192.168.178.29 - - [02/Nov/2024 11:03:44] “POST /api/ HTTP/1.1” 500 -