Configuration Issue with Sonos

Hi,

I got hass installed on my RPi and it seems to be starting up ok. I noticed that I get the following entry in the log:16-02-05 17:10:22 homeassistant.components.media_player: Error while setting up platform sonos Traceback (most recent call last): File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 146, in _setup_platform self.hass, platform_config, self.add_entities, discovery_info) File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/media_player/sonos.py", line 44, in setup_platform add_devices([SonosDevice(hass, soco.SoCo(discovery_info))]) File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/media_player/sonos.py", line 79, in __init__ self.update() File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/media_player/sonos.py", line 113, in update ' (R)', '').replace(' (L)', '') TypeError: 'NoneType' object is not subscriptable and then every 10 seconds, I get the following:16-02-05 17:11:00 homeassistant.components.media_player: Updating media_player entities 16-02-05 17:11:00 urllib3.connectionpool: Starting new HTTP connection (1): 192.168.0.131 16-02-05 17:11:00 urllib3.connectionpool: Starting new HTTP connection (1): 192.168.0.131 16-02-05 17:11:00 urllib3.connectionpool: Starting new HTTP connection (1): 192.168.0.131 16-02-05 17:11:01 urllib3.connectionpool: Starting new HTTP connection (1): 192.168.0.131 16-02-05 17:11:01 urllib3.connectionpool: Starting new HTTP connection (1): 192.168.0.131 16-02-05 17:11:01 urllib3.connectionpool: Starting new HTTP connection (1): 192.168.0.131 16-02-05 17:11:01 urllib3.connectionpool: Starting new HTTP connection (1): 192.168.0.210 16-02-05 17:11:01 urllib3.connectionpool: Starting new HTTP connection (1): 192.168.0.210 16-02-05 17:11:01 urllib3.connectionpool: Starting new HTTP connection (1): 192.168.0.210 16-02-05 17:11:01 urllib3.connectionpool: Starting new HTTP connection (1): 192.168.0.210 16-02-05 17:11:01 urllib3.connectionpool: Starting new HTTP connection (1): 192.168.0.210 16-02-05 17:11:01 urllib3.connectionpool: Starting new HTTP connection (1): 192.168.0.210 16-02-05 17:11:01 urllib3.connectionpool: Starting new HTTP connection (1): 192.168.0.213 16-02-05 17:11:01 urllib3.connectionpool: Starting new HTTP connection (1): 192.168.0.213 16-02-05 17:11:01 urllib3.connectionpool: Starting new HTTP connection (1): 192.168.0.213 16-02-05 17:11:01 urllib3.connectionpool: Starting new HTTP connection (1): 192.168.0.213 16-02-05 17:11:01 urllib3.connectionpool: Starting new HTTP connection (1): 192.168.0.213 16-02-05 17:11:02 urllib3.connectionpool: Starting new HTTP connection (1): 192.168.0.213 16-02-05 17:11:02 urllib3.connectionpool: Starting new HTTP connection (1): 192.168.0.214 16-02-05 17:11:02 urllib3.connectionpool: Starting new HTTP connection (1): 192.168.0.214 16-02-05 17:11:02 urllib3.connectionpool: Starting new HTTP connection (1): 192.168.0.214 16-02-05 17:11:02 urllib3.connectionpool: Starting new HTTP connection (1): 192.168.0.214 16-02-05 17:11:02 urllib3.connectionpool: Starting new HTTP connection (1): 192.168.0.214 16-02-05 17:11:02 urllib3.connectionpool: Starting new HTTP connection (1): 192.168.0.214 Those IP addresses are the IP addresses which correspond to the Sonos devices on my network.

For the time being, I don’t really want to use hass for controlling my Sonos stuff, so my question is how do I disable that?

So far, my configuration file is just the default one that hass creates.

Hi!

I think you need to disable discovery in your config. See the first paragraph here:

home-assistant.io/getting-started/devices/

ok - so is it possible to disable discovery for just the Sonos stuff?

Or do I have to turn it off for everything?

Maybe I just need to enable it when adding new stuff (so it discovers the non-Sonos things) and then disable it once things are configured?

Do you have a mediaplayer section with sonos in your config? Otherwise I don’t think it should try to setup that platform.

Nope. My entire configuration looks like this:[code]homeassistant:

Name of the location where Home Assistant is running

name: Home

Location required to calculate the time the sun rises and sets

latitude: 50.9
longitude: -119.4

C for Celcius, F for Fahrenheit

temperature_unit: C

Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones

time_zone: America/Vancouver

Show links to resources in log and frontend

introduction:

Enables the frontend

frontend:

Allows you to issue voice commands from the frontend

conversation:

View all events in a logbook

logbook:

Discover some devices automatically

discovery:

Track the sun

sun:

Enables support for tracking state changes over time.

history:

Checks for available updates

updater:
[/code]

Commenting out the discovery stopped the log messages which showed up every 10 seconds.

OK. I think you should file an issue at
github.com/balloob/home-assistant
and describe the problem. I don’t think home assistant should try to load the sonos platform without the corresponding section in config. To me, that sounds as a bug, or a design flaw.