Skip to main content

Play Radio with Music Assistant

Play radio stations with View Assist using Music Assistant.

This blueprint supports both:

  • Legacy commands using a fixed station ID --> This means that every radio station needs its own automation.
  • Alias-based commands using {station_name} --> With aliases, one automation is sufficient

The updated logic is designed to stay compatible with older automations while making new setups much easier to configure.

Requirements

  • Music Assistant server installed and integrated with Home Assistant
  • Create a free account on Tune In and add some stations to your favorites on the Tune In website
  • Install TuneIn Radio music provider in Music Assistant, configure, and allow time to sync
  • View: Music view
  • The TuneIn station ID as seen in Music Assistant (see instructions for finding below)
  • The recently added musicplayer_device must be added to your View Assistant device configuration as explained in the Satellite Custom Device Configuration portion of the wiki. This should be a Music Assistant player device. Typically these will be named the same as your mediaplayer_device but with a _2 on the end
  • The musicplayer_device added to your View Assist device configuration as described in the wiki
  • At least one radio station available in Music Assistant

What changed in v1.3.0

  • Added support for alias-based station matching
  • Kept compatibility with the original fixed-station setup
  • Simplified the internal logic
  • Removed the extra mode handling
  • Prevents playing the wrong fallback station when using alias-based radio commands
  • Added a more user-friendly UI for entering station aliases

How it works

The blueprint now decides automatically which path to use:

Legacy path

If your command does not contain {station_name}, the blueprint uses the configured fixed station ID.

This keeps older automations working as before.

Alias path

If your command does contain {station_name}, the blueprint will:

  1. Read the spoken station name
  2. Try to match it against the configured alias list
  3. Play the matching station if found
  4. Stop immediately if no alias matches

This avoids accidentally playing the wrong station.

Installation

1. Create an automation

Go to:

Settings -> Automations & Scenes -> Automations

Then:

  1. Create a new automation
  2. Choose Use Blueprint
  3. Select Play Radio with Music Assistant

Configuration

Language

Select the language used for responses.

Command

This is the sentence pattern View Assist will listen for.

You can continue using a legacy fixed command, or switch to the new alias-based format.

Legacy example

  • en: play Big 102.1
  • de: Spiele Big 102.1

Alias-based example

  • en: (start | play | listen) [to] radio [station] {station_name}
  • de: [den] (starte | spiele) radio [sender] {station_name} [hören]

If you want to use aliases, your command must include {station_name}.

Screenshot 2026-04-13 171658

Station

This is the fixed Music Assistant station ID used by the legacy path.

It is only used when your command does not contain {station_name}.

Screenshot 2026-04-13 172056

Station aliases

This is the new alias-based configuration.

Each entry lets you define:

  • a spoken alias
  • the real Music Assistant station ID
  • an optional display/station name for voice output
Screenshot 2026-04-13 172303 Screenshot 2026-04-13 172158

How to find the station ID

Open Music Assistant and go to the radio section.

Find the station you want to use and copy the station ID exactly as shown in Music Assistant.

image

Notes

  • Existing automations should continue to work as long as they keep using the original fixed-station style command
  • To use the new alias-based behavior, update the command so it includes {station_name}
  • Alias-based commands are safer because they prevent the wrong default station from being played
  • The alias UI is easier to configure than raw YAML lists or dictionaries

Changelog

VersionDescription
1.3.0Added alias-based station matching, improved UI configuration, simplified logic, preserved legacy compatibility
1.2.1Add translations
1.2.0Various improvements
1.1.0Various improvements
1.0.3Bug fix plus add ability to have custom announcement
1.0.2Update to use conditional response
1.0.1Update to use music_assistant action
1.0.0Initial release