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

Although not mushroom, I like the custom:mini-graph-card. Install via HACS.

Screenshot 2023-08-01 at 13.01.45

Use either one of these two custom_components:

As said above from @siwilson, mini-graph-card

or for all fancy graphics, the really, really cool, apex-charts-card

Do you mean the blue background of the icon?

If so does something like this work for you?

card_mod:
  style:
    mushroom-shape-icon$: |
      .shape {
        width: 100px !important;
        border-radius: 10px !important;
      }

Yes, thatā€™s exactly what Iā€™m looking for!
Unfortunately this doesnā€™t seem to work for me.

Schermafbeelding 2023-08-01 153842

This is the code Iā€™m trying for this card:

type: custom:mushroom-template-card
primary: Home
secondary: ''
icon: mdi:arrow-left
icon_color: ''
tap_action:
  action: navigate
  navigation_path: /lovelace-mushroom/Home
hold_action:
  action: none
double_tap_action:
  action: none
card_mod:
  style: |
    ha-card {
      box-shadow: 0px 0px;
      border-radius: 20px;
      margin-top: 5px;
    }
    mushroom-shape-icon$: |
      .shape {
        width: 100px !important;
        border-radius: 10px !important;
      }

Ah you need to do this:

card_mod:
  style: 
    mushroom-shape-icon$: |
      .shape {
        width: 100px !important;
        border-radius: 10px !important;
      }
    .: |
     ha-card {
       box-shadow: 0px 0px;
       border-radius: 20px;
       margin-top: 5px;
     }

Cant have 2 instances of | under eachother without splitting it with .:
Think of the .: as resetting yourself back to style where you can then drill further down into the elements.

4 Likes

This seemed to do the trick.
Thanks so much!

1 Like

Thanks @paddy0174 and @siwilson . Unfortuantely Iā€™m stuck with the installation of this mini graph card.

Any tips?

I installed via HACS and missing resource reference. I add

resources:

  • url: /local/mini-graph-card-bundle.js?v=0.11.0
    type: module

to configuration.yaml but am getting errors.

Integration error: resources - Integration ā€˜resourcesā€™ not found.
Integration error: type - Integration ā€˜typeā€™ not found.

Also tried the graphical editor method - but donā€™t know where to find Configuration ā†’ lovelace dashboards and resources tab. Is this somehwere in HACS?

No, no need to add anything to configuration.yaml. Once installed via HACS it should appear as a choice when adding cards to a dashboard.

Awesome @siwilson - I was thinking too hard.

Challenge is that my sensor requires a different approach. Itā€™s working for 50%. See NaN screenshot.

Iā€™m using this code in a custom vcard to get it:
{{ state_attr(ā€˜climate.bijkeukenā€™, ā€˜current_temperatureā€™) }}Ā°C

Any ideaā€™s on how to integrate that in the code of mini graph? The HVAC temp card also works without additional code when I set the temperator mode to on in the vcard.

type: custom:mini-graph-card
entities:
  - entity: climate.thermostat
    attribute: current_temperature

I would suggest you read the github page of content you install. It is within the first couple of sections on how to use the card.

1 Like

Thanks Dimitri this works. Will read the docs better next time.

1 Like

how did you do this ā€œLiving Areadā€ in the same line can you give me the code?

Happy to share, not sure which bit it is that you like?

This is what my climate page looks like now. Itā€™s a simple-thermostat card on the top for controlling the air, then each zone is done using a mushroom climate card. This is because of how my izone air conditioning controller handles individual room temperatures.

The code for the living area part is below, but thereā€™s nothing tricky about that, so not sure itā€™s what youā€™re asking for?

type: custom:mushroom-climate-card
entity: climate.living_area
fill_container: true
hvac_modes: []
show_temperature_control: true
collapsible_controls: true
icon: mdi:sofa-outline
hold_action:
  action: more-info
layout: horizontal
1 Like

Hi, congrats on the cardsā€¦
I also created everything with mushroom cardsā€¦
But I canā€™t get the animations to workā€¦
Can you help me?
Thank you

Hi,
i donā€™t see the notifications badge on the bell.

I used only one sensor group but itā€™s not wok

the code below

type: custom:stack-in-card
cards:
  - type: custom:mushroom-chips-card
    chips:
      - type: menu
      - type: template
        content: '{{ now().strftime("%A, %-d %B") }}'
        card_mod:
          style: |
            /* Style date & time */
            ha-card {
              --chip-box-shadow: none;
              --chip-background: none;
              --chip-border-width: 0;
            }
      - type: template
        entity: input_boolean.notifications
        icon: mdi:bell
        tap_action:
          action: toggle
        hold_action:
          action: none
        card_mod:
          style: |
            /* Notification indicator */
            ha-card:after {
              /* Turn on indicator if there is a notification */
              {% set notifications = (expand(states.light.tutte_luci) | selectattr('state', 'eq', 'on') | list | count)
              {% if notifications >= 0 %}
                content: "";
              {% endif %}

              /* Position & style notification */
              position: absolute;
              background: rgb(var(--rgb-red));
              border-radius: 50%;
              top: 6px;
              right: 6px;
              width: 8px;
              height: 8px;
            } 

Post your yaml and we can help :slight_smile:

Home Assistant Unavailable Entities Chip

image

Page Properties:

  • Displays the list of offline entites in the topbar(or anywhere you place it)
  • Dynamic icon that changes with the number of unavailable entities. If nothing is offline the icon changes.
  • Browser Mod support. If you click the icon a new page, containing the list of unsupported devices will appear.
  • Number Display. You will see the number of the offline devices inside the chip.

You can find everything in my github page.

8 Likes

Hey, somone know how to include the humidity?
THX

I dont believe that you can. but you can do something like this if you have card mod and stack in card installed.
image

type: custom:stack-in-card
cards:
  - square: false
    columns: 2
    type: grid
    cards:
      - type: custom:mushroom-climate-card
        entity: climate.bedroom_heating
        name: Thermostat
        show_temperature_control: true
        layout: horizontal
        card_mod:
          style: |
            ha-card {
              width: 300px
            }
      - type: custom:mushroom-entity-card
        entity: sensor.bedroom_temperature_humidity_humidity
        name: Humidity
        card_mod:
          style: |
            ha-card {
              width: 150px;
              position: absolute;
              right: 25px;
            }

Could even do something like this that works on a smaller screens if you are ok with using the default layout instead.

type: custom:stack-in-card
cards:
  - square: false
    columns: 2
    type: grid
    cards:
      - type: custom:mushroom-climate-card
        entity: climate.bedroom_heating
        name: Thermostat
        show_temperature_control: true
        card_mod:
          style: |
            ha-card {
              width: 380px
            }
      - type: custom:mushroom-entity-card
        entity: sensor.bedroom_temperature_humidity_humidity
        name: Humidity
        card_mod:
          style: |
            ha-card {
              width: 150px;
              position: absolute;
              right: 5px;
              transform: scalex(-1);
            }
            mushroom-state-info {
              transform: scalex(-1);
              text-align: right;
            }
3 Likes

Please read the FAQ.

Only english is supported.