Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide media_buttons when player off #49

Closed
gerard33 opened this issue Dec 28, 2018 · 1 comment
Closed

Hide media_buttons when player off #49

gerard33 opened this issue Dec 28, 2018 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@gerard33
Copy link
Contributor

Can you add a possibility to hide the media_buttons when the media player is off?

I am using these for my TV, but that needs to be switched on before the buttons work. And it looks a bit cleaner when the buttons are hidden when the TV is off.

@gerard33 gerard33 changed the title Hide media_buttons Hide media_buttons when player off Dec 28, 2018
@kalkih kalkih added the enhancement New feature or request label Dec 28, 2018
@kalkih kalkih added this to the v1.0.0 milestone Dec 28, 2018
@kalkih
Copy link
Owner

kalkih commented Feb 3, 2019

This is now available in v1.0.0 through the hide_when_off option.
The media_buttons option has been moved and reworked, see the new shortcuts option, check out the updated README for the new configuration.

Here's an example

- entity: media_player.spotify
  type: custom:mini-media-player
  artwork: cover
  hide:
    source: true
    controls: true
  shortcuts:
  hide_when_off: true
    buttons:
      # Start predefined playlist
      - name: Favorites
        icon: mdi:heart
        type: playlist
        id: spotify:user:spotify:playlist:37i9dQZF1DZ06evO2O09Hg
      # Change the source to bathroom
      - name: Bathroom
        icon: mdi:speaker-wireless
        type: source
        id: Bathroom

Thanks!

@kalkih kalkih closed this as completed Feb 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants