Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 107438

Google Cast - Play Media From App (BBC Radio)

$
0
0

I am from the UK and trying to trigger BBC Radio stations playing on a Chromecast Audio from Home Assistant.

BBC Sounds has integration with Chromecast so that when I say to my Google Home “play BBC Radio 1 on Kitchen” it plays it without any extra configuration from me. When I do that I get the following state attributes against the device that I hoped would allow me to recreate the same action in a script:

volume_level: 1
is_volume_muted: false
media_content_id: bbc_radio_one
media_content_type: music
media_position: 1.125607
media_position_updated_at: '2021-05-05T14:57:47.208614+00:00'
media_title: BBC Radio 1
app_id: 03977A48
app_name: BBC Sounds
entity_picture_local: >-
  /api/media_player_proxy/media_player.shower?token=06964956ff9fcfb81360950d777e49fb9d8adcc5ce1fded850e20ea903511a1f&cache=b6acebd86ef09253
friendly_name: Shower
entity_picture: 'https://sounds.files.bbci.co.uk/2.3.0/networks/bbc_radio_one/colour_450.png'
supported_features: 152461

The documentation seems to suggest this should be possible following the format of script in the YouTube or Supla examples. I have tried the following but it doesn’t work:

service: media_player.play_media
target:
  entity_id:
    - media_player.kitchen
data:
  media_content_type: cast
  media_content_id: '
          {
            "app_name": "bbc sounds",
            "media_id": "bbc_radio_one"
          }'

Anyone any ideas?

2 posts - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 107438

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>