Wow @rhysb you are a machine! Just want to thank you for your help in this group. Iāve been using HASS for +5 years and mushroom + your tips have changed my look and feel tremendously!
Would you have a solution (or alternative route) for my Q posted here?
What is the best way to add a second row to the left of the double right row? (see photo)
Also I wonder; How do you add the content to make it all be in one row? I made a huge vertical and horiziontal card, that start to look quite messy now (see photo) Is it any easier way to do it, and still keep the row properly?
@rhysb jumped the gun a bit. Main title starts to wrap pretty quickly, especially on mobile but also on dekstop. See screenshot. Played around with the width % n above code but could not get if fixed. Suggestions?
Current beahviour of the button navigates to air conditoner page but you can change it with editing tap_action part. For example this code directly turns on and off the airconditioner instead of navigating to the page.
Working on my dashboard and I canāt seem to get the person card to show a mdi:car when the status is state is set to driving (or Driving). It shows the Home badge when the state is set to driving. all other badges seem to reference zones that I have configured in home assistant. Any way to get the badge to show a car when the person is driving?
Thanks, been having a play with this today and it seems to work but only if I hold the buttonā¦ if I just click it the animation stops playing as soon as the mouse button is released.
Is there any way to force it to finish up the animation ?
Here is what I have so far;
- type: custom:mushroom-template-card
primary: ''
secondary: Leave
icon: mdi:hand-wave-outline
layout: vertical
icon_color: green
tap_action:
action: call-service
service: scene.turn_on
service_data:
entity_id: scene.leave
card_mod:
style: |
ha-card:active mushroom-shape-icon {
display: flex;
animation: wave 2.5s;
}
@keyframes wave {
0% { transform: rotate( 0.0deg); }
10% { transform: rotate(14.0deg); } /* The following five values can be played with to make the waving more or less extreme */
20% { transform: rotate(-8.0deg); }
30% { transform: rotate(14.0deg); }
40% { transform: rotate(-4.0deg); }
50% { transform: rotate(10.0deg); }
60% { transform: rotate( 0.0deg); } /* Reset for the last half to pause */
100% { transform: rotate( 0.0deg); }
}
ha-card {
background: var(--card-background-color);
box-shadow: 0 0 4px 0px lightgrey !important;
width: auto;
border-radius: 10px;
margin-bottom: 2px;
}
Also, I seem to be having issues with some animations since the above applies it to the entire shape not just the iconā¦ so when I try to do clipping I get white blank partsā¦ canāt for the life of me figure out the right syntax though that will still allow me to use ha-card:active and the normal ha-card styling, along with selecting the ha-icon too.
I had a similar problem when I was setting up my person cards, although I used the template card. The issue I had was that I couldnāt compare some attributes from Life360 tracking. They just simply wouldnāt work. Even though in your example, you clearly have āDrivingā shown, I couldnāt compare that against any state_attrās.
I resolved the issue by setting up template senors and comparing those, that then worked ie:
- platform: template
sensors:
my_mobile_charging:
friendly_name: "My Mobile Charging State"
value_template: "{{ state_attr('device_tracker.me', 'battery_charging') }}"
Is it possible for the primary text of a card to be 2 lines?
Iām trying to make āDownstairs Bathroomā display as:
Downstairs
Bathroom
Itās too long on a single line and ends up overlapping with my chip cards. I donāt want to put Bathroom as secondary because Iām displaying other information as secondary.
EDIT: Found it
card_mod:
style:
mushroom-state-info$: |
.primary {
white-space: normal !important;
}
Absolutely amazing, this has got to be your best media player card yet!! Four questions:
The only downside is that, when the media player is turned off, it is a giant empty card. You could resize it to normal when the state is off (like the Apple TV in screenshot) but then the layout could shift too much on a tablet layout. Maybe the best is to not show the card at all in that case? Any ideas?
For some reason the blurred background goes beyond the rounded corners of the card? Itās almost not noticeable though. See screenshot from iPad.
Left/right margins seem to be unequal? Possibly because my whole vertical stack has a smaller width?
On my Android phone, the album art does not show and the whole ha-card:before part collapses to a few pixels height The album art does show correctly in your other media player cards.
You could put it in a conditional so that it doesnāt show when off. A better solution might be to have a generic image when the player is off. If you find any suitable ones let me know and I can add it.
Yes, I have seen that, but @theandouz was not seeing the same behaviour on his. It may depend on your version of Safari or iOS. Perhaps others could comment and we can see if there is a pattern.
Does it correct if you widen the column? The aspect-ratio should adjust correctly, perhaps another iOS quirk. You could try playing with margin: 4px 4px 16px; to see if you can correct.