diyHue Add-on

I have done the config file modification (set HT IP and token, etc)… I’ve also followed @foxy82 instructions for the customizations in HA for the lights I want to make available to DIYHue, but still nothing shows up - just like when I tried doing this with DIYhue in another docker instance following his instructions.

What I am unsure about is that there might be something else that needs to be done that I am missing (however the instructions from foxy and DiyHue install docs) don’t make it clear that I am missing anything :man_shrugging:

Hmmm :thinking:

Unsure then. Just making the options both true and adding the IP and token works for mine :man_shrugging:t2: Didn’t need to add anything to the HA lights as I wanted them all to show

yep, that’s what I’ve been doing a lot since switching to HA lol

That said, are you using the Beta from Max’s repo?

and when you say making the options both true, what do you mean by both?

HA enabled + HAincludebydefault are set to true in your config right?

EDIT: I turned on debugging in the config.

I see that DIYhue does communicate with HA and see’s the lights!

However I don’t see them in the web UI for DIYhue… so I guess I am at a loss as what to do next?

log snippet:


[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
/config/diyhue exists.
Your Architecture is = BUILD_ARCH
/opt/hue-emulator/functions/entertainment.py:97: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if len(nativeLights) is not 0:
/opt/hue-emulator/functions/entertainment.py:104: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if len(esphomeLights) is not 0:
/opt/hue-emulator/protocols/esphome.py:180: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if address["esphome_model"] is not "ESPHome-Toggle":
2020-12-30 13:49:50,555 - root - INFO - Using Host 10.10.1.14:80
Host MAC given as 4698b0dc11cc
2020-12-30 13:49:50,555 - root - INFO - 4698b0dc11cc
Docker Setup Initiated
SSL certificate found
Config file found
Docker Setup Complete
2020-12-30 13:49:50,555 - root - INFO - IP range for light discovery: 0-255
2020-12-30 13:49:50,556 - root - INFO - 127.0.0.1
2020-12-30 13:49:50,556 - root - INFO - Online Discovery/Remote API Enabled!
2020-12-30 13:49:50,556 - root - INFO - Config loaded
2020-12-30 13:49:50,560 - root - WARNING - Home Assistant Web Socket Client disconnected trying to (re)connect
2020-12-30 13:49:50,563 - root - INFO - Home Assistant WebSocket Connection Opened
2020-12-30 13:49:50,564 - root - INFO - Home Assistant Web Socket Authorisation required
2020-12-30 13:49:50,564 - root - INFO - Home Assistant Web Socket Client connected
2020-12-30 13:49:50,567 - root - INFO - Home Assistant Web Socket Authorisation complete
2020-12-30 13:49:50,572 - root - DEBUG - starting ssdp...
2020-12-30 13:49:50,578 - root - DEBUG - start ssdp broadcast
2020-12-30 13:49:50,596 - root - INFO - Found light.p_screen_led
2020-12-30 13:49:50,597 - root - INFO - Found light.bedroom_tv_light
2020-12-30 13:49:50,597 - root - INFO - Found light.headboard_led
2020-12-30 13:49:50,598 - root - INFO - Found light.sk_upper
2020-12-30 13:49:50,598 - root - INFO - Found light.ks_upper
2020-12-30 13:49:50,598 - root - INFO - Found light.bed_lowers
2020-12-30 13:49:50,598 - root - INFO - Found light.lr_couch_lamp
2020-12-30 13:49:50,599 - root - INFO - Found light.av_floor_lamps
2020-12-30 13:49:50,599 - root - INFO - Found light.av_led_strip
2020-12-30 13:49:50,599 - root - INFO - Found light.bedroom_dimmer_level
2020-12-30 13:49:50,599 - root - INFO - Found light.den_dimmer_level_2
2020-12-30 13:49:50,600 - root - INFO - Found light.lzw31_sn_dimmer_red_series_level
2020-12-30 13:49:50,600 - root - INFO - Found light.dinner_table
2020-12-30 13:49:50,601 - root - INFO - sync with lights

Interesting…

From what I remember, the lights didn’t show in the web ui page until after I had assigned the lights to a room using the hue essentials app.

Yes both those are set to true, I am using the beta.

Interesting info, thanks for that!

I checked with hue essentials app and it found the bridge and all the lights which I can control… however now I have to find out how to assign them to a different room. But that is another story all together.

At least for now I know that diyhue and HA work on my network!

If I can get this to work with my Harmony remote/hub now that would be the end of what I am attempting to accomplish with Hue anyway and I will be a happy man.

1 Like

Hey Siridar,

can you please open an github issue with the log file from diyhue?
Thank you!

Hey @NOTORIOUSVR,

good to hear that it is working now. And that the lights dont show up in the ui is normal. That is normal diyhue behaviour. The UI is not really good at the moment and i am using it only for the “activate” button.

Hi,

did you “only” connect to diyhue with Hue Essentials and the lights showed up there? I’ve got the same problem, in the logs I can see that the lights are found, but they are not visible in the Hue Essentials App

  File "/opt/hue-emulator/HueEmulator3.py", line 1979, in run
2020-12-31 11:58:58,687 - root - INFO - Found light.flur_lights
2020-12-31 11:58:58,689 - root - INFO - Found light.kuche_light
2020-12-31 11:58:58,689 - root - INFO - Found light.decke_buro_light
2020-12-31 11:58:58,690 - root - INFO - Found light.schreibtisch_light
2020-12-31 11:58:58,690 - root - INFO - Found light.wohnzimmer_light
2020-12-31 11:58:58,691 - root - INFO - Found light.flur_light
2020-12-31 11:58:58,691 - root - INFO - Found light.flur2_light
2020-12-31 11:58:58,692 - root - INFO - Found light.arbeitsplatte_light
2020-12-31 11:58:58,692 - root - INFO - Found light.baum_buro_light
2020-12-31 11:58:58,693 - root - INFO - Found light.lampe_schreibtisch_light
2020-12-31 11:58:58,693 - root - INFO - Found light.ledstrip
    ctx.load_cert_chain(certfile=CONFIG_PATH + "/cert.pem")
ssl.SSLError: [SSL] PEM lib (_ssl.c:4023)
2020-12-31 11:58:58,776 - urllib3.connectionpool - DEBUG - https://discovery.diyhue.org:443 "POST / HTTP/1.1" 200 6
{"ok"}

That’s correct… the key was to use the Hue Essentials app - that seemed to initialize diyhue somehow. It did take some time and going back and forth in the Essentials app before they showed up though, so it is certainly ‘fiddly’

And now I am happy to report the Harmony Hub/Remote also shows the Light entities and my remote is working just as it needs to again (able to control/dim the lights in the LR)!

Many thanks to all!

1 Like

Hello again,

I have found a way to get the other apps to sync, it is because of cert.pem file not holding a valid certificate. I did some digging through the diyhue issues on git and found a reference to a similar issue. The issue referred to there being an issue with the MAC address. I still had a config file from a previous set up that worked with these apps, so I copied the MAC address from this and deleted the cert.pem. I can now use the official app :slightly_smiling_face:

Hope others can find this helpful.

1 Like

I just wanted to post about this issue. Thank you very much for the input!

Another solution can be to copy the old cert file (if you have it) to the new config folder.

All the best!

Is there any solution if you don’t have a working instance with a MAC Adress neither an old cert.pem file?

EDIT:
I did a reinstall of the addon and now I have a valid cert.pem file. But I still don’t see any lights in my Hue Essentials App

Hey @larsf96,

can you send me the log output from diyhue?

Hey,

here is the log:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: diyHue-beta
 Philips Hue Bridge Emulator BETA
-----------------------------------------------------------
 Add-on version: 1.2.0
 You are running the latest version of this add-on.
 System: Home Assistant OS 5.9  (armv7 / raspberrypi4)
 Home Assistant Core: 2020.12.1
 Home Assistant Supervisor: 2020.12.7
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
/config/diyhue exists.
Your Architecture is = BUILD_ARCH
/opt/hue-emulator/functions/entertainment.py:97: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if len(nativeLights) is not 0:
/opt/hue-emulator/functions/entertainment.py:104: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if len(esphomeLights) is not 0:
/opt/hue-emulator/protocols/esphome.py:180: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if address["esphome_model"] is not "ESPHome-Toggle":
2021-01-01 14:58:29,609 - root - INFO - Using Host 192.168.0.28:80
Host MAC given as DCA63261DE47
2021-01-01 14:58:29,610 - root - INFO - DCA63261DE47
Docker Setup Initiated
SSL certificate found
Config file found
Docker Setup Complete
2021-01-01 14:58:29,612 - root - INFO - IP range for light discovery: 0-255
2021-01-01 14:58:29,613 - root - INFO - 127.0.0.1
2021-01-01 14:58:29,613 - root - INFO - Online Discovery/Remote API Enabled!
2021-01-01 14:58:29,616 - root - INFO - Config loaded
cp: can't create '/config/diyhue/export/': Is a directory
2021-01-01 14:58:29,629 - root - WARNING - Home Assistant Web Socket Client disconnected trying to (re)connect
2021-01-01 14:58:29,637 - root - INFO - Home Assistant Web Socket Client connected
2021-01-01 14:58:29,638 - root - INFO - Home Assistant WebSocket Connection Opened
2021-01-01 14:58:29,639 - root - INFO - Home Assistant Web Socket Authorisation required
2021-01-01 14:58:29,641 - root - DEBUG - starting ssdp...
2021-01-01 14:58:29,642 - root - DEBUG - start ssdp broadcast
2021-01-01 14:58:29,644 - root - INFO - sync with lights
2021-01-01 14:58:29,645 - root - INFO - Home Assistant Web Socket Authorisation complete
2021-01-01 14:58:29,653 - root - INFO - Starting httpd...
2021-01-01 14:58:29,671 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): discovery.diyhue.org:443
2021-01-01 14:58:29,684 - root - INFO - Starting ssl httpd...
2021-01-01 14:58:29,790 - root - INFO - Found light.flur_lights
2021-01-01 14:58:29,790 - root - INFO - Found light.kuche_light
2021-01-01 14:58:29,791 - root - INFO - Found light.decke_buro_light
2021-01-01 14:58:29,791 - root - INFO - Found light.schreibtisch_light
2021-01-01 14:58:29,792 - root - INFO - Found light.wohnzimmer_light
2021-01-01 14:58:29,792 - root - INFO - Found light.flur_light
2021-01-01 14:58:29,792 - root - INFO - Found light.flur2_light
2021-01-01 14:58:29,793 - root - INFO - Found light.arbeitsplatte_light
2021-01-01 14:58:29,793 - root - INFO - Found light.baum_buro_light
2021-01-01 14:58:29,793 - root - INFO - Found light.lampe_schreibtisch_light
2021-01-01 14:58:29,794 - root - INFO - Found light.ledstrip
2021-01-01 14:58:29,873 - urllib3.connectionpool - DEBUG - https://discovery.diyhue.org:443 "POST / HTTP/1.1" 200 6
{"ok"}
192.168.0.23 - - [01/Jan/2021 14:58:32] "GET /api/hueessb44c3911eba692dca63261de47 HTTP/1.1" 200 -

@MaxBec92 the addon do not start, my deconz api port is 85 and nginx on 80 and 443

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: diyHue-beta
 Philips Hue Bridge Emulator BETA
-----------------------------------------------------------
 Add-on version: 1.1.8
 You are running the latest version of this add-on.
 System: Home Assistant OS 5.9  (amd64 / qemux86-64)
 Home Assistant Core: 2020.12.2
 Home Assistant Supervisor: 2020.12.7
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
/config/diyhue exists.
Your Architecture is = BUILD_ARCH
/opt/hue-emulator/functions/entertainment.py:97: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if len(nativeLights) is not 0:
/opt/hue-emulator/functions/entertainment.py:104: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if len(esphomeLights) is not 0:
/opt/hue-emulator/protocols/esphome.py:180: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if address["esphome_model"] is not "ESPHome-Toggle":
Host MAC given as XXXXXXXXXX
Docker Setup Initiated
SSL certificate found
Config file found
Docker Setup Complete
Deconz IP given as 192.168.1.19
Traceback (most recent call last):
  File "/opt/hue-emulator/HueEmulator3.py", line 1996, in <module>
    initialize()
  File "/opt/hue-emulator/HueEmulator3.py", line 202, in initialize
    bridge_config["config"]["mac"] = mac[0] + mac[1] + ":" + mac[2] + mac[3] + ":" + mac[4] + mac[5] + ":" + mac[6] + mac[7] + ":" + mac[8] + mac[9] + ":" + mac[10] + mac[11]
IndexError: string index out of range
[cmd] ./run.sh exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing... 
-----------------------------------------------------------
                Oops! Something went wrong.

 We are so sorry, but something went terribly wrong when
 starting or running this add-on.
 
 Be sure to check the log above, line by line, for hints.
-----------------------------------------------------------
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.

Hey @joselito1;
you have to set a MAC address in the config file before start of the addon

hey lars,

strange. the lights are there.
I will have a closer look at it later.

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: diyHue-beta
 Philips Hue Bridge Emulator BETA
-----------------------------------------------------------
 Add-on version: 1.1.8
 You are running the latest version of this add-on.
 System: Home Assistant OS 5.9  (amd64 / qemux86-64)
 Home Assistant Core: 2020.12.2
 Home Assistant Supervisor: 2020.12.7
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
/config/diyhue exists.
Your Architecture is = BUILD_ARCH
/opt/hue-emulator/functions/entertainment.py:97: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if len(nativeLights) is not 0:
/opt/hue-emulator/functions/entertainment.py:104: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if len(esphomeLights) is not 0:
/opt/hue-emulator/protocols/esphome.py:180: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if address["esphome_model"] is not "ESPHome-Toggle":
2021-01-01 17:31:28,989 - root - INFO - Using Host 192.168.1.19:80
Host MAC given as ac123fvbiiaa
2021-01-01 17:31:28,990 - root - INFO - ac123fvbiiaa
Docker Setup Initiated
SSL certificate found
Config file found
Docker Setup Complete
2021-01-01 17:31:28,990 - root - INFO - IP range for light discovery: 0-255
Deconz IP given as 192.168.1.19
2021-01-01 17:31:28,990 - root - INFO - 192.168.1.19
2021-01-01 17:31:28,990 - root - INFO - Online Discovery/Remote API Enabled!
2021-01-01 17:31:28,992 - root - INFO - Config loaded
cp: can't create '/config/diyhue/export/': Is a directory
2021-01-01 17:31:29,010 - root - DEBUG - starting ssdp...
2021-01-01 17:31:29,013 - root - DEBUG - start ssdp broadcast
2021-01-01 17:31:29,018 - root - INFO - sync with lights
Exception in thread Thread-7:
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/opt/hue-emulator/HueEmulator3.py", line 1990, in run
    httpd = server_class(server_address, handler_class)
  File "/usr/local/lib/python3.8/socketserver.py", line 452, in __init__
    self.server_bind()
  File "/usr/local/lib/python3.8/http/server.py", line 138, in server_bind
Exception in thread Thread-8    :
socketserver.TCPServer.server_bind(self)
  File "/usr/local/lib/python3.8/socketserver.py", line 466, in server_bind
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.socket.bind(self.server_address)
OSError: [Errno 98] Address in use
    self.run()
  File "/usr/local/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/opt/hue-emulator/HueEmulator3.py", line 1977, in run
2021-01-01 17:31:29,055 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): discovery.diyhue.org:443
    httpd = server_class(server_address, handler_class)
  File "/usr/local/lib/python3.8/socketserver.py", line 452, in __init__
    self.server_bind()
  File "/usr/local/lib/python3.8/http/server.py", line 138, in server_bind
    socketserver.TCPServer.server_bind(self)
  File "/usr/local/lib/python3.8/socketserver.py", line 466, in server_bind
    self.socket.bind(self.server_address)
OSError: [Errno 98] Address in use
2021-01-01 17:31:30,208 - urllib3.connectionpool - DEBUG - https://discovery.diyhue.org:443 "POST / HTTP/1.1" 200 6
{"ok"}
2021-01-01 17:31:32,122 - root - DEBUG - Sending M-Search response to 192.168.1.19
2021-01-01 17:31:33,026 - root - DEBUG - Sending M-Search response to 192.168.1.19
2021-01-01 17:31:33,828 - root - DEBUG - Sending M-Search response to 192.168.1.19
2021-01-01 17:31:34,531 - root - DEBUG - Sending M-Search response to 192.168.1.19
2021-01-01 17:31:35,934 - root - DEBUG - Sending M-Search response to 192.168.1.19
2021-01-01 17:31:36,535 - root - DEBUG - Sending M-Search response to 192.168.1.19
2021-01-01 17:31:38,219 - root - DEBUG - Sending M-Search response to 192.168.1.20
2021-01-01 17:31:48,220 - root - DEBUG - Sending M-Search response to 192.168.1.20
config_path: /config/diyhue
mac: 'ac:12:3f:vb:ii:aa'
debug: true
deconz_ip: 192.168.1.19
443/tcp	444 Hue API SSL
80/tcp	87 Hue API

on https://discovery.diyhue.org/ I get: [{“id”: “ac123ffffevbiiaa”, “internalipaddress”: “192.168.1.19”}]
and can not open web ui

what should I change?
edited config file to get HA light, but still some error and cant connect to hue app. But can see the bridge ov tv, but the link button dont work

-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
/config/diyhue exists.
Your Architecture is = BUILD_ARCH
/opt/hue-emulator/functions/entertainment.py:97: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if len(nativeLights) is not 0:
/opt/hue-emulator/functions/entertainment.py:104: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if len(esphomeLights) is not 0:
/opt/hue-emulator/protocols/esphome.py:180: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if address["esphome_model"] is not "ESPHome-Toggle":
2021-01-01 18:07:15,736 - root - INFO - Using Host 192.168.1.19:80
Host MAC given as ac123fvbiiaa
2021-01-01 18:07:15,737 - root - INFO - ac123fvbiiaa
Docker Setup Initiated
SSL certificate found
Config file found
Docker Setup Complete
2021-01-01 18:07:15,739 - root - INFO - IP range for light discovery: 0-255
Deconz IP given as 192.168.1.19
2021-01-01 18:07:15,740 - root - INFO - 192.168.1.19
2021-01-01 18:07:15,741 - root - INFO - Online Discovery/Remote API Enabled!
2021-01-01 18:07:15,743 - root - INFO - Config loaded
2021-01-01 18:07:15,753 - root - WARNING - Home Assistant Web Socket Client disconnected trying to (re)connect
2021-01-01 18:07:15,769 - root - INFO - Home Assistant WebSocket Connection Opened
2021-01-01 18:07:15,769 - root - INFO - Home Assistant Web Socket Client connected
2021-01-01 18:07:15,773 - root - DEBUG - starting ssdp...
2021-01-01 18:07:15,776 - root - INFO - Home Assistant Web Socket Authorisation required
2021-01-01 18:07:15,776 - root - DEBUG - start ssdp broadcast
2021-01-01 18:07:15,780 - root - INFO - sync with lights
2021-01-01 18:07:15,783 - root - INFO - Home Assistant Web Socket Authorisation complete
Exception in thread Thread-8:
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
Exception in thread     self.run()
  File "/usr/local/lib/python3.8/threading.py", line 870, in run
    Thread-9:
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self._target(*self._args, **self._kwargs)self.run()
  File "/usr/local/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/opt/hue-emulator/HueEmulator3.py", line 1977, in run
  File "/opt/hue-emulator/HueEmulator3.py", line 1990, in run
    httpd = server_class(server_address, handler_class)
    httpd = server_class(server_address, handler_class)
  File "/usr/local/lib/python3.8/socketserver.py", line 452, in __init__
  File "/usr/local/lib/python3.8/socketserver.py", line 452, in __init__
    self.server_bind()
  File "/usr/local/lib/python3.8/http/server.py", line 138, in server_bind
        socketserver.TCPServer.server_bind(self)self.server_bind()
  File "/usr/local/lib/python3.8/socketserver.py", line 466, in server_bind
  File "/usr/local/lib/python3.8/http/server.py", line 138, in server_bind
    self.socket.bind(self.server_address)
2021-01-01 18:07:15,831 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): discovery.diyhue.org:443
OSError: [Errno 98] Address in use
    socketserver.TCPServer.server_bind(self)
  File "/usr/local/lib/python3.8/socketserver.py", line 466, in server_bind
    self.socket.bind(self.server_address)
OSError: [Errno 98] Address in use
2021-01-01 18:07:16,098 - root - INFO - Found light.twinkly250```

Is there running any other application on port 80 on your system?

Yes, ngin xproxy manager. Have tried to change ports to 79 and 442 on hue addon