Media player cards for Home Assistant that let you group speakers, add custom action buttons, browse, search for music, manage your queue and more. A visual editor is available for all media player card configuration options.
HACS
- Open HACS in your Home Assistant instance
- Click the three dots in the top right corner
- Select "Custom repositories"
- Add
antontanderup/mediocre-hass-media-player-cardsas a repository - Set category to "Dashboard"
- Click "Add"
- Search for "Mediocre Hass Media Player Cards"
- Install it and reload your browser
Manual Installation
- Grab the latest release from the releases page
- Copy the JavaScript file to your
www/directory in your Home Assistant setup - Add the resource to your Lovelace config:
resources:
- url: /local/mediocre-media-player-card.js
type: module- Refresh your browser
A standard-sized media player card for a single entity. Supports grouping, custom actions, and (optional) Music Assistant integration.
A full-sized, feature-rich card for a single media player. Includes all features of the standard card, plus multiple display modes.
Control and view multiple media players at once. Great for dashboards with several speakers or grouped devices.
A compact chip-style card for quickly grouping/ungrouping speakers. Perfect for putting under your media player card of choice.
- Universal Media Player integration
- Search functionality
- Custom Styles
- Queue Management
- LMS Features
- Music Assistant features
If you run into issues:
- Check that your entity supports the media player features needed
- Verify your configuration syntax
- Look for errors in your browser's developer console
Special thanks to the following projects and their authors for inspiration, ideas, or direct/indirect contributions:
- mini-media-player
- bubble card
- mushroom cards
- mass-queue
- lyrion-cli
- music assistant
- lyrion music server
Your work and creativity have helped make this project better!
These cards are built with Preact wrapped in web components. For local development:
# Install dependencies
yarn install
# Build for development
yarn dev
# Continually build when files change
yarn dev:watch
# Build for production
yarn buildWhen using yarn dev, the output file will be named mediocre-hass-media-player-cards-dev.js instead of mediocre-hass-media-player-cards.js.
You can also create a .env.development file (based on the .env.development.example) to use custom component names during development. This is usefull if you want to test in a live environment without risking breaking anything for your users (family members :D).



