type: custom:mushroom-fan-card
entity: fan.eva_luftfukter
layout: vertical
icon_animation: true
secondary_info: none
style: |
mushroom-shape-icon{
--icon-color: rgb(var(--rgb-light-blue)) !important;
--shape-color: rgba(var(--rgb-light-blue), 0.2) !important;
}
This works for me
1 Like
fizz
August 6, 2022, 6:07pm
2215
You are AWESOME! Thank you!
Can I buy you a coffee?
Forgot to add !important. Works now.
Airyphyla
(Airyphyla)
August 7, 2022, 8:44am
2218
Is it possible to have the iconcolor represent the current color of the light?
rhysb
(Rhys)
August 8, 2022, 3:34am
2219
You could try -webkit-filter: grayscale(100%);
instead.
rhysb
(Rhys)
August 8, 2022, 4:31am
2220
The mushroom-light-card
already has an option for that in the GUI. Look for the āUse light colorā option.
1 Like
pLeX
August 8, 2022, 6:05am
2221
Thanks for your response, but its the same result. browser is working, IOS is not.
Airyphyla
(Airyphyla)
August 8, 2022, 7:13am
2222
Thanks @rhysb but this cant be used in a template card i presume?
rhysb
(Rhys)
August 8, 2022, 7:29am
2223
Sure you can. Like this:
type: custom:mushroom-template-card
primary: '{{ state_attr(entity, ''friendly_name'') }}'
secondary: |
{% set brightness = state_attr(entity, 'brightness') %}
{% if is_state(entity, 'on') %}
{{ (brightness / 255 * 100) | round(0) }}%
{% else %}
Off
{% endif %}
icon: mdi:lightbulb
entity: light.lounge_cabinet_light
card_mod:
style: |
mushroom-shape-icon {
{% set r = state_attr(config.entity, 'rgb_color')[0] %}
{% set g = state_attr(config.entity, 'rgb_color')[1] %}
{% set b = state_attr(config.entity, 'rgb_color')[2] %}
--icon-color: rgb( {{r}}, {{g}}, {{b}} ) !important;
--shape-color: rgba( {{r}}, {{g}}, {{b}}, 0.2 ) !important;
}
1 Like
Airyphyla
(Airyphyla)
August 8, 2022, 8:22am
2224
Hey thanks alot, iām almost there! Is it possible to have the small(er) icons, those which display the specific entity āonā also represent the current color?
type: custom:stack-in-card
cards:
- type: custom:mushroom-template-card
primary: '{{ state_attr(entity, ''friendly_name'') }}'
secondary: '{{ states(''sensor.toon_current_temperature'') | round (0) }} Ā°C'
icon: mdi:desktop-tower-monitor
entity: light.geekroom
tap_action:
action: navigate
navigation_path: outside
hold_action:
action: toggle
icon_color: '{{ ''orange'' if is_state(entity, ''on'') else ''disabled'' }}'
badge_color: >-
{% if is_state('binary_sensor.lumi_lumi_sensor_motion_0afa2202_ias_zone',
'on') %}
green
{% elif is_state
('binary_sensor.lumi_lumi_sensor_motion_0afa2202_ias_zone', 'off') %}
{% endif %}
badge_icon: >-
{% if is_state('binary_sensor.lumi_lumi_sensor_motion_0afa2202_ias_zone',
'on') %}
mdi:motion-sensor
{% elif is_state
('binary_sensor.lumi_lumi_sensor_motion_0afa2202_ias_zone', 'off') %}
{% endif %}
fill_container: true
layout: horizontal
multiline_secondary: false
card_mod:
style: |
:host {
--mush-icon-size: 60px;
height: 66px;
margin-left: -18px !important;
}
mushroom-shape-icon {
{% set r = state_attr(config.entity, 'rgb_color')[0] %}
{% set g = state_attr(config.entity, 'rgb_color')[1] %}
{% set b = state_attr(config.entity, 'rgb_color')[2] %}
--icon-color: rgb( {{r}}, {{g}}, {{b}} ) !important;
--shape-color: rgba( {{r}}, {{g}}, {{b}}, 0.2 ) !important;
}
- type: custom:mushroom-chips-card
chips:
- type: conditional
conditions:
- entity: light.nanoleaf
state: 'on'
chip:
type: template
icon_color: grey
icon: mdi:hexagon
- type: conditional
conditions:
- entity: light.lightstrip_upstairs
state: 'on'
chip:
type: template
icon_color: grey
icon: mdi:led-strip
- type: conditional
conditions:
- entity: light.desklamp
state: 'on'
chip:
type: template
icon_color: disabled
icon: mdi:desk-lamp
- type: conditional
conditions:
- entity: light.hue_iris_1
state: 'on'
chip:
type: template
icon_color: yellow
icon: mdi:light-flood-up
tap_action:
action: none
hold_action:
action: none
alignment: end
card_mod:
style: |
ha-card {
--chip-box-shadow: none;
--chip-background: none;
--chip-spacing: 0;
}
card_mod:
style: |
ha-card {
height: 102px;
background: url('/local/geekroom1.jpeg') center;
background-size: cover;
background-blend-mode: overlay;
background-color: rgba(var(--rgb-card-background-color), 0.8);
{% if is_state('light.geekroom', 'on') %}
box-shadow: 0 0 20px rgba(0, 150, 136, 0.6);
{% endif %}
}
meni123
(Meni)
August 8, 2022, 9:13am
2225
Is there an option in the climate card to control the oscillating mode of the air conditioner?
Airyphyla
(Airyphyla)
August 8, 2022, 10:11am
2226
Yes! Itās somewhere in this thread, has already been discussed and (I believe) thereās examples for it aswell. Gl!
Posreg
(Daros)
August 8, 2022, 10:24am
2227
iāve finally finished my vacuum card
i saw some examples in this thread - all beautiful ! but I don;t want to have an interactive map
here is my view, all icons and states and written as templates, changing the dustbox or mode, changes the icon etc
Iām super happy
5 Likes
meni123
(Meni)
August 8, 2022, 10:27am
2228
I tried searching this thread before posting,
But I didnāt findā¦
I would appreciate it if someone could direct meā¦
Airyphyla
(Airyphyla)
August 8, 2022, 1:43pm
2229
@meni123 check this postā¦it should get you somewhere
Airyphyla
(Airyphyla)
August 8, 2022, 3:02pm
2230
How do i remove the auto-entities and the boolean, so i can just make something similar but just manually assigning lights?
berkans
(Berkan Sezer)
August 8, 2022, 3:53pm
2231
Hi Rhysb
Do you know how can we achieve the function of back chip with a template or anything else? I am trying to configure heading for my pages like this :
type: custom:layout-card
layout_type: custom:masonry-layout
cards:
- type: grid
columns: 2
square: false
cards:
- type: custom:banner-card
color: white
entities: null
heading:
- Yatak Odası
link: window.history.back()
style: |
ha-card {
background: rgba(var(--rgb-primary-text-color), 0.0);
margin-top: -20px;
margin-left: -5px;
width: 300px;
}
ha-card .heading {
font-size: 3.5em;
margin: 40px;
color: black;
font-family: 'Amatic SC', cursive;
margin-left: 6px;
}
ha-card .overlay-strip {
font-size: 1em;
font-family: 'Roboto';
font-weight: 900;
background: none;
margin-left: 6px;
}
- type: custom:mushroom-chips-card
chips:
- type: back
alignment: end
card_mod:
style: |
ha-card {
margin: 10px -1px 0 0
background: rgba(var(--rgb-primary-text-color), 0.0);
color: #e1e1e1;
box-shadow: 0px 0px;
}
card_mod:
style: |
ha-card {
background: rgba(var(--rgb-primary-text-color), 0.0);
color: #e1e1e1;
box-shadow: 0px 0px;
width: 350px
}
I want to go back to the previous page when clicked on āYatak Odasıā header.
And also how can I position āback chipā in the code to the left of the heading. Currently it is on the right but when I place it to the left the heading gets smaller.
I have a problem with toggling a light from a template card. Lights always turn on at 1% brightness unless I hardcode a brightness value in the template. Hope somebody has a solution.
When I use the light card the light is toggled on and off to the intial brightness. So if the light is at 25% when it is toggled off and on again, the light stays at 25%.
However, if I do the same with the template card, the light doesnāt turn on at 25% but at 1%. Any ideas?
Proche72
(Jiri Pragr)
August 9, 2022, 11:19am
2233
Hey, what theme are you using? I am currently using the UI minimalist mobile theme but I donāt use the UI minimalist dashboard at all. I would like to remove the UI minimalist but I love the mobile theme. Is there some other mobile theme similar to ui minimalist?