Overview
The new button entity in Music Assistant allows users to quickly add their favorite currently playing songs to a list with just one click. This feature enhances the music experience by making it easy to keep track of songs you love, regardless of their source.
Benefits
- Instantly save songs you like without navigating through menus.
- Works seamlessly with various music sources, including queues and radio stations.
- Enhances family interaction with music, allowing everyone to contribute to a shared favorites list.
Intent
This capability aims to simplify the process of saving favorite songs, making it accessible for everyone in the home. The outcome is a personalized playlist that evolves with the family’s musical preferences.
Preconditions
- Home Assistant must be installed and configured.
- Music Assistant integration must be set up and running.
- User must have an active music source connected (e.g., streaming service, radio).
- Home Assistant installed and configured.
- Application available and configured: Music Assistant.
- Integration available and authenticated: Music Assistant.
- Device installed and reachable: Sonos | Sonos One.
Actors
- Homeowner selecting songs
- Family members enjoying music
- Guests discovering new tunes
Trigger
The user clicks the button entity while a song is currently playing in Music Assistant.
Workflow Diagram
flowchart TD
A[Button Clicked] -->|check| B{Is Song Playing?}
B -->|Yes| C[Add Song to Favorites]
C --> D[Update Favorites List]
B -->|No| E[Exit Without Action]
Workflow Description
1. Song is Playing
A song is currently playing in Music Assistant from any source.
2. User Clicks Button
The user clicks the designated button entity to save the song.
3. Check Playing Status
The system checks if there is a song currently playing.
4. Add to Favorites
If a song is playing, it is added to the user’s favorites list.
5. Update Favorites List
The favorites list is updated to reflect the newly added song.
Postconditions
The currently playing song is added to the user’s favorites list, allowing for easy access to it later.
Optional Enhancements
- Allow users to add multiple songs in a queue to favorites at once.
- Implement voice command functionality for adding songs to favorites.
- Integrate notifications to confirm when a song has been added successfully.
Recommended Components
| Recommended Applications | Recommended Integrations | Recommended Devices |
|---|---|---|
| Music Assistant | Music Assistant | Sonos | Sonos One, Roku | Roku Ultra |
Source Examples
- 2026.1: Home is where the dashboard is ?? – Home Assistant (homeassistant)