kalkih / mini-media-player

Minimalistic media card for Home Assistant Lovelace UI
MIT License
1.47k stars 206 forks source link

can't hide power button #841

Closed IoSonoAndreaZ closed 3 weeks ago

IoSonoAndreaZ commented 1 month ago

Hi, just discovered this nice project. I'm trying to create a player without the power button.

My code so far:

card:
  type: custom:mini-media-player
  entity: media_player.plex_plexamp_krogpc_skylake
  group: true
  volume_stateless: false
  artwork: cover
  source: full
  sound_mode: icon
  info: scroll
  replace_mute: stop
  tap_action: false
  volume: false
  power: false

however i can't seem to hide power e volume bar, what i'm doing wrong?

allannk commented 3 weeks ago

Check out the hide section of the documentation, I think you should put the volume/power under the hide:-section


card: 
  type: custom:mini-media-player
  < your other configurations >
  hide:
    volume: true
    power: true
IoSonoAndreaZ commented 3 weeks ago

I think you should put the volume/power under the hide:-section

thanks, it worked