Hi,
Can anyone help me solve an issue i’m having with casting lovalace dashboards to a Google Nest Hub 2 gen display?
My setup:
RPi 3B+
Home Assistant OS 10.2
Core 2023.5.4
Script calling the dashboard cast service (on a Tradfri E1812 button push with Z2M)
alias: Alarm Dash Cast
sequence:
- service: media_player.play_media
target:
entity_id: media_player.living_room_display
data:
media_content_id: dashboard-alarm/0
media_content_type: lovelace
metadata:
title: Alarm Control Panel
thumbnail: https://brands.home-assistant.io/_/lovelace/logo.png
media_class: app
children_media_class: null
navigateIds:
- {}
- media_content_type: lovelace
media_content_id: ""
- media_content_type: lovelace
media_content_id: dashboard-alarm
mode: single
icon: mdi:tablet-dashboard
This setup was working pretty well until a couple a days ago, most likely until before a HAOS update or perhaps before a Google Home update, I’m not so sure which one exactly, but I’m pretty sure that one of this updates messed things up.
I’ve done a factory reset to the display removed it from the Google Home app removed the Google cast integration from HA and re-added it, but no matter what i do i always get 2 errors and two warnings when i cast the dashboards. The funny thing is that most of the times the dashboard is being rendered to the display, even though is taking a lot of time, but sometimes i only get a white screen and sometimes it gets stuck in the HA Nabu Casa screen showing the connected status, but the dashboard is not being rendered.
These are the errors i get:
Logger: homeassistant.util.logging
Source: util/logging.py:168
First occurred: June 4, 2023 at 21:10:42 (5 occurrences)
Last logged: 09:45:20
Exception in _handle_signal_show_view when dispatching 'cast_show_view': (<pychromecast.controllers.homeassistant.HomeAssistantController object at 0x7f91aa1d20>, 'media_player.living_room_display', '0', 'dashboard-alarm') Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 987, 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() # pylint: disable=broad-exception-raised pychromecast.error.PyChromecastError
Exception in _handle_signal_show_view when dispatching 'cast_show_view': (<pychromecast.controllers.homeassistant.HomeAssistantController object at 0x7f902fd0c0>, 'media_player.living_room_display', '0', 'dashboard-alarm') Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 987, 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() # pylint: disable=broad-exception-raised pychromecast.error.PyChromecastError
Exception in _handle_signal_show_view when dispatching 'cast_show_view': (<pychromecast.controllers.homeassistant.HomeAssistantController object at 0x7f8e34acb0>, 'media_player.living_room_display', '0', 'dashboard-alarm') Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 987, 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() # pylint: disable=broad-exception-raised pychromecast.error.PyChromecastError
Exception in _handle_signal_show_view when dispatching 'cast_show_view': (<pychromecast.controllers.homeassistant.HomeAssistantController object at 0x7fa3794a90>, 'media_player.living_room_display', '0', 'dashboard-alarm') Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 987, 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() # pylint: disable=broad-exception-raised pychromecast.error.PyChromecastError
Exception in _handle_signal_show_view when dispatching 'cast_show_view': (<pychromecast.controllers.homeassistant.HomeAssistantController object at 0x7f91b01690>, 'media_player.living_room_display', '0', 'dashboard-alarm') Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 987, 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() # pylint: disable=broad-exception-raised pychromecast.error.PyChromecastError
Logger: pychromecast.controllers
Source: /usr/local/lib/python3.10/site-packages/pychromecast/controllers/receiver.py:244
First occurred: June 4, 2023 at 21:10:53 (5 occurrences)
Last logged: 09:45:31
Exception thrown when calling cast status listener
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/pychromecast/controllers/receiver.py", line 242, in _report_status
listener.new_cast_status(self.status)
File "/usr/local/lib/python3.10/site-packages/pychromecast/socket_client.py", line 500, in new_cast_status
handler.channel_connected()
File "/usr/local/lib/python3.10/site-packages/pychromecast/controllers/homeassistant.py", line 56, in channel_connected
self.get_status()
File "/usr/local/lib/python3.10/site-packages/pychromecast/controllers/homeassistant.py", line 117, in get_status
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() # pylint: disable=broad-exception-raised
pychromecast.error.PyChromecastError
Warning after each error:
Logger: pychromecast.controllers
Source: /usr/local/lib/python3.10/site-packages/pychromecast/controllers/homeassistant.py:106
First occurred: June 4, 2023 at 21:10:53 (5 occurrences)
Last logged: 09:45:31
_connect_hass failed for https://XX.duckdns.org:2526