Media Players

I am new to HA want to use it possibly with wink (moving from Smartthings) I am trying to get my Sonos and Chromecast devices to work. I have tried multiple different methods. I have 2 android TVs and 2 chromecasts. None of the show up even if I only try one at a time. I am using manual detection. If anyone can let me know what im doing wrong. Here is what I have currently

# Googlecast 
mediaplayer:
  - platform: sonos
  - platform: cast
    host: 192.168.86.191
  - platform: cast
    host: 192.168.86.123

Formatting looks off. Try this


# Googlecast 
media_player:
- platform: sonos
- platform: cast
  host: 192.168.86.191
- platform: cast
  host: 192.168.86.123

I am having no luck with this. It says it cant find the media player component.

Last login: Sat May 28 15:52:56 on ttys000
Mac-mini:~ hadley$ hass --open-ui
Config directory: /Users/hadley/.homeassistant
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=turn_off, domain=homeassistant>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=turn_on, domain=homeassistant>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=toggle, domain=homeassistant>
INFO:homeassistant.bootstrap:Home Assistant core initialized
INFO:homeassistant.loader:Loaded logbook from homeassistant.components.logbook
INFO:homeassistant.loader:Loaded recorder from homeassistant.components.recorder
INFO:homeassistant.loader:Loaded http from homeassistant.components.http
INFO:homeassistant.loader:Loaded history from homeassistant.components.history
INFO:homeassistant.loader:Loaded sun from homeassistant.components.sun
INFO:homeassistant.loader:Loaded sensor from homeassistant.components.sensor
INFO:homeassistant.loader:Loaded frontend from homeassistant.components.frontend
INFO:homeassistant.loader:Loaded api from homeassistant.components.api
INFO:homeassistant.loader:Loaded conversation from homeassistant.components.conversation
INFO:homeassistant.loader:Loaded updater from homeassistant.components.updater
ERROR:homeassistant.loader:Unable to find component mediaplayer
INFO:homeassistant.loader:Loaded discovery from homeassistant.components.discovery
INFO:homeassistant.loader:Loaded introduction from homeassistant.components.introduction
INFO:homeassistant.components.introduction:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Hello, and welcome to Home Assistant!

    We'll hope that we can make all your dreams come true.

    Here are some resources to get started:

     - Configuring Home Assistant:
       https://home-assistant.io/getting-started/configuration/

     - Available components:
       https://home-assistant.io/components/

     - Troubleshooting your configuration:
       https://home-assistant.io/getting-started/troubleshooting-configuration/

     - Getting help:
       https://home-assistant.io/help/

    This message is generated by the introduction component. You can
    disable it in configuration.yaml.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=introduction>
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=recorder>
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=http>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=log, domain=logbook>
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=logbook>
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=history>
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): maps.googleapis.com
INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state sun.sun=above_horizon; friendly_name=Sun, next_setting=2016-05-29T02:48:04+00:00, next_rising=2016-05-29T11:59:57+00:00, elevation=53.16 @ 2016-05-28T15:54:35.404287-06:00>, entity_id=sun.sun, old_state=None>
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=sun>
INFO:homeassistant.loader:Loaded sensor.yr from homeassistant.components.sensor.yr
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): maps.googleapis.com
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): api.yr.no
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): api.met.no
INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state sensor.yr_symbol=2; about=Weather forecast from yr.no, delivered by the Norwegian Meteorological Institute and the NRK, friendly_name=yr Symbol, entity_picture=//api.met.no/weatherapi/weathericon/1.1/?symbol=2;content_type=image/png @ 2016-05-28T15:54:36.294755-06:00>, entity_id=sensor.yr_symbol, old_state=None>
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=sensor>
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=api>
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=frontend>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=process, domain=conversation>
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=conversation>
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): pypi.python.org
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=updater>
INFO:homeassistant.util.package:Attempting install of netdisco==0.6.7
Command “/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 -c “import setuptools, tokenize;file=’/private/var/folders/17/t90frj_91mv090jqdg2kcr840000gn/T/pip-build-xuwgleh2/netifaces/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” install --record /var/folders/17/t90frj_91mv090jqdg2kcr840000gn/T/pip-i7avt79k-record/install-record.txt --single-version-externally-managed --compile --home=/var/folders/17/t90frj_91mv090jqdg2kcr840000gn/T/tmpdmzncabv” failed with error code 1 in /private/var/folders/17/t90frj_91mv090jqdg2kcr840000gn/T/pip-build-xuwgleh2/netifaces
ERROR:homeassistant.bootstrap:Not initializing discovery because could not install dependency netdisco==0.6.7
Starting Home-Assistant
INFO:homeassistant.core:Starting Home Assistant (13 threads)
INFO:homeassistant.core:Bus:Handling <Event homeassistant_start[L]>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=stop, domain=homeassistant>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=restart, domain=homeassistant>
INFO:homeassistant.components.http:Starting web interface at http://0.0.0.0:8123
INFO:homeassistant.core:Timer:starting
INFO:homeassistant.components.http:“GET /api/stream?api_password=no_password_set&restrict=state_changed,component_loaded,service_registered HTTP/1.1” 200 -
INFO:homeassistant.components.http:“GET /api/bootstrap HTTP/1.1” 200 -
INFO:homeassistant.components.http:“GET / HTTP/1.1” 200 -
INFO:homeassistant.components.http:“GET /api/bootstrap HTTP/1.1” 200 -
INFO:homeassistant.components.http:“GET /api/stream?api_password=no_password_set&restrict=state_changed,component_loaded,service_registered HTTP/1.1” 200 -
INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state sun.sun=above_horizon; friendly_name=Sun, next_setting=2016-05-29T02:48:04+00:00, next_rising=2016-05-29T11:59:57+00:00, elevation=53.0 @ 2016-05-28T15:54:35.404287-06:00>, entity_id=sun.sun, old_state=<state sun.sun=above_horizon; friendly_name=Sun, next_setting=2016-05-29T02:48:04+00:00, next_rising=2016-05-29T11:59:57+00:00, elevation=53.16 @ 2016-05-28T15:54:35.404287-06:00>>
INFO:homeassistant.components.api:Found broken event stream to 192.168.86.126, cleaning up
INFO:homeassistant.components.api:Found broken event stream to 192.168.86.126, cleaning up

ERROR:homeassistant.bootstrap:Not initializing discovery because could not install dependency netdisco==0.6.7

I get that error all the time on my Windows installation yet discovery found everything. Huh? Even have a known devices file.

try

media_player:
  - platform: cast
    host: 192.168.1.9
  - platfor....

Note the _ in media_player

Facepalm. A silly underscore…

But now

INFO:homeassistant.util.package:Attempting install of pychromecast==0.7.2
Command “/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 -u -c “import setuptools, tokenize;file=’/private/var/folders/17/t90frj_91mv090jqdg2kcr840000gn/T/pip-build-paqfj7m4/netifaces/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” install --record /var/folders/17/t90frj_91mv090jqdg2kcr840000gn/T/pip-myid65xn-record/install-record.txt --single-version-externally-managed --compile --home=/var/folders/17/t90frj_91mv090jqdg2kcr840000gn/T/tmpzyyj0dj2” failed with error code 1 in /private/var/folders/17/t90frj_91mv090jqdg2kcr840000gn/T/pip-build-paqfj7m4/netifaces/
ERROR:homeassistant.bootstrap:Not initializing media_player.cast because could not install dependency pychromecast==0.7.2

I even tried to install pychromecast.

Other commands I tried
sudo pip3 install py3-protobuffers
sudo pip3 install pychromecast

pip3 install homeassistant
pip3 install --upgrade pip

Do

sudo pip3 install homeassistant
sudo pip3 install --upgrade pip

I have been having recent mediaplayer issues as well (2 chromecasts in the house, HA only finds one. LGWEBOSTV not recognized either)

Ya It says already installed and that I’m up to date. But still says cant run media_player because it can’t install pychromecast even though I have manually installed it.

Same problem here, on a Windows installation. It’s a big bummer since connecting to my Google Home was the main reason I installed this. It’s sad that there’s no warning on HA’s site stating that a Windows installation is prone to have compatibility issues. Time to install it on a Raspberry Pi I guess…

2 Likes