Home Assistant Cast

Does anyone know if casting works to the Lenovo smart clock device?

If anyone else is experiencing this issue where you can’t cast a view unless you are already authenticated, please make some noise on the Github issue. Cheers. https://github.com/home-assistant/home-assistant/issues/28971

There’s also a thread about it. Google Cast error - Unable to find a view with path xxxx

Non, doesn’t work.

You can’t cast Lovelace or media content.
I tried it already, hopefully with an update it will work because when I cast Lovelace or a picture it’s showing that’s connected but a grey screen.

Also the symbol within the Google Home app, shows a symbol of a Hub.

1 Like

I have 0.103.0 and after a restart this morning, I get the message:

There were no suitable Chromecast devices to cast to found.

So I logged out, logged in again, still same error, anyone an idea?

Question, is anyone experience problm with custom lovelace cards doesn’t get loaded? When starting cast from automation I get my view but only with lovelace components, I need to navigate away from the view and then back again and it works or refresh lovelace from a phone or computer. Could it be that cast starts before the components are loaded? I think that plugins like custom cards have a lower priority and any custom cards are replaced with a placeholder. When the initial loading is done, lovelace starts loading in custom plugins, and replacing the cards when a plugin loads. I think this is what happens and it is not reloaded correctly.

Another thing I have seen in the thread is that people have problem starting up casting. I have solved it by this and it works at least 99% of the times:

  • alias: ‘Start Homeassistant cast - alarm off’
    trigger:
    platform: state
    entity_id: (for instance triggers by alarm off)
    to: ‘disarmed’
    action:
    • service: cast.show_lovelace_view
      data:
      entity_id: media_player.kok_hub
      view_path: cast_view
    • delay: 00:00:05
    • service: media_player.turn_off
      data:
      entity_id: media_player.kok_hub
    • delay: 00:00:02
    • service: cast.show_lovelace_view
      data:
      entity_id: media_player.kok_hub
      view_path: cast_view
    • delay: 00:00:05
    • service: media_player.turn_off
      data:
      entity_id: media_player.kok_hub
    • delay: 00:00:02
    • service: cast.show_lovelace_view
      data:
      entity_id: media_player.kok_hub
      view_path: cast_view

I find it can take 10 seconds or so for cast to load and then even longer for some custom stuff to load… I just wait…

Hmm strange that it works for you. For me I need to navigate away or just reload from computer or phone using update lovelace. Is it that you have any pure lovelace ui componets in your cast view? I have only custom ui components

I use mainly custom cards

I’m sorry if I missed something, but currently I can’t get it to cast if I use the service call.
I can only get it working if I use https://cast.home-assistant.io/

I want to create an automation that cast my lovelace view via Nabu Casa. I don’t want to open the above link everytime.

I tried with:

entity_id: media_player.nesthub_kitchen
view_path: '0'

But when I call that, it only shows “Connected” on the Nest Hub, and nothing else happens.
At the moment I don’t use https internally and I only use Nabu for cloud connect.

Just to be sure, you are using the right view path after the tab you wanna show?

It’s the same as the url after / in the web address.

Hi Juice,

I tried with the full Nabu Casa link, but maybe I did something wrong.
Can you show me a example of what you mean?

Sure.
In the service call where you entered view_path: '0 ' needs to match what you called the tab otherwise it won’t show. So my view_path is default view.

As an example

A fellow dane ;)?

I haven’t named the tabs, but even if I do, then when putting in “alarm”, it still ends on the “Home Assistant luvs Nabu Casa” and then Connected.

Do you use self-signed certificate and https or do you use duckdns?
I think it is related to the fact I don’t use https here on my local lan.

Haha Busted. :wink:

I actually use Nabu casa, really easy. You need to use https and have configured the base url :slight_smile:
Check this out: https://www.home-assistant.io/integrations/cast/

Is there any way to actually stop the casting By service? If you start casting the cast stays active until you stop it yourself or swipe it to the right of the screen to “hide”.

If you don’t use https in your LAN you could use catt. In my opinion it’s more powerful in comparison to home assistant cast (for now). For me Catt is not working because i do use https in my LAN and Catt fails to cast…

you can just use the service media_player.turn_off and then select your nest hub.

1 Like

How does yout configuration for http: look like in your configuration file?

EDIT: I tried adding this to my configuration file and rebooted:

http:
  base_url: https://seeeeeeeeeeeeeecreeeeeeeeeeeeeeet.ui.nabu.casa

Afterwards I went to “Services” and fired this:

entity_id: media_player.nesthub_kitchen
view_path: alarm

No luck - still the “Connected” with the Home Assistant Luvs Nabu Casa - so I tried with this instead:

entity_id: media_player.nesthub_kitchen
view_path: https://seeeeeeeeeeeeeecreeeeeeeeeeeeeeet.ui.nabu.casa/lovelace/alarm

Same thing, connected, but now it shows me that the view_path was not found :sleepy: :sob:

I can get it to cast a few pages of the previous UI, but for the life of me, I cannot get it to cast my lovelace views to my Google hub, even with the path set, etc. Tried everything, its a shame because it would be a nice integration to have working.

When you just use view_path: alarm in services does it also show view_path not found? Because then it seems like a problem with how they are named…

If you first used you own certificate and duckdns, and after that signed up for home assistant cloud, then remember to reset/reauthorize the cast integration… at https://cast.home-assistant.io/