Snapcast connection problems

Hi together,

i hope someone can help me on this.
I installed Snapcast server on the same pi as homeassistant. Snapcast itself works and streams music to the Snapcast clients, but i am struggling getting snapcast integrating in to HA, somehow the connection doesn’t work.
Here is my configuration:

media_player:
  - platform: snapcast
    host: 192.168.0.89

In the Snapcast server logs I can see this:

[Notice] ControlServer::NewConnection: 192.168.0.89

HomeAssistant shows this:

ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform snapcast
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 151, in _async_setup_platform
    entity_platform.add_entities, discovery_info
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/snapcast.py", line 43, in setup_platform
    server = snapcast.control.Snapserver(host, port)
  File "/home/homeassistant/.homeassistant/deps/snapcast/control.py", line 164, in __init__
    self.synchronize()
  File "/home/homeassistant/.homeassistant/deps/snapcast/control.py", line 236, in synchronize
    status = self.status()
  File "/home/homeassistant/.homeassistant/deps/snapcast/control.py", line 192, in status
    return self._transact(SERVER_GETSTATUS)
  File "/home/homeassistant/.homeassistant/deps/snapcast/control.py", line 349, in _transact
    raise Exception('No response received')
Exception: No response received

So does someone know what the problem could be?

I would really appreciate an idea, thanks :wink:

I’ve the same issue. It seems that the hardcoded timeout in python-snapcast is too short. There is also an issue with 0.11 and this library: https://github.com/happyleavesaoc/python-snapcast/issues/3

I have the same issue as well did some one sorted this out?