Minniemie
(Minniemie)
May 3, 2024, 7:17am
546
Hi All,
Been trying to solve this for days but haven been able to, hopefully someone else here is able to assist. I’ve used rhysb’s combo Mushroom Mini-Media-Player card here:
Here you go. This is my combo Mushroom Mini-Media-Player card:
[Mushroom Alexa Mini Media Player - Standby]
[Mushroom Alexa Mini Media Player]
type: custom:stack-in-card
cards:
- type: custom:mushroom-media-player-card
entity: media_player.office_echo
name: Echo
icon: si:amazonalexa
use_media_artwork: false
fill_container: false
use_media_info: true
show_volume_level: false
media_controls:
- previous
- play_pause_stop
- next
collapsible_…
However, when I tried to substitute the mini-media-player card at the bottom with a notify-card (to avoid the music stopping when broadcasting a message); the artwork no longer covers the whole background, specifically the top mushroom media player card - tried many ways to edit the code but it just doesn’t work like rhyb’s example above, anyone has any ideas why?
Appreciate your kind advice.
Here is my edited code:
type: custom:stack-in-card
cards:
- type: custom:mushroom-media-player-card
entity: media_player.spotify_minnieme
name: Spotify
icon: mdi:spotify
use_media_artwork: true
fill_container: true
use_media_info: true
show_volume_level: true
media_controls:
- previous
- play_pause_stop
- next
collapsible_controls: true
tap_action:
action: toggle
card_mod:
style: |
ha-card {
padding-bottom: 0px !important;
}
- entity: media_player.google_speakers
hide:
icon: true
name: true
runtime: true
source: true
power: true
state_label: true
volume: true
info: true
progress: true
controls: true
more_info: false
type: custom:notify-card
target: google_assistant_sdk
label: message
toggle_power: false
group: true
card_mod:
style: |
ha-card {
font: 12px !important;
padding: -10px -18px -28px !important;
}
card_mod:
style: |
ha-card {
{% if not is_state('media_player.spotify_minnieme', 'standby') %}
background: rgba(var(--rgb-card-background-color), 0.5) url( '{{ state_attr( "media_player.spotify_minnieme", "entity_picture" ) }}' ) center no-repeat;
background-size: cover;
background-blend-mode: overlay;
{% endif %}
}
Faecon
(Jo)
May 3, 2024, 11:07am
547
- type: conditional
conditions:
- entity: input_boolean.airco_ventilatorsnelheid_beschikbaar
state_not: 'off'
card:
type: custom:stack-in-card
that is wat is working in my HA
Frosty
May 3, 2024, 7:51pm
549
I guess you already have HACs installed if not follow the docs here
once installed you should have HACs in the left side panel.
then search for Auto Entities and install.
1 Like
1umnyy
(Viktor)
May 3, 2024, 8:01pm
550
Help, do I want the color of the icon and numbers to change at certain values?
type: vertical-stack
cards:
- type: custom:mushroom-title-card
title: Спальная комната
alignment: center
style: |
ha-card {
background: transparent;
box-shadow: none;
--title-padding: var(--mush-title-padding, 25px 32px 1px) !important;
--title-spacing: var(--mush-title-spacing, 5px) !important;
}
subtitle: ''
- type: custom:mushroom-chips-card
card_mod:
style: |
ha-card {
border: 0px solid lightgrey !important;
border-radius: 12px !important;
box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.2) !important;
background: var(--card-background-color) !important;
--chip-background: none;
--chip-border: none !important;
--chip-box-shadow: none !important;
--chip-spacing: 2px;
}
alignment: center
chips:
- type: action
tap_action:
action: navigate
navigation_path: home
icon: mdi:home
icon_color: blue
- type: entity
entity: sensor.datchik_vlazhnosti_i_temperatury_spalnia_humidity
icon_color: indigo
- type: entity
entity: sensor.datchik_vlazhnosti_i_temperatury_spalnia_temperature
icon_color: orange
- type: entity
entity: sensor.datchik_vozdukh_spalnia_pm25
icon_color: gray
- type: entity
entity: sensor.datchik_vozdukh_spalnia_co2
icon_color: green
For the icon use a template chip.
For text take a look in the mushroom / card mod guide:
card_mod:
style:
mushroom-state-info$: |
.container {
transform: scalex(-1);
align-items: end;
}
mushroom-shape-avatar$: |
.container {
transform: scalex(-1);
}
.: |
ha-card {
transform: scalex(-1);
}
if using an avatar.
card_mod:
style:
mushroom-state-info$: |
.container {
transform: scalex(-1);
align-items: end;
}
.: |
ha-card {
transform: scalex(-1);
}
…
I guess we’ve misunderstood: I already managed to make it working that
Now I want to make the empty frame disappear when all doors are closed:
Can you post the code associated with your pic?
Since my last update, my icons and fonts on the top 2 cards are too close to one another. Any idea how can I move the icons up? thanks
card_mod:
style: |
ha-card {
{% if is_state('light.gameroom_fan','on') %}
--ha-card-background: var(--lights-button-color); {% endif %}
--card-primary-font-size: 35px;
--icon-symbol-size: 60px;
}
Add --card-primary-line-height: 35px !important;
card_mod:
style: |
ha-card {
{% if is_state('light.gameroom_fan','on') %}
--ha-card-background: var(--lights-button-color); {% endif %}
--card-primary-font-size: 35px !important;
--card-primary-line-height: 35px !important;
--icon-symbol-size: 60px;
}
1umnyy
(Viktor)
May 4, 2024, 7:38am
556
Is this for me? I need to change the color of the icon and the color of the text depending on the value
1umnyy:
icon: mdi:home
Yes his message was for you The template chip is more customizable.
- type: template
icon_color: |
{{ 'red' if states(config.entity) | int <= 20 else 'orange' }}
entity: sensor.datchik_vlazhnosti_i_temperatury_spalnia_humidity
content: test
icon: mdi:home
card_mod:
style: |
ha-card {
--text-color:
{{ 'red' if states(config.entity) | int <= 20 else 'lime' }}
}
There are several ways to address your request. Check out the chips link in his guide
Chips Card
Sections are split:
Main Icon Styling You can style the main icon of each chip type like this:
Change the icon type/mdi.
[image]
The weather chip icon cannot be modified as it is not a normal HA icon.
Note that when you have a conditional chip (like the first chip in this config is) with another chip inside of it you need to go 1 layer deeper.
card_mod:
style:
mushroom-conditional-chip:nth-child(1):
mushroom-template-chip$: |
ha-state-icon {
--card-…
Frosty
May 4, 2024, 8:15am
558
I didn’t miss understand, this is a mushroom cards topic. so therefore I was showing you how to use Mushroom cards with auto entities.
the entity filter uses the stock entities card.
maybe I should have made that clear.
To get rid of the empty card use
show_empty: false
insert this line under
type: entity-filter
2 Likes
1umnyy
(Viktor)
May 4, 2024, 9:19am
559
and how to output the sensor values?
content: |
{{ states('sensor.your_sensor')}}%
Deninho91
(Deninho91)
May 4, 2024, 11:06am
561
Thank you man!
And how I can get the Space between them smaller?
Tried allready spacing:
But no Resultat…
Frosty
May 4, 2024, 1:53pm
562
no problem.
take a look at alignment: justify
try changing it to start, end or center
the current “justify” will space them equally from left to right
1 Like
Simple and beautiful Can you please share your code?
Here you go:
type: entity-filter
entities:
- entity: binary_sensor.tf_w_sz_tur
name: null
- entity: binary_sensor.tf_w_kz_tur
name: Léon
- entity: binary_sensor.tf_w_sb_tur
name: Südbalkon
- entity: binary_sensor.tf_w_wb_tur
name: Westbalkon
- entity: binary_sensor.tf_k_k_tur
name: Keller
state_color: true
state_filter:
- 'on'
Frosty:
show_empty: false
Yeah, it disappears right now when all doors are closed