Another option is to use the template card and media card (whiteout icon, primary info and secondary info) and use the stack card. Than you don’t need to use card mod and are flexible where what info is presented.
for example:
type: custom:stack-in-card
keep:
margin: true
cards:
- square: false
columns: 1
type: grid
cards:
- type: custom:mushroom-template-card
primary: |-
{% set s = state_attr(entity, 'source') %}
{% if s %} Spotify - {{s}}
{% else %} Spotify
{% endif %}
secondary: |-
{% set a = state_attr(entity, 'media_artist') %}
{% set t = state_attr(entity, 'media_title') %}
{% if a %} {{a}} - {{t}}
{% else %} Beschikbaar
{% endif %}
icon: mdi:spotify
entity: media_player.spotify_secondary
icon_color: |-
{% set s = state_attr(entity, 'source') %}
{% if s %} deep-orange
{% else %} disabled
{% endif %}
fill_container: true
tap_action:
action: more-info
- type: custom:mushroom-media-player-card
entity: media_player.spotify_secondary
fill_container: true
media_controls:
- shuffle
- previous
- play_pause_stop
- next
- repeat
collapsible_controls: true
icon_type: none
primary_info: none
secondary_info: none
Hey I know your one of the coding experts on here . I’m trying to use the mushroom fan card slider to control my 6 speeds on fan . Currently I have 6 seperate buttons set as scripts for the RF BroadLink hub
I found entity-row-slider but my issue is I need it to look like a mushroom card and mushroom slider. Am this be done with fan or template card?
HA and Mushroom should automatically take care of it. I have a tuya based fan controller and I didn’t have to do anything special in Mushroom to get the slider on the fan card to work.
I feel like I still might have trouble because I had to manually program each speed button as a script for this fan. The fan itself is in a smart fan I had to use an RF hub. Good to know though for future fans I might set up. Thanks
Oh yes, for a RF controlled fan you won’t get the slider working correctly. A really hacky way would be to use an input helper from 0 to 100 and use that as the slider. Then you can create an automation to send the appropriate RF signal based on its value.
I have a mushroom slider pointing to a media_player for one of my TVs. This is my first attempt at using these cards as I like the look, especially of the slider. In the past I used Vol+, Vol- buttons but my wife hates the constant tapping. What I have in the YAML is:
What I have observed is a fairly large lag between adjusting the slider and the TV volume control, perhaps one or two seconds or more. I have also noted that it appears I cannot slide more than like 12% at a time, while the slider will go the full length, when I let go it snaps back to about 12% more than the previous setting.
Both of these kinda make this unusable. Is there a better way or is my YAML wrong or?
It appears that a constant volume up is not sent, it merely sends only the end value. But then the end value is limited by 12%. Is this the way it works? Or possibly it sends 40 volume up commands too fast and ends up not at the real volume desired? And as a result, the slider and TV volume get out of sync for a bit.
If yes, would it just be better to create an input_number with some automation to send the final volume number to the media_player? NOTE: I do not even see how to do that as I see no “Mushroom Slider Card” or “Input Number Card” that would be a slider.
Amazing, that’s brilliant. I spent ages looking through the mmp package yaml trying to pick out how they get an accent colour from the artwork and then blend it plus in chrome developer tools. (But I don’t know what im doing)
Of course (this is without the attempt to put in the mushroom card). You make have to hack things apart as this is DirecTV and also Vizio Smartcast all in one control for many TVs in my house.
I think I am going to try this on some dimmable lights too, but I would suspect the same issue. Certainly folks that show volume control in their setup could respond as possibly I am wrong, but that is not user friendly whatsoever.
Is there any way to change the border radius of the img_cell? I am trying to not have a round circle but one with a similar radius to the card itself, a rounded square if you will!
I’m using Universal Media Player to provide currently playing controls on my dashboard. I also use Universal Media Player to combine the Windows HTPC volume control with Plex media controls.