#input_select to play_media_player url

1 messages · Page 1 of 1 (latest)

odd cobalt
#

I'm new to HA and just learning how to mess up my dashboards.
I have some Volumio players andI'm trying to create a card with a dropdown list of station urls that I can select and start to play on the volumio player.

From the UI I created an input list and added a script to set the volume, set the media, then play the stream bfut I'm getting this error:

Play radio: Error executing script. Unexpected error for call_service at pos 2: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 524, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1012, in _async_step_call_service
brisk wagon
#

I'm not 100% but that doesn't look like a valid media_content_id

#

I thought they start with media-source://

odd cobalt
#

I tried:

  media_content_id: media-source://:https://str.topradio.be/topradio.mp3

but got the same error.

brisk wagon
#

that's not how that works

#

Do you have the radio browser, can you try it with a radio browser link?

#

e.g.
media_content_id: 'media-source://radio_browser/df366836-0e5e-4e59-ae98-64898b26b448'

odd cobalt
#

I can use rthe volumio ui and browse to a internet radio station but how do I get the uuid of that station?

brisk wagon
#

AFAIK the content_id has to originate from HA.

#

You can find it if you have the Radio Browser integration, and you choose it through the media picker.

#

That's the only way I know.

#

(Media is a pretty confusing corner of HA 😬 )

odd cobalt
#

ok, I added te Radio Browser integration then browed to a station and can play it on the volumio manually.

#

Guess I still need the uuid to create a script with input_selectopm