Im trying to make a radio card where i can play music on my Sonos and Google Home’s.
The Sonos works perfectly, but the Google home dosnt play any music, it just says “Playing Default Media Receiver”.
radio538:
alias: Play Radio
sequence:
- service: media_player.volume_set
data:
entity_id: media_player.google_home
volume_level: '0.20'
- service: media_player.volume_set
data:
entity_id: media_player.google_home_mini
volume_level: '0.20'
- service: media_player.volume_set
data:
entity_id: media_player.kokken
volume_level: '0.20'
- service: media_player.play_media
data_template:
entity_id: >
{% if is_state("input_select.chromecast_radio", "Stue") %} media_player.google_home
{% elif is_state("input_select.chromecast_radio", "Soveværelse") %} media_player.google_home_mini
{% elif is_state("input_select.chromecast_radio", "Køkken") %} media_player.kokken
{% endif %}
media_content_id: >
{% if is_state("input_select.radio_station", "P3") %} http://live-icy.gss.dr.dk/A/A05H.mp3.m3u
{% elif is_state("input_select.radio_station", "P4") %} http://live-icy.gss.dr.dk/A/A11H.mp3.m3u
{% endif %}
media_content_type: 'audio/mp4'
Google Home is displaying this
Any ideas how to make google home play radio this way? maybe its not mp3 it needs?