Roon module for Home Assistant

I am having a problem creating an automation. I want to start Roon playing a radio station which is saved in My Live Radio “Rundfunk Berlin-Brandenburg: RBB Radio Eins” at volume 17.

When using the visual editor everything is working fine except the most (to me) important function media_player.play_media. It works exactly one time and then never again.

This is the visual editor:

This is the associated yaml as being set through visual editor:

This is the protocol:

Protocol details:

I was spending several hours trying this and that, googling, asking chatGPT and so on.

Is this a bug affecting media playback? Or do I something wrong? I guess not, because changing volume, stopping and so on work as expected.

Roon media players in home assistant can’t understand the media ids used by other home assistant media players because roon doesn’t use unique media ids

You need to specify a path as described here

(And as usual ChatGpt makes guesses and is wrong!)

I have the RoonLabs music player installed and configured in HA and I have my Roon Core enabled and all the zones setup, including the ones that allow Roon to control the volume. I have tested it with various endpoints, and all is working. My question is what do I need to do next to get a dashboard/UX so that I can make it really useful when using just the HA interface. My ultimate plan is to get Josh.ai configured to send voice or event generated triggers to Roon, so I can control Roon as part of a scene (e.g., different lighting, shades, fireplace, and music selection for different times of day or different moods). But I want to take it a step at a time, so I want to get all of the appropriate controls setup in HA first and let that burn in for a while to make sure they are what I want before moving to the next step. Any advice on next steps?

Dashboards are pretty much a personal preference and I’m almost certain it’ll evolve over time. You’ll see a bunch of examples further up this thread.

I see you’re planning to use other integrations to start music, but I’d say that in general starting music from within HA isn’t great… I use an HA dashboard for everything after browsing and starting my music in Roon.

1 Like

Thanks Greg,

I was finding your explanation a little later after writing my post. I think I was trying 20 different variations, but was not successful. I will give up at this point and I will stay with macro.on. With this Roon extension it‘s absolutely easy to choose a favorite radio station from a dropdown menu and to connect it to Home Assistant via rest_command. Unfortunately the connection of Roon and macro.on is not stable. I have to restart the docker container once a week. This is the reason I wanted to switch to do it in Home Assistant.

Asking Claude.ai was giving the right hint and it is working now.

1 Like

I’m amazed, and willing to eat some humble pie!