I’ve already got a container listening on the same IP on port 1900 so I need to use something else. I’ve tried loads of combinations of the available options but I can’t get past the following:
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/src/app/homeassistant/components/emulated_hue/upnp.py", line 124, in run
ssdp_socket.bind((self.host_ip_addr, 1900))
OSError: [Errno 98] Address already in use
This typically means there some name confliction for alexa. I’ve had that issue where she doesn’t discover anything because there’s a naming confliction. Also, phillips hue bridge has a limit of ~55-64 (might be wrong on the exact number) lights. I’ve noticed that alexa will not find devices when I send a large number of devices to emulated hue.
I run hassio inside a deciated ubuntu vm. So my setup is not quite standard, but on the other hand it somewhat mimics the official hassio vm setup. My error looks quite similar:
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
As the error massage says Address already in use, I also changed the ports a little but but that didn’t help. turning off upnp_bind_multicast also changed nothing. I also deleted the config/emulated_hue_ids.json. Any suggestions how to get this to work.
Putting home_assistant on port 80 and use port 80 is not really an option for me, as I’m also running an nginx proxy, that obviously catches that port. Also I think port 80 is only needed for google, and I don’t plan on using that. Are there any other suggestions?