Thanks for the suggestions. I tried your idea of removing the defined IP’s and that does seem to make HASS take less time to start up. However, the duplicate “all home speakers” group still shows up (in fact, now there’s a triplicate group!).
I recently learned that discover:
has an option to ignore components. I’m considering implementing discover: ignore: for CCA’s and then defining them again. I’ll let yo know if that fixes connectivity.
I’m still getting these random connection errors too. When I run a script to turn on, turn up volume, and play a link, I still get a slew of errors related to NotConnected("Chromecast is connecting...")
It turns out, now it seems, that I have to restart HASS to get the devices to work again, rather than play a stream through an iPhone/Chromecast app. So that appears to be slightly different behavior than when I was using CCA IP’s.
Here my full log just in case it’s helpful somehow
2017-06-26 10:26:50 WARNING (MainThread) [homeassistant.setup] Setup of media_player is taking over 10 seconds.
2017-06-26 10:26:51 WARNING (MainThread) [homeassistant.components.media_player] Setup of platform cast is taking over 10 seconds.
2017-06-26 11:48:20 WARNING (Thread-15) [pychromecast.socket_client] Heartbeat timeout, resetting connection
2017-06-26 11:50:29 WARNING (Thread-15) [pychromecast.socket_client] Heartbeat timeout, resetting connection
2017-06-26 12:30:23 ERROR (Thread-17) [pychromecast.socket_client] Error reading from socket.
2017-06-26 12:30:23 WARNING (Thread-17) [pychromecast.socket_client] Error communicating with socket, resetting connection
2017-06-26 12:30:23 ERROR (Thread-17) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-26 12:46:26 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal read error on SSL transport
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/selector_events.py", line 825, in _read_ready
data = self._sock.recv(self.max_size)
File "/usr/lib/python3.4/ssl.py", line 730, in recv
return self.read(buflen)
File "/usr/lib/python3.4/ssl.py", line 619, in read
v = self._sslobj.read(len or 1024)
OSError: [Errno 113] No route to host
2017-06-26 17:55:18 ERROR (Thread-22) [pychromecast.socket_client] Error reading from socket.
2017-06-26 17:55:18 WARNING (Thread-22) [pychromecast.socket_client] Error communicating with socket, resetting connection
2017-06-26 17:55:18 ERROR (Thread-22) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-26 18:17:52 WARNING (MainThread) [homeassistant.helpers.entity] Update for media_player.tv_pc is already in progress
2017-06-26 18:17:54 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
result = coro.throw(exc)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/core.py", line 1021, in _event_to_service_call
yield from service_handler.func(service_call)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 389, in async_service_handler
yield from getattr(player, method['method'])(**params)
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/cast.py", line 273, in turn_off
self.cast.quit_app()
File "/home/homeassistant/.homeassistant/deps/pychromecast/__init__.py", line 273, in quit_app
self.socket_client.receiver_controller.stop_app()
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 845, in stop_app
inc_session_id=True, callback_function=callback_function_param)
File "/home/homeassistant/.homeassistant/deps/pychromecast/controllers/__init__.py", line 84, in send_message
self.namespace, data, inc_session_id, callback_function)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 603, in send_platform_message
inc_session_id, callback_function_param)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 554, in send_message
self._ensure_channel_connected(destination_id)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 640, in _ensure_channel_connected
no_add_request_id=True)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 590, in send_message
raise NotConnected("Chromecast is connecting...")
pychromecast.error.NotConnected: Chromecast is connecting...
2017-06-26 18:20:53 ERROR (Thread-3) [homeassistant.components.switch.broadlink] Input strings must be a multiple of 16 in length
2017-06-26 18:20:54 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
result = coro.throw(exc)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/core.py", line 1021, in _event_to_service_call
yield from service_handler.func(service_call)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 389, in async_service_handler
yield from getattr(player, method['method'])(**params)
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/cast.py", line 269, in turn_on
CAST_SPLASH, pychromecast.STREAM_TYPE_BUFFERED)
File "/home/homeassistant/.homeassistant/deps/pychromecast/controllers/media.py", line 466, in play_media
callback_function=app_launched_callback)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 806, in launch_app
self.update_status(lambda response:
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 797, in update_status
callback_function=callback_function_param)
File "/home/homeassistant/.homeassistant/deps/pychromecast/controllers/__init__.py", line 84, in send_message
self.namespace, data, inc_session_id, callback_function)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 603, in send_platform_message
inc_session_id, callback_function_param)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 590, in send_message
raise NotConnected("Chromecast is connecting...")
pychromecast.error.NotConnected: Chromecast is connecting...
2017-06-26 21:02:36 ERROR (Thread-27) [pychromecast.socket_client] Error reading from socket.
2017-06-26 21:02:36 WARNING (Thread-27) [pychromecast.socket_client] Error communicating with socket, resetting connection
2017-06-26 21:02:36 ERROR (Thread-27) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-26 22:03:48 ERROR (Thread-22) [pychromecast.socket_client] Error reading from socket.
2017-06-26 22:03:48 WARNING (Thread-22) [pychromecast.socket_client] Error communicating with socket, resetting connection
2017-06-26 22:03:48 ERROR (Thread-22) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-26 22:12:48 ERROR (Thread-27) [pychromecast.socket_client] Error reading from socket.
2017-06-26 22:12:48 WARNING (Thread-27) [pychromecast.socket_client] Error communicating with socket, resetting connection
2017-06-26 22:12:48 ERROR (Thread-27) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-26 22:13:48 ERROR (Thread-17) [pychromecast.socket_client] Error reading from socket.
2017-06-26 22:13:48 WARNING (Thread-17) [pychromecast.socket_client] Error communicating with socket, resetting connection
2017-06-26 22:13:48 ERROR (Thread-17) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-26 22:29:28 ERROR (Thread-27) [pychromecast.socket_client] Error reading from socket.
2017-06-26 22:29:28 WARNING (Thread-27) [pychromecast.socket_client] Error communicating with socket, resetting connection
2017-06-26 22:29:28 ERROR (Thread-27) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-26 23:57:04 ERROR (Thread-22) [pychromecast.socket_client] Error reading from socket.
2017-06-26 23:57:04 WARNING (Thread-22) [pychromecast.socket_client] Error communicating with socket, resetting connection
2017-06-26 23:57:04 ERROR (Thread-22) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-27 00:11:07 ERROR (Thread-27) [pychromecast.socket_client] Error reading from socket.
2017-06-27 00:11:07 WARNING (Thread-27) [pychromecast.socket_client] Error communicating with socket, resetting connection
2017-06-27 00:11:07 ERROR (Thread-27) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-27 00:45:27 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
result = coro.throw(exc)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/core.py", line 1021, in _event_to_service_call
yield from service_handler.func(service_call)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 389, in async_service_handler
yield from getattr(player, method['method'])(**params)
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/cast.py", line 273, in turn_off
self.cast.quit_app()
File "/home/homeassistant/.homeassistant/deps/pychromecast/__init__.py", line 273, in quit_app
self.socket_client.receiver_controller.stop_app()
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 845, in stop_app
inc_session_id=True, callback_function=callback_function_param)
File "/home/homeassistant/.homeassistant/deps/pychromecast/controllers/__init__.py", line 84, in send_message
self.namespace, data, inc_session_id, callback_function)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 603, in send_platform_message
inc_session_id, callback_function_param)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 554, in send_message
self._ensure_channel_connected(destination_id)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 640, in _ensure_channel_connected
no_add_request_id=True)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 590, in send_message
raise NotConnected("Chromecast is connecting...")
pychromecast.error.NotConnected: Chromecast is connecting...
2017-06-27 01:01:04 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal read error on SSL transport
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/selector_events.py", line 825, in _read_ready
data = self._sock.recv(self.max_size)
File "/usr/lib/python3.4/ssl.py", line 730, in recv
return self.read(buflen)
File "/usr/lib/python3.4/ssl.py", line 619, in read
v = self._sslobj.read(len or 1024)
OSError: [Errno 113] No route to host
2017-06-27 01:16:14 ERROR (Thread-22) [pychromecast.socket_client] Error reading from socket.
2017-06-27 01:16:14 WARNING (Thread-22) [pychromecast.socket_client] Error communicating with socket, resetting connection
2017-06-27 01:16:14 ERROR (Thread-22) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-27 02:03:49 ERROR (Thread-17) [pychromecast.socket_client] Error reading from socket.
2017-06-27 02:03:49 WARNING (Thread-17) [pychromecast.socket_client] Error communicating with socket, resetting connection
2017-06-27 02:03:49 ERROR (Thread-17) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-27 02:04:14 WARNING (Thread-19) [pychromecast.socket_client] Heartbeat timeout, resetting connection
2017-06-27 02:04:18 WARNING (Thread-24) [pychromecast.socket_client] Heartbeat timeout, resetting connection
2017-06-27 02:04:19 WARNING (Thread-14) [pychromecast.socket_client] Heartbeat timeout, resetting connection
2017-06-27 02:04:44 ERROR (Thread-19) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-27 02:04:48 ERROR (Thread-24) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-27 02:04:49 ERROR (Thread-14) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-27 02:05:07 ERROR (Thread-22) [pychromecast.socket_client] Error reading from socket.
2017-06-27 02:05:07 WARNING (Thread-22) [pychromecast.socket_client] Error communicating with socket, resetting connection
2017-06-27 02:05:07 ERROR (Thread-22) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-27 02:18:47 WARNING (Thread-20) [pychromecast.socket_client] Heartbeat timeout, resetting connection
2017-06-27 02:18:47 WARNING (Thread-15) [pychromecast.socket_client] Heartbeat timeout, resetting connection
2017-06-27 02:18:49 WARNING (Thread-23) [pychromecast.socket_client] Heartbeat timeout, resetting connection
2017-06-27 02:18:52 ERROR (Thread-23) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-27 02:18:54 ERROR (Thread-20) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-27 02:18:54 ERROR (Thread-15) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-27 02:19:03 ERROR (Thread-17) [pychromecast.socket_client] Error reading from socket.
2017-06-27 02:19:03 WARNING (Thread-17) [pychromecast.socket_client] Error communicating with socket, resetting connection
2017-06-27 02:19:03 ERROR (Thread-17) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-27 02:34:27 WARNING (Thread-18) [pychromecast.socket_client] Heartbeat timeout, resetting connection
2017-06-27 02:34:30 WARNING (Thread-25) [pychromecast.socket_client] Heartbeat timeout, resetting connection
2017-06-27 02:34:33 WARNING (Thread-13) [pychromecast.socket_client] Heartbeat timeout, resetting connection
2017-06-27 02:34:57 ERROR (Thread-18) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-27 02:35:00 ERROR (Thread-25) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-27 02:35:03 ERROR (Thread-13) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-27 02:35:30 ERROR (Thread-27) [pychromecast.socket_client] Error reading from socket.
2017-06-27 02:35:30 WARNING (Thread-27) [pychromecast.socket_client] Error communicating with socket, resetting connection
2017-06-27 02:35:30 ERROR (Thread-27) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-27 03:03:26 WARNING (Thread-16) [pychromecast.socket_client] Heartbeat timeout, resetting connection
2017-06-27 03:03:31 WARNING (Thread-26) [pychromecast.socket_client] Heartbeat timeout, resetting connection
2017-06-27 03:03:34 WARNING (Thread-21) [pychromecast.socket_client] Heartbeat timeout, resetting connection
2017-06-27 03:03:38 ERROR (Thread-21) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-27 03:03:38 ERROR (Thread-26) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-27 04:56:13 ERROR (Thread-22) [pychromecast.socket_client] Error reading from socket.
2017-06-27 04:56:13 WARNING (Thread-22) [pychromecast.socket_client] Error communicating with socket, resetting connection
2017-06-27 04:56:13 ERROR (Thread-22) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-27 04:56:26 ERROR (Thread-17) [pychromecast.socket_client] Error reading from socket.
2017-06-27 04:56:26 WARNING (Thread-17) [pychromecast.socket_client] Error communicating with socket, resetting connection
2017-06-27 04:56:26 ERROR (Thread-17) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-27 04:59:16 ERROR (Thread-27) [pychromecast.socket_client] Error reading from socket.
2017-06-27 04:59:16 WARNING (Thread-27) [pychromecast.socket_client] Error communicating with socket, resetting connection
2017-06-27 04:59:16 ERROR (Thread-27) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-06-27 09:00:04 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
result = coro.throw(exc)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/core.py", line 1021, in _event_to_service_call
yield from service_handler.func(service_call)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 389, in async_service_handler
yield from getattr(player, method['method'])(**params)
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/cast.py", line 269, in turn_on
CAST_SPLASH, pychromecast.STREAM_TYPE_BUFFERED)
File "/home/homeassistant/.homeassistant/deps/pychromecast/controllers/media.py", line 466, in play_media
callback_function=app_launched_callback)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 806, in launch_app
self.update_status(lambda response:
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 797, in update_status
callback_function=callback_function_param)
File "/home/homeassistant/.homeassistant/deps/pychromecast/controllers/__init__.py", line 84, in send_message
self.namespace, data, inc_session_id, callback_function)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 603, in send_platform_message
inc_session_id, callback_function_param)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 554, in send_message
self._ensure_channel_connected(destination_id)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 640, in _ensure_channel_connected
no_add_request_id=True)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 590, in send_message
raise NotConnected("Chromecast is connecting...")
pychromecast.error.NotConnected: Chromecast is connecting...
2017-06-27 09:00:15 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
result = coro.throw(exc)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/core.py", line 1021, in _event_to_service_call
yield from service_handler.func(service_call)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 389, in async_service_handler
yield from getattr(player, method['method'])(**params)
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/cast.py", line 309, in play_media
self.cast.media_controller.play_media(media_id, media_type)
File "/home/homeassistant/.homeassistant/deps/pychromecast/controllers/media.py", line 466, in play_media
callback_function=app_launched_callback)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 806, in launch_app
self.update_status(lambda response:
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 797, in update_status
callback_function=callback_function_param)
File "/home/homeassistant/.homeassistant/deps/pychromecast/controllers/__init__.py", line 84, in send_message
self.namespace, data, inc_session_id, callback_function)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 603, in send_platform_message
inc_session_id, callback_function_param)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 590, in send_message
raise NotConnected("Chromecast is connecting...")
pychromecast.error.NotConnected: Chromecast is connecting...
2017-06-27 09:41:07 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
result = coro.throw(exc)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/core.py", line 1021, in _event_to_service_call
yield from service_handler.func(service_call)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 389, in async_service_handler
yield from getattr(player, method['method'])(**params)
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/cast.py", line 309, in play_media
self.cast.media_controller.play_media(media_id, media_type)
File "/home/homeassistant/.homeassistant/deps/pychromecast/controllers/media.py", line 466, in play_media
callback_function=app_launched_callback)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 806, in launch_app
self.update_status(lambda response:
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 797, in update_status
callback_function=callback_function_param)
File "/home/homeassistant/.homeassistant/deps/pychromecast/controllers/__init__.py", line 84, in send_message
self.namespace, data, inc_session_id, callback_function)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 603, in send_platform_message
inc_session_id, callback_function_param)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 590, in send_message
raise NotConnected("Chromecast is connecting...")
pychromecast.error.NotConnected: Chromecast is connecting...
2017-06-27 09:47:18 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
result = coro.throw(exc)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/core.py", line 1021, in _event_to_service_call
yield from service_handler.func(service_call)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 389, in async_service_handler
yield from getattr(player, method['method'])(**params)
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/cast.py", line 309, in play_media
self.cast.media_controller.play_media(media_id, media_type)
File "/home/homeassistant/.homeassistant/deps/pychromecast/controllers/media.py", line 466, in play_media
callback_function=app_launched_callback)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 806, in launch_app
self.update_status(lambda response:
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 797, in update_status
callback_function=callback_function_param)
File "/home/homeassistant/.homeassistant/deps/pychromecast/controllers/__init__.py", line 84, in send_message
self.namespace, data, inc_session_id, callback_function)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 603, in send_platform_message
inc_session_id, callback_function_param)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 590, in send_message
raise NotConnected("Chromecast is connecting...")
pychromecast.error.NotConnected: Chromecast is connecting...
2017-06-27 10:21:39 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
result = coro.throw(exc)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/core.py", line 1021, in _event_to_service_call
yield from service_handler.func(service_call)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 389, in async_service_handler
yield from getattr(player, method['method'])(**params)
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/cast.py", line 309, in play_media
self.cast.media_controller.play_media(media_id, media_type)
File "/home/homeassistant/.homeassistant/deps/pychromecast/controllers/media.py", line 466, in play_media
callback_function=app_launched_callback)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 806, in launch_app
self.update_status(lambda response:
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 797, in update_status
callback_function=callback_function_param)
File "/home/homeassistant/.homeassistant/deps/pychromecast/controllers/__init__.py", line 84, in send_message
self.namespace, data, inc_session_id, callback_function)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 603, in send_platform_message
inc_session_id, callback_function_param)
File "/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py", line 590, in send_message
raise NotConnected("Chromecast is connecting...")
pychromecast.error.NotConnected: Chromecast is connecting...
I’ll keep you posted if I find out any more.