Not being able to cast to nest

I’ve been trying to get cast to nest to work, with no succes.

I have completed the google cast configuration. Only entered known hosts. I have set the URL at the dashboard

I’ve tried it as an action in an automation:

service: cast.show_lovelace_view
data:
  entity_id: media_player.nesthubfe8f
  dashboard_path: dashboard-cast

I have added this in the entity card in the dashboard:

type: entities
entities:
  - type: cast
    name: Media
    dashboard: dashboard-cast
    view: null
    entity_id: media_player.nesthubfe8f
    hide_if_unavailable: false
  - entity: timer.pomodoro

I use nabu casa and am on this version of home assistant:

  • Core 2024.6.3
  • Supervisor 2024.06.0
  • Operating System 12.4
  • Frontend 20240610.1

Log:

Logger: homeassistant.components.websocket_api.http.connection
Source: components/cast/home_assistant_cast.py:73
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 12:55:51 (3 occurrences)
Last logged: 13:24:08

[281472153765056] Error handling message: Unknown error (unknown_error) Anouk from 127.0.0.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36)
[281472074196752] Error handling message: Unknown error (unknown_error) Anouk from 127.0.0.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 793, in handle_execute_script
    script_result = await script_obj.async_run(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1769, in async_run
    return await asyncio.shield(create_eager_task(run.async_run()))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 464, in async_run
    await self._async_step(log_exceptions=False)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 528, in _async_step
    self._handle_exception(
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 558, in _handle_exception
    raise exception
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 526, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 763, in _async_call_service_step
    response_data = await self._async_run_long_action(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 726, in _async_run_long_action
    return await long_task
           ^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2741, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1080, in _async_admin_handler
    await result
  File "/usr/src/homeassistant/homeassistant/components/cast/home_assistant_cast.py", line 73, in handle_show_view
    call.data[ATTR_VIEW_PATH],
    ~~~~~~~~~^^^^^^^^^^^^^^^^
KeyError: 'view_path'