I have problem adding Chromecast. I run HA in Docker on LibreELEC and Discover doesn’t find any devices. Same configuration yaml files on Windows 10 running in same network finds both. Both machines run Home Assistant 0.56.2 and exact same configurations
media_player:
- platform: cast
host: 192.168.1.9
- platform: kodi
host: 192.168.1.10
Anyone knows what might be the issue?
2017-10-23 22:45:05 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform cast
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/pychromecast/discovery.py", line 107, in discover_chromecasts
listener, browser = start_discovery(callback)
File "/usr/local/lib/python3.6/site-packages/pychromecast/discovery.py", line 88, in start_discovery
ServiceBrowser(Zeroconf(), "_googlecast._tcp.local.", listener)
File "/usr/local/lib/python3.6/site-packages/zeroconf.py", line 1660, in __init__
self._listen_socket = new_socket()
File "/usr/local/lib/python3.6/site-packages/zeroconf.py", line 1632, in new_socket
s.bind(('', _MDNS_PORT))
OSError: [Errno 98] Address already in use
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/entity_component.py", line 170, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
return fut.result()
File "/usr/local/lib/python3.6/asyncio/futures.py", line 245, in result
raise self._exception
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/app/homeassistant/components/media_player/cast.py", line 80, in setup_platform
all_chromecasts = pychromecast.get_chromecasts()
File "/usr/local/lib/python3.6/site-packages/pychromecast/__init__.py", line 75, in get_chromecasts
hosts = discover_chromecasts()
File "/usr/local/lib/python3.6/site-packages/pychromecast/discovery.py", line 114, in discover_chromecasts
stop_discovery(browser)
UnboundLocalError: local variable 'browser' referenced before assignment
2017-10-23 22:45:15 WARNING (MainThread) [homeassistant.setup] Setup of remote is taking over 10 seconds.