Ability to stop the lovelace_ui cast to nest hub

We have gotten the ability to start casting a lovelace view to a chromecast device i.e. a Nest Hub. However I haven’t been able to find a service command to stop casting to the chromecast. I’d have to do this from the device itself or from the Google Home app on my iOS device.
Any solutions for this that I haven’t been able to find?

Curious about this as well. stop_media does’t work.

Actually media_player.turn_off does work. It stops the cast.

3 Likes

I managed to find that aswell, forgot to share my findings here :sweat_smile:

thank you i found the solution to bypass the google home bug which does not stop in the background cast and replaces the “stop” commade which seems bugged on catt now it works again. for info i have lenovo as an assistant and it is not yet updated in Fuchsia for the moment :yum:

alias: cast2
description: ''
trigger:
  - platform: time_pattern
    minutes: /10
condition: []
action:
  - service: media_player.turn_off
    target:
      device_id: xxxxxxxxxxxxxxxxxxxxxx
  - service: dash_cast.load_url
    data:
      entity_id: media_player.google_home_lenovo
      url: 'https://xxxxxxxxxxxxxxx:8123'
      force: true
mode: restart
1 Like

Thank you!!!

Also to cast a lovelace view you can use:

  - service: cast.show_lovelace_view
    data:
      dashboard_path: lovelace
      entity_id: media_player.xxxxcast_devicexxxx
      view_path: xxxxlovelace_viewxxxxxxx