core: Casting dashboard not working
The problem
I have couple of google chromecast devices namely an android TV and nest hub. I am not able to cast my dashboards onto screens. So the screen gets stuck on not connected . attaching the error in the logs while trying to cast Cast Log.txt
What version of Home Assistant Core has the issue?
2022.11.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Google Cast
Link to integration documentation on our website
https://www.home-assistant.io/integrations/cast/#home-assistant-cast
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: homeassistant.util.logging
Source: util/logging.py:168
First occurred: 9:13:49 AM (1 occurrences)
Last logged: 9:13:49 AM
Exception in _handle_signal_show_view when dispatching 'cast_show_view': (<pychromecast.controllers.homeassistant.HomeAssistantController object at 0x7f5c354970>, 'media_player.bridge', 'default_view', 'power-heater') 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 119, in show_lovelace_view self._send_connected_message( File "/usr/local/lib/python3.10/site-packages/pychromecast/controllers/homeassistant.py", line 130, in _send_connected_message self._connect_hass( File "/usr/local/lib/python3.10/site-packages/pychromecast/controllers/homeassistant.py", line 103, in _connect_hass raise PyChromecastError() pychromecast.error.PyChromecastError
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 25
I was also having this issue and I looked into the code. There is a 10 second timeout when loading a dashboard. If the cast device takes longer than 10 seconds to finish loading the
[pychromecast.controllers] _connect_hass failed for https://hass.example.comwarning is logged and an error is raised. Increasing the timeout seems to fix the issue. I created a pull request to increase the timeout by default. https://github.com/home-assistant-libs/pychromecast/pull/770Ditto. On 2022.12.3 but occurred previous to this.