Has anyone achieved an âincludeâ card?
ie - I have set up a mobile view in KIOSK mode and every single one on my pages utilizes a shared or similar chips navigation header.
So if I have 20 linked pages of information, each has the same top menu. However currently they need to be individually edited.
Is there a way to âincludeâ one header file that can be shared over multiple pages and only edited it in one place?
Would desperately love to see this too - for the exact same reason. Tried looking into it but itâs well beyond my CSS skills.
Iâd recommend looking into decluttering card
Thanks @pedolsky good to see the request is already there, hopefully it will get picked up and implemented as it would be a really handy feature.
That code isnât designed for the front end. It wonât update properly, youâll need to add
{% set x = now() %}
At the beginning
Of course you know better (since you wrote it ) but it is still the shortest and straight forward code I saw around here in this regard and I am still âstudyingâ it. so though to point to it for common benefit.
Has anyone here been able to set the color for the icon and slider on the mushroom cover card? I have tried this, using the theme, but canât seem to get it to work. It keeps displaying with the blue color instead of the mushroom brown color that I prefer to use.
This does not work so it seems. I added it to my mushroom config, but the icon and slider color stays blue.
Use
mush-rgb-state-cover-open: var(--mush-rgb-brown)
mush-rgb-state-cover-closed: var(--mush-rgb-pink)
Output:
The Mushroom theme is âunderâ the normal theme. It only changes the corners to be round or square etc.
If you want the Mushroom theme to be powerful, make your own theme and put all of the mushroom variables in it.
So start with this in your theme: as stated âBuild you ownâ.
It is still depending on the basic theme, but you get the feelingâŚ
Thank you.
I must be doing something wrong I think. I copied the code, but its still the default color. I have set mushroom (not Mushroom square) as my theme. And I edited the themes/mushroom/mushroom.yaml file and added the lines. Am I missing something?
Try and go to developer and call the service to reload the theme.
Might work.
No luck. Restarted HA. Even rebooted the whole host. Something is incorrect. I tried a different browser and the incognito option as well. Itâs still blue.
Mushroom:
# Home Assistant override
ha-card-box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.16)
ha-card-border-radius: 12px
modes:
light: {}
dark: {}
# Mushroom cover card
mush-rgb-state-cover-open: var(--mush-rgb-brown)
Got it. Seems like I reloaded the theme incorrectly and the color variables were missing in my theme. Itâs working now. Thanks to all helpers.
Is it possible to color the background of the chip based on conditions? I.e. if a door sensor is closed, color the chip background green.
I have noticed that my mushroom cards will render, but entity cards with actions such as navigate do not function. This is such a shame, I hope it gets fixed soon.
Mine work perfectly, so must be something wrong in your setup
Hi!
I have a sensor that give me the number of lights turned on. Works great, but the Template Chip, if the return of sensor is 0, doesnât print anything.
I have been trying several ways to acomplish this, but itâs impossible.
{{ states("sensor.current_lights_on") }}
{% if is_state("sensor.current_lights_on", "0") %}
0
{%- else -%}
{{ states("sensor.current_lights_on") }}
{%- endif %}
{{ '0' if is_state('sensor.current_lights_on', '0') else states("sensor.current_lights_on") }}
Doesnât matter the way i try, in Mushroom Template Chip, doesnât works
Any ideas?