I am constantly getting issues with my Chromecast devices in HA… has been happening for a long time and I can’t find a solution. Only thing that works is a restart of HA (which is a huge pain!).
I can use my Chromecast (google Home) device just fine… then I start getting on a random device:
“Call-service API error. Error Message: Chromecast 10.x.x.x:8009 is connecting”
I get the same error if trying from the HA GUI directly as well
2019-09-12 07:54:04 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.140249954493664] Chromecast 10.x:8009 is connecting...
Traceback (most recent call last):
File "/home/vmware/homeassistant/lib/python3.6/site-packages/homeassistant/components/websocket_api/commands.py", line 130, in handle_call_service
connection.context(msg),
File "/home/vmware/homeassistant/lib/python3.6/site-packages/homeassistant/core.py", line 1235, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
File "/home/vmware/homeassistant/lib/python3.6/site-packages/homeassistant/core.py", line 1260, in _execute_service
await handler.func(service_call)
File "/home/vmware/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 210, in handle_service
self._platforms.values(), func, call, service_name, required_features
File "/home/vmware/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/service.py", line 349, in entity_service_call
future.result() # pop exception if have
File "/home/vmware/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/service.py", line 371, in _handle_service_platform_call
await getattr(entity, func)(**data)
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/vmware/homeassistant/lib/python3.6/site-packages/homeassistant/components/cast/media_player.py", line 1005, in turn_on
self._chromecast.play_media(CAST_SPLASH, pychromecast.STREAM_TYPE_BUFFERED)
File "/home/vmware/homeassistant/lib/python3.6/site-packages/pychromecast/controllers/media.py", line 523, in play_media
callback_function=app_launched_callback)
File "/home/vmware/homeassistant/lib/python3.6/site-packages/pychromecast/socket_client.py", line 935, in launch_app
self.update_status(lambda response:
File "/home/vmware/homeassistant/lib/python3.6/site-packages/pychromecast/socket_client.py", line 926, in update_status
callback_function=callback_function_param)
File "/home/vmware/homeassistant/lib/python3.6/site-packages/pychromecast/controllers/__init__.py", line 84, in send_message
self.namespace, data, inc_session_id, callback_function)
File "/home/vmware/homeassistant/lib/python3.6/site-packages/pychromecast/socket_client.py", line 725, in send_platform_message
inc_session_id, callback_function_param)
File "/home/vmware/homeassistant/lib/python3.6/site-packages/pychromecast/socket_client.py", line 719, in send_message
str(self.port) + " is connecting...")
pychromecast.error.NotConnected: Chromecast 10.x:8009 is connecting...
There must be a “clean” way to reset a single Chrome device rather than reboot HA?