The example illustrates how to move down the DOM tree into the shadow-root elements. I don’t see that in your examples and maybe this is the same challenge.
PS: I noticed in my tests that on your example, the icons in my test player still changed to red when removing ha-icon and ha-svg-icon, just leaving mmp-shortcuts and :host
I am using a “Google Chromecast with Google TV” attached to my TV. I wanted to use this media player card to control the chromecast almost exclusively (TTS and so on) - but I want the volume slider to control the TV volume instead. (Its not possible to sync them with my current setup)
TL;DR Is it possible to set up the mini media player to control the volume of another device? Do I need to create a universal media_player/remote that combines both of these devices instead?
Fair enough. Do you have any experience with doing that? I will play around with it tonight, but I’m wondering if I can pass on features like the artwork and the text to speech to the universal media player.
If I try to type full-cover-fit manually (YAML), I just get an error:
Configuration errors detected:
* No type provided.
[Edit] I think perhaps I’ve stumbled across a bug in Lovelace/HA. No matter how and what I tried, I could not successfully enter artwork: full-cover-fit
But when I entered the Raw Configuration Editor i managed to enter it, and it works
Looking for some help with a Volume Slider script and 4 input_select.media_players. Let me try to explain what I am trying to accomplish.
I am trying to change the volume of what ever media player that my input select is set to. I have chosen to hid all the controls for the card and decided create stand alone controls. I have create a input_number for the volume slider
List item
input_number:
media_player:
name: Volume Control
min: 10
max: 80
step: 1```
* List item
this is my script that i have been trying to work on. The basic premise is that it would recognized the input selected media player and only change that one's levels
``` media_volume:
alias: "Set Media Player Volume"
sequence:
- service: media_player.volume_set
data_template:
entity_id: >
{% if is_state("input_select.media_player", "Office Sonos") %} media_player.sonos_connect
{% elif is_state("input_select.media_player", "Kitchen/Dining Sonos") %} media_player.kitchen_dining
{% elif is_state("input_select.media_player", "Patio Sonos") %} media_player.patio
{% elif is_state("input_select.media_player", "Denon AVR-X4500H") %} media_player.denon_avr_x4500h
{% elif is_state("input_select.media_player", "Jeffery") %} media_player.googlehome1790
{% endif %}
volume_level: {{ states.input_number.media_player.state }}```
Now I am not apposed to taking a different path that what I have tried , just is just what I thought would be the best option.
I use mini media player with my Sonos where Spotify playlists you mark as a favourite in the Sonos app, show up as a selectable source.
Is there an easy way of presenting all these media player sources in a more attractive format, without manually creating a load of button entries that i have to modify as i change my favourite playlists? Ideally i’d like a grid of shortcut buttons, or even a list. Can I do that with mini media player? Or is there another card I can use?
It is weird that the docs provide 5 options for artwork -
cover to display current artwork in the card background, full-cover to display full artwork, material for alternate artwork display with dynamic colors, none to hide artwork, full-cover-fit for full cover without cropping.
But the options in the ui are named slightly different -
Hey Kalkih, I am trying to create a skip back and skip forward for my media players and came across your efforts to make something similar. I have tried to test it out in templates "{{ state_attr(media_player.sonos_connect, 'media_position') | float + interval }}"but am only getting thisUndefinedError: 'media_player' is undefine. Is this still the best approach? What am I missing?
I got the mini player working with “group Sonos speakers” functionality.
However, I expected that sliding the main volume, the volume of the grouped speakers would follow ?
Can this be done ?