Mushroom Cards - Build a beautiful dashboard easily šŸ„ (Part 1)

Hi @Roflcopterer
How beautiful it is.
Good jobā€¦
I have a small issue, have used your code, but as you can see, I get a white background on my weather map and my buttons and not the clean nice background you get, what could be the reason?

Does the latest version fix it? Did for me

Hi, is there any way to change the Icon color on the Mushroom Vaccum Card ?
Currently I do have this (the teal one), and it breaks my style :
image

Couldnā€™t figure out how to change the colorā€¦no property either in UI nor in Yaml.

Did you install ā€œCard modā€ as well? ( GitHub - thomasloven/lovelace-card-mod: šŸ”¹ Add CSS styles to (almost) any lovelace card )

Experiencing the same issue on an older iPad after the 2023.1 update I believe. Has worked for a year but now refuses to show any mushroom cards

Edit: Works after updating to the latest release of Mushroom carsd (2.5.2 released yesterday)

No, of course I havenā€™t, do I have to do thatā€¦ :slight_smile:
Itā€™s done now and thank you very much, it works :wink:

Great one!
I ve tried it but volume bar and volume buttons are not showingā€¦Any idea?

Hi, i want to resize my entity card but when i resize it remain a space betwen the card, somene know ho to remove it?
The code that i use is this:

type: custom:mushroom-template-card
primary: Cucina
secondary: ''
icon: mdi:knife
entity: switch.cucina
icon_color: |
  {% if is_state('switch.cucina', 'on') %}
    amber
  {% endif %}
tap_action:
  action: toggle
badge_color: ''
fill_container: false
multiline_secondary: false
card_mod:
  style: |
    :host {
      height: 90px;
      --mush-icon-size: 25px;
      --mush-icon-symbol-size: 0.7em;
      --mush-spacing:10px;
      
    }

image

thanks.

You are trying to adjust the height of the Shadow Host. You need to adjust the height of the Card, like this:

card_mod:
  style: |
    :host {
      --mush-icon-size: 25px;
      --mush-icon-symbol-size: 0.7em;
      --mush-spacing:10px;
    }
    ha-card {
      height: 90px !important;
    }

Does your media player entity support volume?

You can change the Vacuum State Color for a specific card with card_mod like this:

card_mod:
  style: |
    :host {
      --mush-rgb-state-vacuum: var(--rgb-deep-orange);
    }

Or globally in your theme like this:

mush-rgb-state-vacuum: var(--rgb-deep-orange-color)
1 Like

Oh nice !! didnā€™t think about card-modā€¦
many thanks, greatly appreciated !!

1 Like

There are Node-Red Companion and entities

ŠøŠ·Š¾Š±Ń€Š°Š¶ŠµŠ½ŠøŠµ

been looking for this throughout the whole threadā€¦ so possibly missed it :wink:

what I am looking for is a regular card (like a tile card) for toggle entities, and have it show a lock, so we can not accidentally toggle it. If actually clicking it I need a confirmation.

Ive tried something like:

        - type: tile
          entity: switch.espresso_keuken
          name: Espresso
          tap_action:
            action: toggle
            confirmation:
              text: Are you sure you want to toggle?
            service: switch.toggle
            data:
              entity_id: entity

in core frontend, but the is silly really. Forst of all, as you can see we need to declare the entity twice, but more importantly, the confirmation only works when you click the name. Clicking the icon simply toggles right away without warning.

compared to old school entities :

for switch (top entity) or script (bottom entity). thereā€™s no way around confirmingā€¦

can this be done using mushroom?
thx!

1 Like

Is there a way on a:
mushroom-light-card to have ā€˜show_color_controlā€™ be dynamic based on an entity?

Like:

entity: light.wled
    show_color_control: |
      {% if is_state("input_boolean.someotherentity", "off") -%}
        false
      {%- else -%}
        true
      {%- endif %}

I have tried every combination of if/then and |, |+, > to start it I can find and nothing works. Any help would be appreciated.

Thanks!

Did you look into restriction-card? However not sure if that can be combined with mushroom. Never tried

Yes, itā€™s sonos device.It seems to be a graphical, if i click on the volume zone, itā€™s changing the volume. But i canā€™t see the volume bar or volume button.
Iā€™ll try a screenshot tomorrow

You can just do toggle without specifying the service:

tap_action:
  action: toggle
  confirmation:
    text: Are you sure you want to toggle?

You can disable the Tile Card icon action like this:

icon_tap_action:
  action: none

Otherwise love-lock-card gives a lot more control.

You could try something like this:

card_mod:
  style: |
    .actions {
      {{ 'display: none !important;' if not is_state(config.entity, 'on') }}
    }
    mushroom-state-item {
      {{ 'margin-bottom: 0px !important;' if not is_state(config.entity, 'on') }}
    }

Yes, both restriction-card and love-lock-card work with Mushroom.

1 Like