I can’t see my media players on my front end anymore. Discovery was working fine in HA 0.37. since I have upgraded it is now not working, is there anything one can do to resolve this issue? I have no security on the Squeezebox server and the port is set to the default DLI 9090.
Thanks for any assistance.
Below is the error Log:
17-02-20 10:37:50 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform squeezebox
Traceback (most recent call last):
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 146, in _async_setup_platform
entity_platform.async_add_entities, discovery_info
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/media_player/squeezebox.py", line 56, in async_setup_platform
host = discovery_info[0]
KeyError: 0
The Squeeze component recently switched from using CLI to using the JSON interface (but that was before .37). Do you have a port specified in your config or are you relying completely on discovery?
When I upgraded, I ended up simply commenting-out my port line from the config. So I have:
17-02-20 13:40:34 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform squeezebox
Traceback (most recent call last):
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 146, in _async_setup_platform
entity_platform.async_add_entities, discovery_info
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/media_player/squeezebox.py", line 87, in async_setup_platform
players = yield from lms.create_players()
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/media_player/squeezebox.py", line 108, in create_players
data = yield from self.async_query('players', 'status')
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/media_player/squeezebox.py", line 139, in async_query
auth=auth)
File "/home/hass/.homeassistant/deps/aiohttp/client.py", line 577, in __iter__
resp = yield from self._coro
File "/home/hass/.homeassistant/deps/aiohttp/client.py", line 213, in _request
proxy=proxy, proxy_auth=proxy_auth, timer=timer)
File "/home/hass/.homeassistant/deps/aiohttp/client_reqrep.py", line 73, in __init__
assert isinstance(url, URL), url
AssertionError: http://192.168.1.64:9000/jsonrpc.js
17-02-20 13:40:55 ERROR (Thread-14) [netdisco.ssdp] Found malformed XML at http://192.168.1.128:49153/description15.xml:
17-02-20 13:40:55 ERROR (Thread-14) [netdisco.ssdp] Found malformed XML at http://192.168.1.128:49153/description14.xml:
17-02-20 13:40:55 ERROR (Thread-14) [netdisco.ssdp] Found malformed XML at http://192.168.1.128:49153/description13.xml:
17-02-20 13:40:57 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform squeezebox
Traceback (most recent call last):
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 146, in _async_setup_platform
entity_platform.async_add_entities, discovery_info
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/media_player/squeezebox.py", line 56, in async_setup_platform
host = discovery_info[0]
KeyError: 0
I don’t think it’s related to emulated_hue. Looks like you’ve got things set up correctly. What happens if you turn off discovery? Doe the media_player show up (since you’ve manually added it to your config)?
Also - when adding media_server, make sure you haven’t accidentally duplicated that key if you already have a media_server configured elsewhere. Multiple media_servers should all be a list under “media_server:”
I have tried taking out the discovery in the config. I am still getting an error, albeit different (just the last bit for the squeezebox error but thought it might be relevant).
17-02-20 16:01:12 WARNING (Thread-5) [homeassistant.components.emulated_hue] When targetting Google Home, listening port has to be port 80
17-02-20 16:01:14 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform yr
Traceback (most recent call last):
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 146, in _async_setup_platform
entity_platform.async_add_entities, discovery_info
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/sensor/yr.py", line 88, in async_setup_platform
yield from weather.async_update()
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/sensor/yr.py", line 169, in async_update
params=self._urlparams)
File "/home/hass/.homeassistant/deps/aiohttp/client.py", line 577, in __iter__
resp = yield from self._coro
File "/home/hass/.homeassistant/deps/aiohttp/client.py", line 213, in _request
proxy=proxy, proxy_auth=proxy_auth, timer=timer)
File "/home/hass/.homeassistant/deps/aiohttp/client_reqrep.py", line 73, in __init__
assert isinstance(url, URL), url
AssertionError: https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/1.9/
17-02-20 16:01:15 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform squeezebox
Traceback (most recent call last):
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 146, in _async_setup_platform
entity_platform.async_add_entities, discovery_info
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/media_player/squeezebox.py", line 87, in async_setup_platform
players = yield from lms.create_players()
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/media_player/squeezebox.py", line 108, in create_players
data = yield from self.async_query('players', 'status')
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/media_player/squeezebox.py", line 139, in async_query
auth=auth)
File "/home/hass/.homeassistant/deps/aiohttp/client.py", line 577, in __iter__
resp = yield from self._coro
File "/home/hass/.homeassistant/deps/aiohttp/client.py", line 213, in _request
proxy=proxy, proxy_auth=proxy_auth, timer=timer)
File "/home/hass/.homeassistant/deps/aiohttp/client_reqrep.py", line 73, in __init__
assert isinstance(url, URL), url
AssertionError: http://192.168.1.64:9000/jsonrpc.js