You can use a stack-in card to build what you want. Here’s a quick mock-up using mushroom media card, mushroom template cards, stack-in card, and card mod to remove the borders between the cards. You could use chips in place of the template cards if you wanted to slim it down some. Disregard the playlist icons, i copied some code from my welcome card
I do this a lot in my mobile dashboard. I’ve built a custom welcome card, custom person cards, and some others that all keep the look/feel of the original mushroom cards but combine them to make them into one card. I think it works well.
What are you all using to reuse code like this over and over again? I want to use the chip below for each room and don’t want to copy and paste this large block of code. Are you using decluttering card or something like it?
wow a new Home assistant user and blown away by this! thx @piitaya !
so I have a few silly newer question
I have used chips to look at state of door locks and door open. im trying to get the door unlock and door open state to color the entity in red when unlocked and open. problem is they both seem to act the opposite way
ie for the locks I have this
type: entity
entity: lock.patio_door
icon_color: green
name: Patio
use_entity_picture: false
now I can’t figure out how to make the lock green when locked but red when unlocked?
on the flip side for the contact sensor, its colorless when closed and would be great to also have it in green when closed.
finally is there a way to keep the state of the device (ie shutter open) yet also name the actual entity so I can tell the difference between my many devices (ie shutters, locks etc)
Question- Does a browse media button exist for the Media Card? Just wondering if I have somehow missed it in the configuration for the card. Thanks for all these wonderful Mushroom Cards!
For state based coloring or naming you have to use the template chip as stated several times in this thread.
The code for your lock should be something like this:
{% if is_state('lock.patio_door', 'locked') %}
green
{% elif is_state('lock.patio_door', 'unlocked') %}
red
{% endif %}
AFAIK chip cards do not have a secondary info and in the template chip you only have content to fill and I don’t think you could put a line break in other cards than markdown.
But when you accomplished the coloring you could just put the name of the lock in the content field of the card.
I recently build my first dashboard (using HA before mainly for automations) using Mushroom cards and in love with what you can make with them. Amazing work by the author of them. Just wanted to add that positive message to this topic as support for the author.
thanks. using template card, I have this but how can I get rid of the colored background circle and space before the text (or ideally have the icon and numbers fit inside the colored circle)?