#Cast youtube link to media player

1 messages · Page 1 of 1 (latest)

mossy socket
#
alias: Start YouTube op Bravia
sequence:
  - service: media_player.play_media
    data:
      entity_id: media_player.bravia_2
      media_content_type: cast
      media_content_id: >
        {
          "app_name": "youtube",
          "media_id": "dQw4w9WgXcQ"
        }
mode: single

I am trying to cast a youtube video to a mediaplayer but I can get it to work when I try it like this i get: Invalid media type: cast but this is how they describe it in the docs.
https://www.home-assistant.io/integrations/cast/#youtube

What am I doing wrong?

Home Assistant

Instructions on how to integrate Google Cast into Home Assistant.

rugged otter
#

It relies on the integration providing the media_player entity to support it

mossy socket
#

Just found the problem: it should have been media_player.bravia instead media_player.bravia_2 that was the entity added by Android Remote inegration