Hi All,
It was working fine until the last update yesterday. I’m getting an error when trying to cast lovelace view to a google nest hub.
service: cast.show_lovelace_view
data:
entity_id: media_player.office_display
dashboard_path: lovelace
view_path: garage
The nest hub starts casting and shows the nabu casa screen and says “Connected” but stays on that screen and doesn’t show the lovelace view.
Here’s an error in my log:
Exception in _handle_signal_show_view when dispatching ‘cast_show_view’: (<pychromecast.controllers.homeassistant.HomeAssistantController object at 0x7f079f98d870>, ‘media_player.office_display’, ‘garage’, ‘lovelace’) Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/components/cast/media_player.py”, line 979, in _handle_signal_show_view self._hass_cast_controller.show_lovelace_view(view_path, url_path) File “/usr/local/lib/python3.10/site-packages/pychromecast/controllers/homeassistant.py”, line 128, in show_lovelace_view File “/usr/local/lib/python3.10/site-packages/pychromecast/controllers/homeassistant.py”, line 145, in _send_connected_message File “/usr/local/lib/python3.10/site-packages/pychromecast/controllers/homeassistant.py”, line 107, in _connect_hass ) pychromecast.error.PyChromecastError
I’ve seen a few different variations in the above error message. I tried reinstalling the cast integration.
CATT works fine when I cast to that device but I want to use the built-in method
Same here, can no longer cast Lovelace dashboards to Google hubs…
2022-12-12 15:15:01.428 ERROR (Thread-7) [pychromecast.socket_client] [Living Room Hub(192.168.10.182):8009] Exception caught while sending message to controller HomeAssistantController: Message urn:x-cast:com.nabucasa.hast from 44717b6b-1463-4a57-889d-5c649f0718d9 to sender-0: {'type': 'receiver_status', 'connected': True, 'showDemo': False, 'hassUrl': 'https://myinstall.duckdns.org:8123', 'lovelacePath': None}
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/pychromecast/socket_client.py", line 721, in _route_message
handled = handler.receive_message(message, data)
File "/usr/local/lib/python3.10/site-packages/pychromecast/controllers/homeassistant.py", line 69, in receive_message
if was_connected or not self.hass_connected:
File "/usr/local/lib/python3.10/site-packages/pychromecast/controllers/homeassistant.py", line 50, in hass_connected
and self.status["hassUUID"] == self.hass_uuid
KeyError: 'hassUUID'
2022-12-12 15:15:06.870 WARNING (SyncWorker_7) [pychromecast.controllers] _connect_hass failed for https://myinstall.duckdns.org:8123
2022-12-12 15:15:06.884 ERROR (SyncWorker_7) [homeassistant.util.logging] Exception in _handle_signal_show_view when dispatching 'cast_show_view': (<pychromecast.controllers.homeassistant.HomeAssistantController object at 0x7f504e9cf0>, 'media_player.living_room_hub', '0', 'lovelace-power')
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 979, in _handle_signal_show_view
self._hass_cast_controller.show_lovelace_view(view_path, url_path)
File "/usr/local/lib/python3.10/site-packages/pychromecast/controllers/homeassistant.py", line 128, in show_lovelace_view
self._send_connected_message(
File "/usr/local/lib/python3.10/site-packages/pychromecast/controllers/homeassistant.py", line 145, in _send_connected_message
self._connect_hass(
File "/usr/local/lib/python3.10/site-packages/pychromecast/controllers/homeassistant.py", line 107, in _connect_hass
raise PyChromecastError()
pychromecast.error.PyChromecastError
just got another update to core and os and it seems to have fixed itself
Still happening and having errors when casting.
Home Assistant 2022.12.9
Supervisor 2022.12.1
Operating System 9.4
Frontend 20221213.1 - latest