Hello trying to fix some cards, based in previous examples… i’m able to fix it, but can’t fix the style… can anyone help?
This is what i’m trying to fix
Icon align is messy
The align inside the box i want is this one

But now i have a big box shadow that is divided … i want all the box have the shadow and rounded corners.
Here is the code
type: vertical-stack
cards:
- type: custom:mushroom-title-card
title: Divisões
- type: custom:vertical-stack-in-card
cards:
- square: false
columns: 2
type: grid
card_mod:
style: |
ha-card {
border-radius:10px;
}
cards:
- type: custom:vertical-stack-in-card
cards:
- type: custom:mushroom-template-card
primary: Suite
secondary: >-
🌡️{{ states('sensor.suite_temperature_xiaomi') }}💧{{
states('sensor.suite_humidity_xiaomi') }}🔋{{
states('sensor.suite_battery_xiaomi') }}
icon: mdi:bed-king
tap_action:
action: navigate
navigation_path: suite
hold_action:
action: toggle
icon_color: >-
{{ 'deep-orange' if is_state('binary_sensor.suite_motion',
'on') else 'disabled' }}
fill_container: false
layout: horizontal
multiline_secondary: false
card_mod:
style: |
ha-card {
{% if is_state('binary_sensor.suite_motion', 'on') %}
background: rgba(255, 152, 0, 0.1);
{% endif %}
}
- type: custom:mushroom-chips-card
chips:
- type: conditional
conditions:
- entity: binary_sensor.suite_motion
state_not: "off"
chip:
type: template
icon_color: |-
{% set state=states(entity) %}
{% if state=='open' or state=='on' %}
yellow
{% elif state=='unavailable' %}
red
{% endif %}
icon: mdi:motion-sensor
entity: binary_sensor.suite_motion
- type: conditional
conditions:
- entity: cover.estore_suite
state_not: closed
chip:
type: template
icon_color: |-
{% set state=states('cover.estore_suite') %}
{% if state=='open' or state=='on' %}
yellow
{% elif state=='unavailable' %}
red
{% endif %}
icon: |-
{% set state=states('cover.estore_suite') %}
{% if state=='open' or state=='on' %}
mdi:window-shutter-open
{% else %}
mdi:window-shutter-alert
{% endif %}
entity: cover.estore_suite
tap_action:
action: more-info
hold_action:
action: toggle
- type: conditional
conditions:
- entity: binary_sensor.suite_window
state_not: "off"
chip:
type: template
icon_color: |-
{% set state=states('binary_sensor.suite_window') %}
{% if state=='on' %}
yellow
{% elif state=='off' %}
disabled
{% elif state=='unavailable' %}
red
{% endif %}
icon: mdi:window-open
- type: conditional
conditions:
- entity: climate.suite_ac
state_not: "off"
chip:
type: template
icon_color: disabled
entity: climate.suite_ac
icon: |-
{% if is_state(entity, 'heat_cool') %}
mdi:sync
{% elif is_state(entity, 'heat') %}
mdi:fire
{% elif is_state(entity, 'cool') %}
mdi:snowflake
{% elif is_state(entity, 'dry') %}
mdi:water-percent
{% elif is_state(entity, 'fan_only') %}
mdi:fan
{% else %}
mdi:air-conditioner
{% endif %}
alignment: end
card_mod:
style: |
ha-card {
--chip-box-shadow: none;
--chip-background: none;
margin-top:-10px
}
card_mod:
style: |
ha-card {
height: 85px;
/*box-shadow:var(--ha-card-border-width,1px) !important;
border-radius:var(--ha-card-border-radius,12px) !important;
border-width:var(--ha-card-border-width,1px) !important;
border-style:solid !important;
border-color:var(--ha-card-border-color,var(--divider-color,#e0e0e0)) !important;*/
}
- type: custom:vertical-stack-in-card
cards:
- type: custom:mushroom-template-card
primary: Suite
secondary: >-
🌡️{{ states('sensor.suite_temperature_xiaomi') }}💧{{
states('sensor.suite_humidity_xiaomi') }}🔋{{
states('sensor.suite_battery_xiaomi') }}
icon: mdi:bed-king
tap_action:
action: navigate
navigation_path: suite
hold_action:
action: toggle
icon_color: >-
{{ 'deep-orange' if is_state('binary_sensor.suite_motion',
'on') else 'disabled' }}
fill_container: false
layout: horizontal
multiline_secondary: false
card_mod:
style: |
ha-card {
{% if is_state('binary_sensor.suite_motion', 'on') %}
background: rgba(255, 152, 0, 0.1);
{% endif %}
}
- type: custom:mushroom-chips-card
chips:
- type: conditional
conditions:
- entity: binary_sensor.suite_motion
state_not: "off"
chip:
type: template
icon_color: |-
{% set state=states(entity) %}
{% if state=='open' or state=='on' %}
yellow
{% elif state=='unavailable' %}
red
{% endif %}
icon: mdi:motion-sensor
entity: binary_sensor.suite_motion
- type: conditional
conditions:
- entity: cover.estore_suite
state_not: closed
chip:
type: template
icon_color: |-
{% set state=states('cover.estore_suite') %}
{% if state=='open' or state=='on' %}
yellow
{% elif state=='unavailable' %}
red
{% endif %}
icon: |-
{% set state=states('cover.estore_suite') %}
{% if state=='open' or state=='on' %}
mdi:window-shutter-open
{% else %}
mdi:window-shutter-alert
{% endif %}
entity: cover.estore_suite
tap_action:
action: more-info
hold_action:
action: toggle
- type: conditional
conditions:
- entity: binary_sensor.suite_window
state_not: "off"
chip:
type: template
icon_color: |-
{% set state=states('binary_sensor.suite_window') %}
{% if state=='on' %}
yellow
{% elif state=='off' %}
disabled
{% elif state=='unavailable' %}
red
{% endif %}
icon: mdi:window-open
- type: conditional
conditions:
- entity: climate.suite_ac
state_not: "off"
chip:
type: template
icon_color: disabled
entity: climate.suite_ac
icon: |-
{% if is_state(entity, 'heat_cool') %}
mdi:sync
{% elif is_state(entity, 'heat') %}
mdi:fire
{% elif is_state(entity, 'cool') %}
mdi:snowflake
{% elif is_state(entity, 'dry') %}
mdi:water-percent
{% elif is_state(entity, 'fan_only') %}
mdi:fan
{% else %}
mdi:air-conditioner
{% endif %}
alignment: end
card_mod:
style: |
ha-card {
--chip-box-shadow: none;
--chip-background: none;
margin-top:-10px
}
card_mod:
style: |
ha-card {
height: 85px;
}
- type: custom:vertical-stack-in-card
cards:
- type: custom:mushroom-template-card
primary: Suite
secondary: >-
🌡️{{ states('sensor.suite_temperature_xiaomi') }}💧{{
states('sensor.suite_humidity_xiaomi') }}🔋{{
states('sensor.suite_battery_xiaomi') }}
icon: mdi:bed-king
tap_action:
action: navigate
navigation_path: suite
hold_action:
action: toggle
icon_color: >-
{{ 'deep-orange' if is_state('binary_sensor.suite_motion',
'on') else 'disabled' }}
fill_container: false
layout: horizontal
multiline_secondary: false
card_mod:
style: |
ha-card {
{% if is_state('binary_sensor.suite_motion', 'on') %}
background: rgba(255, 152, 0, 0.1);
{% endif %}
}
- type: custom:mushroom-chips-card
chips:
- type: conditional
conditions:
- entity: binary_sensor.suite_motion
state_not: "off"
chip:
type: template
icon_color: |-
{% set state=states(entity) %}
{% if state=='open' or state=='on' %}
yellow
{% elif state=='unavailable' %}
red
{% endif %}
icon: mdi:motion-sensor
entity: binary_sensor.suite_motion
- type: conditional
conditions:
- entity: cover.estore_suite
state_not: closed
chip:
type: template
icon_color: |-
{% set state=states('cover.estore_suite') %}
{% if state=='open' or state=='on' %}
yellow
{% elif state=='unavailable' %}
red
{% endif %}
icon: |-
{% set state=states('cover.estore_suite') %}
{% if state=='open' or state=='on' %}
mdi:window-shutter-open
{% else %}
mdi:window-shutter-alert
{% endif %}
entity: cover.estore_suite
tap_action:
action: more-info
hold_action:
action: toggle
- type: conditional
conditions:
- entity: binary_sensor.suite_window
state_not: "off"
chip:
type: template
icon_color: |-
{% set state=states('binary_sensor.suite_window') %}
{% if state=='on' %}
yellow
{% elif state=='off' %}
disabled
{% elif state=='unavailable' %}
red
{% endif %}
icon: mdi:window-open
- type: conditional
conditions:
- entity: climate.suite_ac
state_not: "off"
chip:
type: template
icon_color: disabled
entity: climate.suite_ac
icon: |-
{% if is_state(entity, 'heat_cool') %}
mdi:sync
{% elif is_state(entity, 'heat') %}
mdi:fire
{% elif is_state(entity, 'cool') %}
mdi:snowflake
{% elif is_state(entity, 'dry') %}
mdi:water-percent
{% elif is_state(entity, 'fan_only') %}
mdi:fan
{% else %}
mdi:air-conditioner
{% endif %}
alignment: end
card_mod:
style: |
ha-card {
--chip-box-shadow: none;
--chip-background: none;
margin-top:-10px
}
card_mod:
style: |
ha-card {
height: 85px;
}
- type: custom:vertical-stack-in-card
cards:
- type: custom:mushroom-template-card
primary: Suite
secondary: >-
🌡️{{ states('sensor.suite_temperature_xiaomi') }}💧{{
states('sensor.suite_humidity_xiaomi') }}🔋{{
states('sensor.suite_battery_xiaomi') }}
icon: mdi:bed-king
tap_action:
action: navigate
navigation_path: suite
hold_action:
action: toggle
icon_color: >-
{{ 'deep-orange' if is_state('binary_sensor.suite_motion',
'on') else 'disabled' }}
fill_container: false
layout: horizontal
multiline_secondary: false
card_mod:
style: |
ha-card {
{% if is_state('binary_sensor.suite_motion', 'on') %}
background: rgba(255, 152, 0, 0.1);
{% endif %}
}
- type: custom:mushroom-chips-card
chips:
- type: conditional
conditions:
- entity: binary_sensor.suite_motion
state_not: "off"
chip:
type: template
icon_color: |-
{% set state=states(entity) %}
{% if state=='open' or state=='on' %}
yellow
{% elif state=='unavailable' %}
red
{% endif %}
icon: mdi:motion-sensor
entity: binary_sensor.suite_motion
- type: conditional
conditions:
- entity: cover.estore_suite
state_not: closed
chip:
type: template
icon_color: |-
{% set state=states('cover.estore_suite') %}
{% if state=='open' or state=='on' %}
yellow
{% elif state=='unavailable' %}
red
{% endif %}
icon: |-
{% set state=states('cover.estore_suite') %}
{% if state=='open' or state=='on' %}
mdi:window-shutter-open
{% else %}
mdi:window-shutter-alert
{% endif %}
entity: cover.estore_suite
tap_action:
action: more-info
hold_action:
action: toggle
- type: conditional
conditions:
- entity: binary_sensor.suite_window
state_not: "off"
chip:
type: template
icon_color: |-
{% set state=states('binary_sensor.suite_window') %}
{% if state=='on' %}
yellow
{% elif state=='off' %}
disabled
{% elif state=='unavailable' %}
red
{% endif %}
icon: mdi:window-open
- type: conditional
conditions:
- entity: climate.suite_ac
state_not: "off"
chip:
type: template
icon_color: disabled
entity: climate.suite_ac
icon: |-
{% if is_state(entity, 'heat_cool') %}
mdi:sync
{% elif is_state(entity, 'heat') %}
mdi:fire
{% elif is_state(entity, 'cool') %}
mdi:snowflake
{% elif is_state(entity, 'dry') %}
mdi:water-percent
{% elif is_state(entity, 'fan_only') %}
mdi:fan
{% else %}
mdi:air-conditioner
{% endif %}
alignment: end
card_mod:
style: |
ha-card {
--chip-box-shadow: none;
--chip-background: none;
margin-top:-10px
}
card_mod:
style: |
ha-card {
height: 85px;
}
- type: custom:vertical-stack-in-card
cards:
- type: custom:mushroom-template-card
primary: Suite
secondary: >-
🌡️{{ states('sensor.suite_temperature_xiaomi') }}💧{{
states('sensor.suite_humidity_xiaomi') }}🔋{{
states('sensor.suite_battery_xiaomi') }}
icon: mdi:bed-king
tap_action:
action: navigate
navigation_path: suite
hold_action:
action: toggle
icon_color: >-
{{ 'deep-orange' if is_state('binary_sensor.suite_motion',
'on') else 'disabled' }}
fill_container: false
layout: horizontal
multiline_secondary: false
card_mod:
style: |
ha-card {
{% if is_state('binary_sensor.suite_motion', 'on') %}
background: rgba(255, 152, 0, 0.1);
{% endif %}
}
- type: custom:mushroom-chips-card
chips:
- type: conditional
conditions:
- entity: binary_sensor.suite_motion
state_not: "off"
chip:
type: template
icon_color: |-
{% set state=states(entity) %}
{% if state=='open' or state=='on' %}
yellow
{% elif state=='unavailable' %}
red
{% endif %}
icon: mdi:motion-sensor
entity: binary_sensor.suite_motion
- type: conditional
conditions:
- entity: cover.estore_suite
state_not: closed
chip:
type: template
icon_color: |-
{% set state=states('cover.estore_suite') %}
{% if state=='open' or state=='on' %}
yellow
{% elif state=='unavailable' %}
red
{% endif %}
icon: |-
{% set state=states('cover.estore_suite') %}
{% if state=='open' or state=='on' %}
mdi:window-shutter-open
{% else %}
mdi:window-shutter-alert
{% endif %}
entity: cover.estore_suite
tap_action:
action: more-info
hold_action:
action: toggle
- type: conditional
conditions:
- entity: binary_sensor.suite_window
state_not: "off"
chip:
type: template
icon_color: |-
{% set state=states('binary_sensor.suite_window') %}
{% if state=='on' %}
yellow
{% elif state=='off' %}
disabled
{% elif state=='unavailable' %}
red
{% endif %}
icon: mdi:window-open
- type: conditional
conditions:
- entity: climate.suite_ac
state_not: "off"
chip:
type: template
icon_color: disabled
entity: climate.suite_ac
icon: |-
{% if is_state(entity, 'heat_cool') %}
mdi:sync
{% elif is_state(entity, 'heat') %}
mdi:fire
{% elif is_state(entity, 'cool') %}
mdi:snowflake
{% elif is_state(entity, 'dry') %}
mdi:water-percent
{% elif is_state(entity, 'fan_only') %}
mdi:fan
{% else %}
mdi:air-conditioner
{% endif %}
alignment: end
card_mod:
style: |
ha-card {
--chip-box-shadow: none;
--chip-background: none;
margin-top:-10px
}
card_mod:
style: |
ha-card {
height: 85px;
}
- type: custom:vertical-stack-in-card
cards:
- type: custom:mushroom-template-card
primary: Suite
secondary: >-
🌡️{{ states('sensor.suite_temperature_xiaomi') }}💧{{
states('sensor.suite_humidity_xiaomi') }}🔋{{
states('sensor.suite_battery_xiaomi') }}
icon: mdi:bed-king
tap_action:
action: navigate
navigation_path: suite
hold_action:
action: toggle
icon_color: >-
{{ 'deep-orange' if is_state('binary_sensor.suite_motion',
'on') else 'disabled' }}
fill_container: false
layout: horizontal
multiline_secondary: false
card_mod:
style: |
ha-card {
{% if is_state('binary_sensor.suite_motion', 'on') %}
background: rgba(255, 152, 0, 0.1);
{% endif %}
}
- type: custom:mushroom-chips-card
chips:
- type: conditional
conditions:
- entity: binary_sensor.suite_motion
state_not: "off"
chip:
type: template
icon_color: |-
{% set state=states(entity) %}
{% if state=='open' or state=='on' %}
yellow
{% elif state=='unavailable' %}
red
{% endif %}
icon: mdi:motion-sensor
entity: binary_sensor.suite_motion
- type: conditional
conditions:
- entity: cover.estore_suite
state_not: closed
chip:
type: template
icon_color: |-
{% set state=states('cover.estore_suite') %}
{% if state=='open' or state=='on' %}
yellow
{% elif state=='unavailable' %}
red
{% endif %}
icon: |-
{% set state=states('cover.estore_suite') %}
{% if state=='open' or state=='on' %}
mdi:window-shutter-open
{% else %}
mdi:window-shutter-alert
{% endif %}
entity: cover.estore_suite
tap_action:
action: more-info
hold_action:
action: toggle
- type: conditional
conditions:
- entity: binary_sensor.suite_window
state_not: "off"
chip:
type: template
icon_color: |-
{% set state=states('binary_sensor.suite_window') %}
{% if state=='on' %}
yellow
{% elif state=='off' %}
disabled
{% elif state=='unavailable' %}
red
{% endif %}
icon: mdi:window-open
- type: conditional
conditions:
- entity: climate.suite_ac
state_not: "off"
chip:
type: template
icon_color: disabled
entity: climate.suite_ac
icon: |-
{% if is_state(entity, 'heat_cool') %}
mdi:sync
{% elif is_state(entity, 'heat') %}
mdi:fire
{% elif is_state(entity, 'cool') %}
mdi:snowflake
{% elif is_state(entity, 'dry') %}
mdi:water-percent
{% elif is_state(entity, 'fan_only') %}
mdi:fan
{% else %}
mdi:air-conditioner
{% endif %}
alignment: end
card_mod:
style: |
ha-card {
--chip-box-shadow: none;
--chip-background: none;
margin-top:-10px
}
card_mod:
style: |
ha-card {
height: 85px;
}
card_mod:
style: |
ha-card {
border:none;
background:none;
/*box-shadow:none;*/
}