Google Cast error - Unable to find a view with path xxxx

So this began working late last week After 2 or 3 days being down but as of the weekend has gone down again. Haven’t made any config changes in a fortnight or so. I assume there’s changes or something happening server side which is making the service unreliable?

Keeping an eye on the following for now
https://github.com/home-assistant/core/issues/32370

1 Like

it works for the default_view ‘0’ 100% of the time. for the custom dashboards it’s different.
sometimes it works and sometimes it doesn’t. when i trigger it from services it doesn’t work then i trigger it again from services without the dashboard_path and then again with the dashboard_path it works. i will post a video of the working cast.

I’ve yet to be able to get Cast to work via Automation/DevTools service. Only the special card OR via cast.home-assistant.io.

How are you getting cast to work via Automation?

I’ve tried through DuckDNS, NabuCasa, I’m using standard ports.

this works 50% of the time

- id: '1591682005536'
  alias: Test Nest Hub
  description: ''
  trigger:
  - event: start
    platform: homeassistant
  - entity_id: media_player.hub_huiskamer
    platform: state
    to: 'off'
  action:
  - data:
      dashboard_path: nest-hub
      entity_id: media_player.hub_huiskamer
      view_path: begane-grond
    service: cast.show_lovelace_view

Home assistant cast

i managed to make it work 100% of the time from automations:

- id: '1591682005536'
  alias: Test Nest Hub
  description: ''
  trigger:
  - event: start
    platform: homeassistant
  - entity_id: media_player.hub_huiskamer
    platform: state
    to: 'off'
  action:
  - data:
      entity_id: media_player.hub_huiskamer
      view_path: begane-grond
    service: cast.show_lovelace_view
  - delay: '00:00:05'
  - data:
      dashboard_path: nest-hub
      entity_id: media_player.hub_huiskamer
      view_path: begane-grond
    service: cast.show_lovelace_view

in this automation i first send the command without dashboard and then with a delat of 5 second with dashboard and that works. if i put the delay on 2 seconds it says connected but not show the page, with 5 seconds it works everytime. it should be fixed though but this is a work around for the time being.

4 Likes

Can confirm this works for me too. As expected, a “cannot find path xxx” is displayed following the first command, but five seconds later, I see the expected view.

This is not working for me, I get ‘Unable to view path xxx’ and it just stays on that page most of the time, I had 2 or 3 successes in the ~30 times I tested.

I believe the issue is the hosted app that the Nest loads is not always able to get the paths from my HA instance, even thought I change nothing it works sometimes, but most of the time not.
I might be wrong, but my theory is that there is a very short timeout on the app on the call to the HA instance app to retrieve the available paths, and due to my geographic region (South Africa), is causing the issues.

1 Like

Lucky you! Keep us posted on reliability. Not working for me!

@NeilDuToit92
u can try to up the delay with a second a time, this is how i came to a reliable solution for my enviroment.

In my case, I need to turn off then on the hub, with a delay between them, to have it working. After 1 hour of testing, 100% of success.
Here is my code:

- entity_id: input_boolean.test
    platform: state
    to: 'on'
  action:
  - data:
      entity_id: media_player.nest_hub
    service: media_player.turn_off
  - delay: "00:00:01"
  - data:
      entity_id: media_player.nest_hub
    service: media_player.turn_on
  - data:
      entity_id: media_player.nest_hub
      view_path: test
    service: cast.show_lovelace_view
  - delay: '00:00:05'
  - data:
      dashboard_path: lovelace
      entity_id: media_player.nest_hub
      view_path: test
    service: cast.show_lovelace_view
7 Likes

@radar, you might just have found the solution there… I have been calling ‘stop’ before trying to cast. Turning it off and on again seems to be working in the ~10 tests I just performed. I’ll continue testing over the next few days.

Got one path error right now after one day of testing.

It seems I was a little too optimistic about the first workaround as it has stopped working for me. I’ve since changed to @radar’s approach and so far (after an hour) it’s been 100% successful, however custom cards are not showing.

@radar / @NeilDuToit92 are you able to see custom cards with this solution?

Nope, can’t see them.

Today, I’m getting a “Not connected” error.

I’ve moved over to an alternative solution Catt. Still had a few networking headaches, but Catt seems to be working for me.

1 Like

I assume CATT is this https://github.com/skorokithakis/catt

Are you running it on a separate instance of Linux and what distro?

I’m running it on Hassio using this method. Have a read through that thread for options/experiences. It’s been working reliably for me. Using CATT

How are you casting an auth’d version of the HASS UI if going down the CATT route? This is the bit I can’t work out.