Hello guys
I do have Jukebox card on Lovelace and that works great :
type: vertical-stack
cards:
- type: media-control
entity: media_player.mpd
- title: Stacje radiowe
type: 'custom:jukebox-card'
links:
- url: 'https://rs9-krk2-cyfronet.rmfstream.pl/RMFFM48'
name: RMF FM
- url: 'https://n-6-12.dcs.redcdn.pl/sc/o2/Eurozet/live/audio.livx'
name: Radio Zet
- url: 'https://rs7-krk2-cyfronet.rmfstream.pl/RMFMAXXX48'
name: RMF MAXXX
- url: 'https://ext03.ic.smcdn.pl/t064-1.mp3'
name: Radio Eska
- url: 'https://an03.cdn.eurozet.pl/ant-waw.mp3'
name: AntyRadio
- url: 'https://ext03.ic.smcdn.pl/t041-1.aac'
name: Eska Rock
- url: 'https://stream.radiokampus.fm/kampus'
name: Kampus
- url: >-
https://rs102-krk-cyfronet.rmfstream.pl/CLUB?listenerid=e50347af63e4de68435ee44cbb98917f&awparams=companionAds%3Atrue&aw_0_1st.version=1.1.4%3Ahtml5&aw_0_1st.playerid=RMF_Player_JS_P&aw_0_1st.skey=1605644358&aw_0_req.gdpr=true&aw_0_1st.playerid=RMF_Player_JS_P
name: RMF Club
entities:
- media_player.mpd
attribute: media_title
What I did as well is the Automation which changing source on my Soundbar when mediaplayer starts which looks following:
alias: Analog
description: ''
trigger:
- platform: state
entity_id: media_player.mpd
from: paused
to: playing
condition: []
action:
- service: media_player.select_source
data:
entity_id: media_player.ht_zf9
source: Analog
entity_id: media_player.ht_zf9
- service: media_player.turn_on
data: {}
entity_id: media_player.ht_zf9
mode: single
I wanted to do all Radio stations under HADashboard so i created that yaml file:
scene_rmf:
widget_type: switch
title: RMF FM
entity: media_player.mpd
links:
- url: 'https://rs9-krk2-cyfronet.rmfstream.pl/RMFFM48'
icon_on: mdi-music
icon_off: mdi-music
scene_radiozet:
widget_type: switch
title: Radio Zet
entity: media_player.mpd
links:
- url: 'https://n-6-12.dcs.redcdn.pl/sc/o2/Eurozet/live/audio.livx'
icon_on: mdi-music
icon_off: mdi-music
scene_rmfmaxxx:
widget_type: switch
title: RMF MAXXX
entity: media_player.mpd
links:
- url: 'https://rs7-krk2-cyfronet.rmfstream.pl/RMFMAXXX48'
icon_on: mdi-music
icon_off: mdi-music
scene_eska:
widget_type: switch
title: Radio ESKA
entity: media_player.mpd
links:
- url: 'https://ext03.ic.smcdn.pl/t064-1.mp3'
icon_on: mdi-music
icon_off: mdi-music
scene_anty:
widget_type: switch
title: Antyradio
entity: media_player.mpd
links:
- url: 'https://an03.cdn.eurozet.pl/ant-waw.mp3'
icon_on: mdi-music
icon_off: mdi-music
scene_esrock:
widget_type: switch
title: ESKA Rock
entity: media_player.mpd
links:
- url: 'https://ext03.ic.smcdn.pl/t041-1.aac'
icon_on: mdi-music
icon_off: mdi-music
scene_kampus:
widget_type: switch
title: Kampus
entity: media_player.mpd
links:
- url: 'https://stream.radiokampus.fm/kampus'
icon_on: mdi-music
icon_off: mdi-music
scene_clock:
widget_type: clock
time_format: 24hr
date_format_country: pl-PL
date_format_options:
weekday: short
day: numeric
month: numeric
show_seconds: 1
scene_club:
widget_type: switch
title: RMF Club
entity: media_player.mpd
links:
- url: 'https://rs102-krk-cyfronet.rmfstream.pl/CLUB?listenerid=e50347af63e4de68435ee44cbb98917f&awparams=companionAds%3Atrue&aw_0_1st.version=1.1.4%3Ahtml5&aw_0_1st.playerid=RMF_Player_JS_P&aw_0_1st.skey=1605644358&aw_0_req.gdpr=true&aw_0_1st.playerid=RMF_Player_JS_P'
icon_on: mdi-music
icon_off: mdi-music
layout:
- scene_clock(8x1)
- scene_rmf, scene_radiozet, scene_rmfmaxxx, scene_eska, scene_anty, scene_esrock, scene_kampus, scene_club
Problem is that no matter which radio I will click on HADashboard nothing changes, it plays only radio chosen within Jukebox card on Lovelace…
I hope I made that clear …
What I’m doing wrong ? Thank you for all your help