Did you find a solution? Iâm in the same boat. I donât see it in Lovelace. I can see other custom cards installed by HACS but not the mushroom card.
Your code will work. However it requires you to immediately reload the that page to actually apply the edit mode.
No, unfortunately not. I also have other custom cards working but canât get Mushroom cards to show up.
Iâm sorry for being late, but hereâs my config for the conditional chip:
type: conditional
conditions:
- state: 'on'
entity: group.indoor_lights
chip:
type: entity
entity: group.indoor_lights
icon_color: amber
icon: mdi:lightbulb-on
tap_action:
action: more-info
hold_action:
action: call-service
service: light.turn_off
service_data: {}
target:
entity_id: group.indoor_lights
double_tap_action:
action: more-info
Hereâs a template chip where you can put a template for the icon_color
(but I just picked âlight-blueâ without a template):
type: template
content: '{{ states(entity) }} °F'
icon: '{{ state_attr(''sensor.outside_temperature_trend_text'', ''icon'') }}'
tap_action:
action: fire-dom-event
browser_mod:
command: more_info
entity_id: sensor.outside_temperature
large: true
icon_color: light-blue
entity: sensor.outside_temperature
By the way, an idea for improving the visuals: I would go ahead and put a mandated spacing between separate columns in the UI. When thereâs no space, everything looks too confusing on a screen wider than a cellphoneâs. I managed this in custom CSS (and nicer headers that match the UI Lovelace Minimalist by making them bold) by doing this, though I donât think any of it can be done using themes, but as an integration developer, you may have a way around that:
.columns {
flex-wrap: wrap; # (or flex-flow: row wrap;)
column-gap: 50px;
}
.column {
min-width: 360px;
}
.card-header {
font-weight: bold;
}
@Lunkobelix @Datwood2009 When I installed Mushroom a couple weeks ago, it wouldnât work. I found out eventually that if I went to Settings â Dashboards â Resources, instead of saying /hacsfiles/lovelace-mushroom/mushroom.js?hacstag=xxxxxxxxxxx
, it said /hacsfiles/lovelace-mushroom/null?hacstag=xxxxxxxxxxx
(notice the null
there).
I had to manually replace it with mushroom.js
(and then clear my browser cache) for it to work. Maybe you guys have the same problem.
Thank you for your help! Was a bit surprised that I donât have any reference at all to Mushroom under Resources. Shouldnât that be added there automatically? I just today got an update notification for a new version to Mushroom so it is installed (and I have reinstalled it and rebooted).
Any way to fix the text âMaster Bedroomâ? I would like it center it and have it on one line.
EDIT: Using a title card
Hmm it should, but itâs flaky apparently. Try adding the one I showed in there, restart HA, clear browser cache, and see what happens.
Hello, congratulations for the interface, it is wonderful.
I use card-mod and Iâm trying to make an icon animation in a mushroom-entity-card but I canât access the icon part.
For the styles of the car, I have put the following and it works very well but to make an animation in the icon nothing at all. Does anyone know what I should put?
icon_color: yellow
style: |
ha-card {
{% if is_state(âswitch.luz_bano_papas_l2â,âonâ) %}
âcard-mod-icon: mdi:fan;
{% else %}
âcard-mod-icon: mdi:bathtub-outline;
{% endif %}
margin: 1px;
box-shadow: 1px 1px 3px 1px gray;
{% if is_state(âswitch.light_bathroom_papas_l2â,âoffâ) %}
âcolor1: {{states(âinput_text.colorâ)}};
{% else %}
âcolor1: yellow;
{% endif %}
âcolor2: {{states(âinput_text.colorâ)}};
border-radius:5px;animation: animation 4s line inf2inite;
-webkit-animation-name: test;
-webkit-animation-duration: 2.5s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-direction: alternate;
-webkit-animation-timing-function: linear;
}
@keyframes test {
00%, 09%{background: linear-gradient(to right, transparent 80%, var(âcolor1, var(âcolor2)) 130%);}
10%, 19%{background: linear-gradient(to right, transparent 81%, var(âcolor1, var(âcolor2)) 130%);}
20%, 29%{background: linear-gradient(to right, transparent 82%, var(âcolor1, var(âcolor2)) 130%);}
30%, 39%{background: linear-gradient(to right, transparent 83%, var(âcolor1, var(âcolor2)) 130%);}
40%, 49%{background: linear-gradient(to right, transparent 84%, var(âcolor1, var(âcolor2)) 130%);}
50%, 59%{background: linear-gradient(to right, transparent 85%, var(âcolor1, var(âcolor2)) 130%);}
60%, 69%{background: linear-gradient(to right, transparent 84%, var(âcolor1, var(âcolor2)) 130%);}
70%, 79%{background: linear-gradient(to right, transparent 83%, var(âcolor1, var(âcolor2)) 130%);}
80%, 89%{background: linear-gradient(to right, transparent 82%, var(âcolor1, var(âcolor2)) 130%);}
90%, 99%{background: linear-gradient(to right, transparent 81%, var(âcolor1, var(âcolor2)) 130%);}
100%{background: linear-gradient(to right, transparent 80%, var(âcolor1, var(âcolor2)) 130%);}
}
}
Thanks!!
How can I hide/remove the ? icon for unavailable devices? I can see it says âUnavailableâ for the status so I donât need the question mark icon as well (it really bothers me seeing it).
Would love this as well.
Be careful with card mod. The structure of the card (name of the components, class, etcâŚ) may change at any time. I can not guarantee you that your override will work with the future update.
You can customize some elements with Mushroom Themes but fell free to propose/discuss about new css variables for customization.
If you want better customization, youâre better to use Minimalist.
The unavailable icon option is somethings that some people reports. I will propose an option to hide it
For me, as Iâm hiding the state, questionmark helps to determming if it is off or unavailable .
THerefore I would rather go with Hide option rather than remove it
The yaml code above is for a chip but you need to add it to you chip collection. Complete card:
type: custom:mushroom-chips-card
chips:
- type: template
double_tap_action:
action: none
entity: cover
icon: |
{% set state=states('cover.garage_door') %}
{% if state=='closed' %}
mdi:garage
{% elif state=='open' %}
mdi:garage-open
{% else %}
mdi:garage-alert
{% endif %}
icon_color: |-
{% set state=states('cover.garage_door') %}
{% if state=='closed' %}
green
{% elif state=='open' %}
red
{% else %}
yellow
{% endif %}
content: Garage
tap_action:
action: toggle
hold_action:
action: none
thanks man, i dont know code, but examples help big time
this is my code
my garage door has a switch and a contact sensor, and im using the contact sensor in the example you provided, with some colour changes, but its not changing the icon or colour?
Right now its closed, but its showing as Orange?
Any help would be great
type: template
double_tap_action:
action: none
entity: binary_sensor
icon: |
{% set state=states('binary_sensor.garage_door_status') %}
{% if state=='closed' %}
mdi:garage-variant-lock
{% elif state=='open' %}
mdi:garage-open-variant
{% else %}
mdi:garage-alert-variant
{% endif %}
icon_color: |-
{% set state=states('binary_sensor.garage_door_status') %}
{% if state=='closed' %}
green
{% elif state=='open' %}
red
{% else %}
orange
{% endif %}
content: Garage Door
tap_action:
action: toggle
hold_action:
action: call-service
service: switch.toggle
service_data: {}
target:
entity_id: switch.garage_door_opener
Thatâs probably because a binary sensor is either âonâ or âoffâ. In this case, the orange color is to be expected since you binary sensor is neither âopenâ nor âclosedâ.
I would suggest doing some testing in the template editor in the developer tools. This is not a Mushroom card issue so I donât think we should continue here but send a PM if you need further assistance.