I am using Chromecast, but no google nest hub. There are no theme settings to change.
Nothing special. Like it is documented. Here is my code:
service: cast.show_lovelace_view
data:
entity_id: media_player.fernseher_im_schlafzimmer
dashboard_path: lovelace-info
view_path: flur
You need to specify the correct names/paths for dashboard and view in your Lovelace dashboard config. Otherwise it won’t work.
Thank you for the info, that is what i did as well. Maybe its the custom cards, could you share the one you use?
I use the mini graph card, compass card and custom weather card. They dont work.
mini graph card works fine (or it did yesterday)
Alright, then im not sure whats going on. Did you add anything in your configuration.yaml for it?
No, just installed from hacs.
Ok, thank you for the info.
Does anyone have buttons that link to different views working? I tried using a custom button card as mentioned above but when I press the buttons on my Nest hub nothing happens. I tried to format the url path like: /nest-hub/kitchen and also like https://home-assistant-url.duckdns.org/nest-hub/kitchen
The buttons otherwise work fine on a web browser or from the home assistant app
Edit: Figured it out. Instead of using web links, you can create a script that casts to each different view. Then, set each button to call a script.
The linking using just “home” “cameras” and others which are just lovelace tabs have worked for me on my Google Nest Hub. Seems to be unreliable. Sometimes it works. Looks like it’s most reliable when creating a button which navigates. If I use an image with a navigate URL it’s unreliable.
For dark mode use in automations or scripts this service:
action:
- service: frontend.set_theme
data:
name: 'Google Dark Theme'
Is any way to cast a FLOORPLAN with local path to image?
not working:
image: /local/floorplan/myplan.svg
stylesheet: /local/floorplan/myplan.css
cast working:
image: https://myhassio.com/local/floorplan/myplan.svg
stylesheet: https://myhassio.com/local/floorplan/myplan.css
Thank you for this! Was searching for ages for a solution. Worked in my 9 minute recast automation
You made my day! It works…Wow! So simple…
Thanks Kirill Knishev , works Great!!!
With all this cast “time” problems , im using a little trick to get unlimited cast time to the google nest Hub (lenovo in my case), just in case anyone want to test it.
What i do first is cast anything with video or audio (camera in my case) ,so i get a notification in my phone so i can control volume,track… once is in this state i cast my lovelace page. The controls still on my phone the cast act like audio or video so never stops.
Here is my config:
action:
- service: media_player.turn_off
target:
device_id: 2bXXXXXXXXXXXXXXXXXXXXXXX56
data: {}
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: cast.show_lovelace_view
data:
entity_id: media_player.lenovosmartdisplay
dashboard_path: lovelace
view_path: camara-entrada
- delay:
hours: 0
minutes: 0
seconds: 4
milliseconds: 0
- service: cast.show_lovelace_view
data:
entity_id: media_player.lenovosmartdisplay
dashboard_path: lovelace
view_path: camara-entrada
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: cast.show_lovelace_view
data:
entity_id: media_player.lenovosmartdisplay
dashboard_path: lovelace
view_path: camara-entrada
- delay:
hours: 0
minutes: 0
seconds: 10
milliseconds: 0
- service: cast.show_lovelace_view
data:
entity_id: media_player.lenovosmartdisplay
dashboard_path: lovelace
view_path: pantalla
mode: single
Sorry for my english and i hope that it helps.
Thanks
I was struggling with switching lovelace views on my Google Nest Hub as well.
Use the Navigate action, not the URL one.
And instead of using just:
kitchen
which works fine in a web browser, you need to use the full path (starting with a / ):
/lovelace/kitchen
Hopefully, that helps!
Hi
Anyone can help me pls?
I dont use nabu casa, i use duckdns.
Everything is working fine, and i can get to my HA instance from outside using the duckdns url
That same url is noted in my external url under network settings in HA
However when i try to cast my dashboard to a google hub, its says nabu casa isnt connected…
Any ideas?
Coming back to his
I moved away from duckdns to cloudflare, and now when i try to cast a dashboard it says its connect, then i hear the sound and a white screen
But it stays on a white screen, any idea?
To anyone having issues with the official Cast integration, I suggest to try CATT/DashCast.
The 10 minutes timeout problem has been solved (https://github.com/swiergot/ha-catt-fix).
You don’t even need to use HTTPS, in fact I’ve got better results with HTTP.
Here is a nice guide how to set it up:
(remember to skip the cast.sh part, it’s no longer needed)
I’ve succeeded with the cast …
The problem was that the view wasnt set to panel:true
If i set it to panel:true , i’m able to cast it
otherwise i got blank screen
Hi Finn, did you manage to cast a dashboard to a screen in portrait mode?
I’m testing using a computer screen with an older chromecast as a “Magic Mirror”…