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

Also with this code I get only a black circle.

Bildschirmfoto 2022-07-03 um 09.45.10

If I put this code in the template tool, it correctly replaces that {{ phase }} in waxing crescent.png

And if I put the /local/moon_phases/waxing_crescent.png behind my HA domain I see the picture:

Bildschirmfoto 2022-07-03 um 09.45.18

perfect that works.

But now I still have entities that are not on or off. But have value.

e.g. b. a humidity. Now I only want to display the heading if at least one entity is over 50%.

What code can I use to do this?

Do you have card-mod installed?

Have you included the themes dir in your configuration.yaml?

frontend:
  themes: !include_dir_merge_named themes

Sorry, I didnā€™t realize I had to have this installed. It works now.

This worked and because of piitayaā€™s warning I wonā€™t use it. I did think of removing the word lights and I will just do that.

If I ever really need this, I will use minimalist if this would work with some modifications. Thank you for the help.

What tag I should target to? I asked because I tried, but I couldnā€™t make it work. :sweat_smile:

Thatā€™s an awesome card!!! My problem is the image Iā€™m trying to show is a map of my location that changes so there is no static url I instead am trying to use it like this->

{{ state_attr('sensor.john', 'map_link') }}

I created a sensor.mapinfo to try and use which is redundant as itā€™s the same infoā€¦

If I could find a picture card of some kind that I can use that will allow me to use a template Iā€™d be happy with just thatā€¦ the popup I can figure out afterā€¦just getting the image to show up has been the challengeā€¦ Iā€™m sure itā€™s been done but I cannot find anything that works.

OHhhhhhhh ok I found the map cardā€¦ it shows now I can work on the actual popup stuff :slight_smile:

I really wanted to use the above info as it updates quite frequentlyā€¦ more then the map card does.

Thank you! Thatā€™s a wee bit above my pay grade at the moment :rofl:
I looked at itā€¦and decided for now Iā€™ll just show the mapā€¦ when I get better at this Iā€™ll try that.
Right now Iā€™d just drive myself insane trying that.

person

1 Like

chip-background sets the background for the chip, instead of adding an entity picture.

Do you mean the white lightstrip card?

This one.

Yep. The theme works perfectly on everything except entity card items

So, after long hours I managed to write my own mushroom page. First of all I would like to thank @rhysb for the lovely codes he shared throughout the page. He has done an amazing job. And also @Boostin4HP for inspiring me with the homepage setup and the code he shared. Finally @piitaya you have done an amazing job with creating this project. I hope you will get what you deserve. For me, Mushroom must be implemented to Home Assistance main setup.

So I have created 1 dashborad for pc, 2 separate dashborads for tablet and 1 dashboard for mobile. And now I have also created another mobile page. Here are screenshots :

This is the main page for my mobile.

And this is when tabs are expanded.

This is full screen tablet mushroom page.

This is another full screen tablet page with sidebar.

This was the mobile page I was using until today.

I have also other pages rather then the main page like:



Thanks again for everyone who has a share.

15 Likes

look very nice. Is there any you could share the code?

Yes sure but for which one ? :slight_smile:

thank you for your quick reply. The dashboard

Post the card(s) you are wanting to add it to and we can advise

Fair enough :grinning_face_with_smiling_eyes:

type: vertical-stack
cards:
  - type: custom:mushroom-title-card
    title: Estado energƩtico
  - type: custom:mushroom-chips-card
    chips:
      - type: entity
        entity: input_select.energy_system_mode
      - type: entity
        entity: input_select.energy_battery_chargecurve
      - type: entity
        entity: input_number.energy_settings_battery_capacity
      - type: entity
        entity: sensor.energy_battery_soc
      - type: entity
        entity: sensor.energy_battery_voltage
  - type: custom:bar-card
    entities:
      - entity: sensor.energy_acsources_grid_power
        max: 4500
      - entity: sensor.energy_pvsources_total_power
        max: 9000
      - entity: sensor.energy_battery_power
        min: -5000
        max: 5000
      - entity: sensor.energy_acloads_critical_power
        max: 7300
      - entity: sensor.energy_acloads_diverter_power
        max: 7300
      - entity: sensor.energy_acloads_ev_power
        max: 7300
    card_mod:
      style: |
        ha-card {
          background: rgba(var(--rgb-card-background-color), 0.9) url( '/local/solar_production.jpeg' ) center no-repeat;
          background-size: cover;
          background-blend-mode: overlay;
        }

I thought it could be nice to have that background on the whole vertical stack and also giving it the same round corners. Being the nested cards darker, but tamping with hui-vertical-stack-card element didnā€™t work.
Itā€™s the same code, but reducing the indentation and with said tag. #root doesnā€™t work either.

imagen

Can you link to a PNG or JPG for an entity icon? I dont like any of the MDI ones and I found one online. I tried entering in the path to JPG in the icon field but it didnt like it.

Or I could use a template card but then how do I get the secondary information in the template card to show the data from an input number helper? So for example, I have INPUT_NUMBER.RAINFALL_FRIDAY. I would I get the data in that helper to display in the secondary informaiton of a template card?