As I clicked “Turn On” media_player for other Chrome casts in the house, it connects fine and works… but for Google Home on HA, I got exception in the log.
I am still searching for solution!!
Mar 07 18:07:46 raspberrypi hass[641]: 17-03-07 18:07:46 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=media_player, service=turn_on, service_data=entity_id=media_player.kitchen_home, service_call_id=1979158704-34>
Mar 07 18:07:46 raspberrypi hass[641]: 17-03-07 18:07:46 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Mar 07 18:07:46 raspberrypi hass[641]: Traceback (most recent call last):
Mar 07 18:07:46 raspberrypi hass[641]: File “/usr/lib/python3.4/asyncio/tasks.py”, line 233, in _step
Mar 07 18:07:46 raspberrypi hass[641]: result = coro.throw(exc)
Mar 07 18:07:46 raspberrypi hass[641]: File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/core.py”, line 1001, in _event_to_service_call
Mar 07 18:07:46 raspberrypi hass[641]: yield from service_handler.func(service_call)
Mar 07 18:07:46 raspberrypi hass[641]: File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/media_player/init.py”, line 365, in async_service_handler
Mar 07 18:07:46 raspberrypi hass[641]: yield from getattr(player, method[‘method’])(**params)
Mar 07 18:07:46 raspberrypi hass[641]: File “/usr/lib/python3.4/asyncio/futures.py”, line 388, in iter
Mar 07 18:07:46 raspberrypi hass[641]: yield self # This tells Task to wait for completion.
Mar 07 18:07:47 raspberrypi hass[641]: File “/usr/lib/python3.4/asyncio/tasks.py”, line 286, in _wakeup
Mar 07 18:07:47 raspberrypi hass[641]: value = future.result()
Mar 07 18:07:47 raspberrypi hass[641]: File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result
Mar 07 18:07:47 raspberrypi hass[641]: raise self._exception
Mar 07 18:07:47 raspberrypi hass[641]: File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run
Mar 07 18:07:47 raspberrypi hass[641]: result = self.fn(*self.args, **self.kwargs)
Mar 07 18:07:47 raspberrypi hass[641]: File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/media_player/cast.py”, line 267, in turn_on
Mar 07 18:07:47 raspberrypi hass[641]: CAST_SPLASH, pychromecast.STREAM_TYPE_BUFFERED)
Mar 07 18:07:47 raspberrypi hass[641]: File “/home/homeassistant/.homeassistant/deps/pychromecast/controllers/media.py”, line 466, in play_media
Mar 07 18:07:47 raspberrypi hass[641]: callback_function=app_launched_callback)
Mar 07 18:07:47 raspberrypi hass[641]: File “/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py”, line 805, in launch_app
Mar 07 18:07:47 raspberrypi hass[641]: self.update_status(lambda response:
Mar 07 18:07:47 raspberrypi hass[641]: File “/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py”, line 796, in update_status
Mar 07 18:07:47 raspberrypi hass[641]: callback_function=callback_function_param)
Mar 07 18:07:47 raspberrypi hass[641]: File “/home/homeassistant/.homeassistant/deps/pychromecast/controllers/init.py”, line 84, in send_message
Mar 07 18:07:47 raspberrypi hass[641]: self.namespace, data, inc_session_id, callback_function)
Mar 07 18:07:47 raspberrypi hass[641]: File “/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py”, line 602, in send_platform_message
Mar 07 18:07:47 raspberrypi hass[641]: inc_session_id, callback_function_param)
Mar 07 18:07:47 raspberrypi hass[641]: File “/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py”, line 589, in send_message
Mar 07 18:07:47 raspberrypi hass[641]: raise NotConnected(“Chromecast is connecting…”)
Mar 07 18:07:47 raspberrypi hass[641]: pychromecast.error.NotConnected: Chromecast is connecting…