Link Button returns 500 / throws python exception

I have my diyHue instance running in Docker on my Pi 4 over a macvlan network. The Container is connected to my IOT Vlan so it has direct access to my HA instance and potentially other “Smart” things. Now if i try to connect either HueEssentials or the official Hue App to diyHue with clicking the “Link App” Button just throws a big red error toast.

Container log snippet (same output whether or not being in debug mode):

[2022-07-29 15:14:17,682] ERROR in app: Exception on /api/570df1040cc811edb7d002420a28ebd6/config [PUT]
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/flask/", line 1516, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.9/dist-packages/flask/", line 1502, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "/usr/local/lib/python3.9/dist-packages/flask_restful/", line 467, in wrapper
    resp = resource(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/flask/", line 84, in view
    return current_app.ensure_sync(self.dispatch_request)(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/flask_restful/", line 582, in dispatch_request
    resp = meth(*args, **kwargs)
  File "/opt/hue-emulator/flaskUI/", line 274, in put
AttributeError: 'bool' object has no attribute 'update' - - [29/Jul/2022 15:14:17] "PUT /api/570df1040cc811edb7d002420a28ebd6/config HTTP/1.1" 500 -

If it has anything to do with it: my IOT Vlan has the Subnet, is my main Vlan.

Thanks for your help

Looks like a UI Error to me.

Have you been able to run diyHue in a other setup successfully?

you need to manually fix the config.yaml file under linkbutton key. You must not press the linkbutton in the HueEssentials app, that is deprecated.

sample code:

  lastlinkbuttonpushed: 1653237895