kalkih / mini-media-player

Minimalistic media card for Home Assistant Lovelace UI
MIT License
1.52k stars 207 forks source link

Shuffle button not displaying status when artwork: is set to material on v1.12.0, hass v 2021.1.4 #477

Open scstraus opened 3 years ago

scstraus commented 3 years ago

Hi, I use mini-media-player in a couple places in my lovelace config. In one place I use artwork:material, and in the other I use artwork:full-cover. Only the one with artwork:full-cover correctly shows the state of shuffle as a different color when shuffle is activated. See below of screenshots of both media players with shuffle active and their configs below that.

image

  - entity: media_player.forked_daapd_server

    type: custom:mini-media-player
    name: Music
    source: icon
    artwork: material
    group: true
    hide:
      shuffle: false
      icon: true
      power: true
    shortcuts:
      columns: 4
      buttons:
        - name: "MIX"
          type: source
          id: "A: 4+5 Star (playlist)"
        - name: "JAZZ"
          type: source
          id: "Good Jazz (playlist)"
        - name: "ROCK"
          type: source
          id: "Good Rock (playlist)"
        - name: "POP"
          type: source
          id: "Good Pop (playlist)"
        - name: "CLASSIC"
          type: source
          id: "Classical (playlist)"
        - name: "BLACK"
          type: source
          id: "Good Black (playlist)"
        - name: "ELECTRO"
          type: source
          id: "Good Electronica (playlist)"
        - name: "KIDS"
          type: source
          id: "Kids - English (playlist)"
        - name: "KULTURA"
          type: source
          id: "radio kultura (playlist)"
        - name: "CLASSIC"
          type: source
          id: "Classical Radio (playlist)"
        - name: "JAZZ24"
          type: source
          id: "Jazz24 Radio (playlist)"
        - name: "EUROPA2"
          type: source
          id: "radio2 (playlist)"

image

  - entity: media_player.forked_daapd_server
    type: custom:mini-media-player
    name: Music
    source: icon
    artwork: full-cover
    group: true
    hide:
      shuffle: false
      icon: true
      power: true
    shortcuts:
      columns: 4
      buttons:
        - name: "MIX"
          type: source
          id: "A: 4+5 Star (playlist)"
        - name: "JAZZ"
          type: source
          id: "Good Jazz (playlist)"
        - name: "ROCK"
          type: source
          id: "Good Rock (playlist)"
        - name: "POP"
          type: source
          id: "Good Pop (playlist)"
        - name: "CLASSIC"
          type: source
          id: "Classical (playlist)"
        - name: "BLACK"
          type: source
          id: "Good Black (playlist)"
        - name: "ELECTRO"
          type: source
          id: "Good Electronica (playlist)"
        - name: "KIDS"
          type: source
          id: "Kids - English (playlist)"
        - name: "KULTURA"
          type: source
          id: "radio kultura (playlist)"
        - name: "CLASSIC"
          type: source
          id: "Classical Radio (playlist)"
        - name: "JAZZ24"
          type: source
          id: "Jazz24 Radio (playlist)"
        - name: "EUROPA2"
          type: source
          id: "radio2 (playlist)"
Dillton commented 1 year ago

Up for this.