kalkih / mini-media-player

Minimalistic media card for Home Assistant Lovelace UI
MIT License
1.49k stars 205 forks source link

Possbile to add "playing now" info, as it is displayed in the HA Media Control Card? #650

Open mptpro opened 2 years ago

mptpro commented 2 years ago

The mini-media-play does everything I need, except 3 things.

  1. I can't seem to get it to show the "playing now".
  2. The mute button doesn't work, but I can add it as a Button.
  3. the progress bar doesn't seem to be accurate, but it is accurate in the Media Control Card.

thanks!

image

sergiomart96 commented 2 years ago

I love your example, could you pass the code?

mptpro commented 2 years ago

I love your example, could you pass the code?

Sure. I assume you want the one for the Roku.

type: custom:mini-media-player
entity: media_player.patio_roku
artwork: none
info: scroll
source: full
volume_stateless: true
sound_mode: icon
group: true
icon_state: true
hide:
  mute: false
  power: false
  volume_level: true
  name: false
  icon: false
  progress: false
  runtime_remaining: false
  sound_mode: false
  controls: false
  jump: true
  runtime: false
shortcuts:
  columns: 4
  hide_when_off: true
  buttons:
    - icon: mdi:volume-off
      type: service
      id: remote.send_command
      data:
        entity_id: remote.patio_roku
        command: volume_mute
    - name: Settings
      type: service
      id: remote.send_command
      data:
        entity_id: remote.patio_roku
        command: info
    - icon: mdi:keyboard-return
      type: service
      id: remote.send_command
      data:
        entity_id: remote.patio_roku
        command: back
    - icon: mdi:circle
      type: service
      id: remote.send_command
      data:
        entity_id: remote.patio_roku
        command: select
    - icon: mdi:rewind
      name: 1m
      type: service
      id: remote.send_command
      data:
        entity_id: remote.patio_roku
        command:
          - left
          - left
          - left
          - left
          - left
          - left
          - left
          - left
          - left
          - left
          - select
    - icon: mdi:rewind
      name: 30s
      type: service
      id: remote.send_command
      data:
        entity_id: remote.patio_roku
        command: replay
    - icon: mdi:arrow-up-bold
      type: service
      id: remote.send_command
      data:
        entity_id: remote.patio_roku
        command: up
    - icon: mdi:arrow-down-bold
      type: service
      id: remote.send_command
      data:
        entity_id: remote.patio_roku
        command: down
    - icon: mdi:fast-forward
      name: 1m
      type: service
      id: remote.send_command
      data:
        entity_id: remote.patio_roku
        command:
          - right
          - right
          - right
          - right
          - right
          - right
          - select
    - icon: mdi:fast-forward
      name: 5m
      type: service
      id: remote.send_command
      data:
        entity_id: remote.patio_roku
        command:
          - right
          - right
          - right
          - right
          - right
          - right
          - right
          - right
          - right
          - right
          - right
          - right
          - right
          - right
          - right
          - right
          - right
          - right
          - right
          - right
          - right
          - right
          - right
          - right
          - right
          - right
          - right
          - right
          - right
          - right
          - select
    - icon: mdi:arrow-left-bold
      type: service
      id: remote.send_command
      data:
        entity_id: remote.patio_roku
        command: left
    - icon: mdi:arrow-right-bold
      type: service
      id: remote.send_command
      data:
        entity_id: remote.patio_roku
        command: right
replace_mute: null