No chance to aktivate emulated_hue?

Raspberry Pi 4 4GB Docker installation

Please help :scream:
I only want to aktivate emulated_ hue on hass 5.9 …
But I only get this error message

2020-12-31 23:27:22 ERROR (MainThread) [homeassistant.setup] Error during setup of component emulated_hue

Traceback (most recent call last):

File β€œ/usr/src/homeassistant/homeassistant/setup.py”, line 213, in _async_setup_component

result = await task

File β€œ/usr/src/homeassistant/homeassistant/components/emulated_hue/init.py”, line 128, in async_setup

listen = create_upnp_datagram_endpoint(

File β€œ/usr/src/homeassistant/homeassistant/components/emulated_hue/upnp.py”, line 74, in create_upnp_datagram_endpoint

ssdp_socket.setsockopt(

OSError: [Errno 99] Address not available

Try rebooting the host.

I’ve done this several times but without success

What integrations are running?


i installed the emulated_hue add on after this, and here is that log:
2021-01-01 16:46:26,216 DEBUG emulated_hue.utils – Loading /data/emulated_hue.json failed: [Errno 2] No such file or directory: β€˜/data/emulated_hue.json’
2021-01-01 16:46:26,218 INFO emulated_hue.config – Auto detected listen IP address is 172.20.60.50
2021-01-01 16:46:26,259 DEBUG getmac – Raw MAC found: None
2021-01-01 16:46:26,262 DEBUG getmac – Raw MAC found: dc:a6:32:d4:28:b6
2021-01-01 16:46:26,263 DEBUG aiorun – Entering run()
2021-01-01 16:46:26,278 DEBUG aiorun – Creating default executor
2021-01-01 16:46:26,331 INFO hass-client – Connecting to hassio/homeassistant
2021-01-01 16:46:26,341 INFO emulated_hue.api – Started HTTP webserver on port 80
2021-01-01 16:46:26,353 INFO emulated_hue.api – Started HTTPS webserver on port 443
2021-01-01 16:46:26,377 DEBUG emulated_hue – Starting mDNS/uPNP discovery broadcast…
Exception in thread Thread-3:
Traceback (most recent call last):
File β€œ/usr/local/lib/python3.8/threading.py”, line 932, in _bootstrap_inner
self.run()
File β€œ/app/emulated_hue/upnp.py”, line 64, in run
ssdp_socket.bind(("", 1900))
OSError: [Errno 98] Address already in use
2021-01-01 16:46:26,415 INFO hass-client – Connected to hassio/homeassistant
2021-01-01 16:46:26,460 DEBUG hass-client – Received area registry.
2021-01-01 16:46:26,460 DEBUG hass-client – Received device registry.
2021-01-01 16:46:26,464 DEBUG hass-client – Received entity registry.
2021-01-01 16:46:46,389 INFO hass-client – Connecting to hassio/homeassistant

Don’t use the emulated hue addon in Home Assistant OS, use the emulated hue integration in configuration.yaml.

I installed it only for test! without this there is the error you can see on the top

Uninstall the addon. The addon is taking up the functionality, stopping the Home Assistant integration from working.

Not better :face_with_monocle:
Logger: homeassistant.setup
Source: components/emulated_hue/upnp.py:84
First occurred: 16:47:20 (1 occurrences)
Last logged: 16:47:20

Error during setup of component emulated_hue
Traceback (most recent call last):
File β€œ/usr/src/homeassistant/homeassistant/setup.py”, line 213, in _async_setup_component
result = await task
File β€œ/usr/src/homeassistant/homeassistant/components/emulated_hue/init.py”, line 128, in async_setup
listen = create_upnp_datagram_endpoint(
File β€œ/usr/src/homeassistant/homeassistant/components/emulated_hue/upnp.py”, line 84, in create_upnp_datagram_endpoint
ssdp_socket.bind(("" if upnp_bind_multicast else host_ip_addr, BROADCAST_PORT))
OSError: [Errno 98] Address in use

  1. Uninstall the addon
  2. Unplug the server
  3. Plug the server in

Same result :face_with_raised_eyebrow:, same message

What port did you set up for Home Assistant? What about the port of emulated hue?

Plex is known to use the same UPNP port used by emulated_hue. Try stopping that and verify if it fixes your issue

Thats it, thanks