Skip to content

Feature: Ability to re-order categories that appear on search #445

Description

@Brandon1212b

It would be great to select which categories appear when you click search and which order they appear in

Currently, when searching I see all the media types:

Image

I would like to see just a select amount of categories and set them in any order.

Reading through https://github.com/antontanderup/mediocre-hass-media-player-cards/blob/main/docs/README_SEARCH.md it seems like we can almost do this. However, I do not need the additional kitchen search (so keeping just the default Music Assistant Search) and the ability to reorder them would be nice.

I tried the following YAML to see if it would just show 4 categories but it did not work

YAML:

type: custom:mediocre-multi-media-player-card
entity_id: media_player.kitchen
mode: panel
size: large
media_players:
  - entity_id: media_player.kitchen
    ma_entity_id: media_player.kitchen
    media_browser: []
    can_be_grouped: false
    search:
      - entity_id: media_player.kitchen
        name: Kitchen
        media_types:
          - name: Playlists
            media_type: music_assistant
            icon: mdi:folder-music
          - name: Artists
            media_type: music_assistant
            icon: mdi:folder-music
          - name: Albums
            media_type: music_assistant
            icon: mdi:folder-music
          - name: Radio stations
            media_type: music_assistant
            icon: mdi:folder-music
  - entity_id: media_player.bathroom
    ma_entity_id: media_player.bathroom
    media_browser: []
    can_be_grouped: false
    search: []
  - entity_id: media_player.loft
    ma_entity_id: media_player.loft
    media_browser: []
    can_be_grouped: false
    search: []
  - entity_id: media_player.bedroom
    ma_entity_id: media_player.bedroom
    media_browser: []
    can_be_grouped: false
    search: []
tap_opens_popup: true
options:
  always_show_power_button: false
  show_volume_step_buttons: true
  player_is_active_when: playing_or_paused
  default_tab: search

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions