tmchow
February 15, 2023, 5:25am
5544
dexstar:
Works good, but … when I tap on ‘Living Room’ I get this error.
I’m assuming I need to add a Tap Action somewhere to display more-info of the temperature.
The issue is that I haven’t defined anything for that tap action as you’ve discovered so my card also has that same warning/error.
I’m still in development of my dashboard and my goal is to either disable the tap action or yo navigate you to a dashboard for the room with more cards that give more details etc.
dexstar
February 15, 2023, 5:47am
5545
Same here my friend
My above code works with tap action for me now.
Thanks for sharing, shout out to OP of code too
Spartacus
(Spartacus)
February 15, 2023, 10:28am
5546
Hi all,
is there an option to add spaces in the mushroom cards?
e.g. between “Test” and the Timestamp and the word “Uhr”
type: custom:mushroom-template-card
icon: mdi:lightbulb-auto-outline
entity: input_boolean.auto_kellerlicht_weekend
icon_color: '{{ ''green'' if states(entity) == ''on'' else ''red'' }}'
primary: 'werktags:'
secondary: >-
Test:{{ (as_timestamp(now()) | timestamp_custom("%Y-%m-%d", true)) }} Uhr
tap_action:
action: toggle
cloudbr34k
(Apples)
February 15, 2023, 11:02am
5547
this is my fav design so far!
1 Like
VBrenner
(V)
February 15, 2023, 11:20am
5548
I am trying this code but I still get chips border
malosaa
(Hector)
February 15, 2023, 12:59pm
5549
I need some help as i am a css noob
How can i get rid of this line above the % ?
regards
Moss
(Marco)
February 15, 2023, 1:28pm
5550
Hi,
try this.
card_mod:
style: |
ha-card {
--chip-box-shadow: none;
--chip-background: none;
--border-width: 0px;
}
stban1983
(stban1983)
February 15, 2023, 2:00pm
5551
RonM:
Hi
I translate it:
type: vertical-stack
cards:
- type: custom:mushroom-template-card
primary: Chambres
secondary: |-
{% if states('cover.chambres_covers') == 'closed' %}
Fermés
{% else %}
Ouverts
{% endif %}
icon: |-
{% if states('cover.chambres_covers') == 'closed' %}
mdi:window-shutter
{% else %}
mdi:window-shutter-open
{% endif %}
entity: Volets
icon_color: blue
fill_container: false
tap_action:
action: more-info
hold_action:
action: more-info
double_tap_action:
action: none
multiline_secondary: true
layout: horizontal
card_mod:
style: |
ha-card {
--icon-size: 55px;
--icon-symbol-size: 35px;
}
- type: horizontal-stack
cards:
- type: custom:button-card
icon: mdi:arrow-down-drop-circle
entity: cover.chambres_covers
name: Rolluik kamer down
show_state: false
show_name: false
layout: vertical
styles:
card:
- height: 60px
icon:
- color: grey
tap_action:
action: call-service
service: cover.close_cover
service_data:
entity_id: cover.chambres_covers
- type: custom:button-card
icon: mdi:pause-circle
entity: cover.chambres_covers
name: Rolluik kamer still
show_state: false
show_name: false
layout: vertical
styles:
card:
- height: 60px
icon:
- color: grey
tap_action:
action: call-service
service: cover.stop_cover
service_data:
entity_id: cover.chambres_covers
- type: custom:button-card
icon: mdi:arrow-up-drop-circle
entity: cover.chambres_covers
name: Rolluik kamer up
show_state: false
show_name: false
layout: vertical
styles:
card:
- height: 60px
icon:
- color: grey
tap_action:
entity: cover.chambres_covers
action: call-service
service: cover.open_cover
service_data:
entity_id: cover.chambres_covers
VBrenner
(V)
February 15, 2023, 5:43pm
5552
thanks again, works very well. going deeper into the rabbit hole
tmchow
February 15, 2023, 6:33pm
5553
I just noticed the chips card alignment options are this:
Chips alignment (end
, center
, justify
), when empty default behavior is start
Out of curiosity, why does this not use more standard alignment terms like “left”, “right” instead of “start” and “end”
berkans
(Berkan Sezer)
February 15, 2023, 7:07pm
5554
Something nice is coming up. A complete new design with mushroom. Live cards, music, room cards and so many more.
I will release the codes and the manual as soon as I finish.
(Alternative)
6 Likes
tmchow
February 15, 2023, 7:55pm
5555
benm7:
Love this card. Is this a minimalist card or a customized mushroom? It’s got everything you want in an HVAC/Climate card! I despise all the climate cards that I’ve come across
tmchow
February 15, 2023, 8:21pm
5556
Is this about a space on the same line? If so, go to https://emptycharacter.com and copy and paste it in.
tmchow
February 15, 2023, 8:22pm
5557
How can I get the thermometer icon next to the temperature readout in this card?
- type: custom:mushroom-template-card
primary: Kids Room
secondary: >
{{
states('sensor.kids_room_temperature')|float|round(0)
- 1 }} {{ state_attr('sensor.kids_room_temperature',
'unit_of_measurement') }}
icon: mdi:teddy-bear
icon_color: purple
card_mod:
style: |
ha-card {
--ha-card-border-width: 0
}
tmchow
February 15, 2023, 8:37pm
5559
Good idea but I’d ideally like to use the mdi icons for visual consistency. Is that possible?
tmchow
February 15, 2023, 8:52pm
5560
Any ideas how to get a background image on this card? I’m struggling to figure out where to put the css to set the background image since it’s a stacked cards with subcards within it. Everything I’ve tried puts the background image only in a portion of the logical card.
type: custom:vertical-stack-in-card
cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
primary: Kids Room
secondary: >
{{
states('sensor.kids_room_temperature')|float|round(0)
- 1 }} {{ state_attr('sensor.kids_room_temperature',
'unit_of_measurement') }}
icon: mdi:teddy-bear
icon_color: purple
card_mod:
style: |
ha-card {
--ha-card-border-width: 0
}
- type: custom:mushroom-chips-card
chips:
- type: template
entity: light.kids_room_lights
icon: mdi:ceiling-light-multiple
icon_color: |-
{% if states(entity) == 'on' %}
amber
{% else %}
disabled
{% endif %}
tap_action:
action: toggle
card_mod:
style: |
ha-card {
--chip-background:
{% if states('light.kids_room_ceiling_lights') == 'on' %}
rgba(var(--rgb-amber), 0.2);
{% else %}
rgba(var(--rgb-disabled), 0.15);
{% endif %}
}
alignment: end
card_mod:
style: |
ha-card {
margin: 5px 24px 5px 5px;
--chip-box-shadow: none;
--chip-border-radius: 25px;
--chip-height: 42px;
--chip-padding: 10px;
height: 55px
}
RASBR
(Rami)
February 15, 2023, 9:20pm
5561
Hi,
Tried to implement the ‘mdi:gate’ on the Vroom’ animation, but couldn’t figure out how to apply the IF clause on the animation.
Any advice?
Thanks
type: custom:mushroom-template-card
primary: Garage 1
layout: vertical
entity: switch.garage_1_gate_1
icon: mdi:gate
icon_color: ' {{ ''deep-orange'' if is_state(config.entity, ''on'') else ''blue-grey''}}'
tap_action:
action: toggle
secondary: ' {{ ''Open'' if is_state(config.entity, ''on'') else ''Closed''}}'
card_mod:
style:
mushroom-shape-icon$: |
ha-icon {
--icon-animation: ' {{''vroom 2s ease-in-out infinite;'' if is_state(config.entity, ''on'') else ''''}}'
}
.shape {
clip-path: inset(0 0 0 0);
}
@keyframes vroom {
49% { opacity: 1;}
50% { transform: translate(32px); opacity: 0; }
51% { transform: translate(-32px); opacity: 0; }
52% { opacity: 1; }
}
tmchow
February 16, 2023, 2:00am
5563
I notice use of input_boolean.thermostat_dropdown
for example. What do these input booleans do? Can you share the definitions?