Hi, I ran into an issue and it happens every few days… I found myself to reboot HA to get it working again. I’ve been searching around and couldn’t find any solution so I’m not sure if this problem only occurs on my configuration.
Basically, I have a notification that casts TTS to my Google Home. It works great when it’s actually working; then all of a sudden it stops working.
I checked the log and found this:
> May 02 07:54:12 raspberrypi hass[668]: 17-05-02 07:54:12 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service=play_media, service_data=media_content_id=https://nguyenha.duckdns.org/api/tts_proxy/017db6b5753570bf87c033054e997b5f0c8235d7_en_-_google.mp3, media_content_type=music, entity_id=[‘media_player.kitchen_home’], domain=media_player, service_call_id=1978507824-71>
> May 02 07:54:12 raspberrypi hass[668]: 17-05-02 07:54:12 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
> May 02 07:54:12 raspberrypi hass[668]: Traceback (most recent call last):
> May 02 07:54:12 raspberrypi hass[668]: File “/usr/lib/python3.4/asyncio/tasks.py”, line 233, in _step
> May 02 07:54:12 raspberrypi hass[668]: result = coro.throw(exc)
> May 02 07:54:12 raspberrypi hass[668]: File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/core.py”, line 1010, in _event_to_service_call
> May 02 07:54:12 raspberrypi hass[668]: yield from service_handler.func(service_call)
> May 02 07:54:12 raspberrypi hass[668]: File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/media_player/init.py”, line 365, in async_service_handler
> May 02 07:54:12 raspberrypi hass[668]: yield from getattr(player, method[‘method’])(**params)
> May 02 07:54:12 raspberrypi hass[668]: File “/usr/lib/python3.4/asyncio/futures.py”, line 388, in iter
> May 02 07:54:12 raspberrypi hass[668]: yield self # This tells Task to wait for completion.
> May 02 07:54:12 raspberrypi hass[668]: File “/usr/lib/python3.4/asyncio/tasks.py”, line 286, in _wakeup
> May 02 07:54:12 raspberrypi hass[668]: value = future.result()
> May 02 07:54:12 raspberrypi hass[668]: File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result
> May 02 07:54:12 raspberrypi hass[668]: raise self._exception
> May 02 07:54:12 raspberrypi hass[668]: File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run
> May 02 07:54:12 raspberrypi hass[668]: result = self.fn(*self.args, **self.kwargs)
> May 02 07:54:12 raspberrypi hass[668]: File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/media_player/cast.py”, line 307, in play_media
> May 02 07:54:12 raspberrypi hass[668]: self.cast.media_controller.play_media(media_id, media_type)
> May 02 07:54:12 raspberrypi hass[668]: File “/home/homeassistant/.homeassistant/deps/pychromecast/controllers/media.py”, line 466, in play_media
> May 02 07:54:12 raspberrypi hass[668]: callback_function=app_launched_callback)
> May 02 07:54:12 raspberrypi hass[668]: File “/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py”, line 806, in launch_app
> May 02 07:54:12 raspberrypi hass[668]: self.update_status(lambda response:
> May 02 07:54:12 raspberrypi hass[668]: File “/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py”, line 797, in update_status
> May 02 07:54:12 raspberrypi hass[668]: callback_function=callback_function_param)
> May 02 07:54:12 raspberrypi hass[668]: File “/home/homeassistant/.homeassistant/deps/pychromecast/controllers/init.py”, line 84, in send_message
> May 02 07:54:12 raspberrypi hass[668]: self.namespace, data, inc_session_id, callback_function)
> May 02 07:54:12 raspberrypi hass[668]: File “/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py”, line 603, in send_platform_message
> May 02 07:54:12 raspberrypi hass[668]: inc_session_id, callback_function_param)
> May 02 07:54:12 raspberrypi hass[668]: File “/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py”, line 590, in send_message
> May 02 07:54:12 raspberrypi hass[668]: raise NotConnected(“Chromecast is connecting…”)
> May 02 07:54:12 raspberrypi hass[668]: pychromecast.error.NotConnected: Chromecast is connecting…
Has anyone got a similar issue? I am not sure if it’s a bug or it’s a configuration issue.
Any idea that could help me out?
Thank you.