Home Assistant Cast

I haven’t got this to fully work yet, but I would imagine you could set a script to change views and place the button on the UI so you can scroll through them

Edit, now the interaction part would probably not work. But maybe one of the much smarter people out there could answer that better then me!

exactly what I am doing

1 Like

Ok, but this would be super awkward in case I want to do something like scroll through the options for an input select and activate one of them. (It would require a separate view for each of the options!)

hey mate - did you ever figure out how to cast the camera feeds? i am stuck in the same issue where everything works except from live camera feeds (which i can see well in the lovelace card (as a picture-entity with camera_view set to live). thx!

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…