RKsHAss
(RKsHAss)
February 27, 2025, 7:15am
1
yesterday i created a new dashboard sections and mushroom cards
today all the card_mod entrys are gone
this is the card_mod entry ,as an example, this happens to all dashboards with mushroom cards.
But, i find out, it is only if viewing the card directly, if viewing over
the card-mod entries are back. Lucky me
- type: custom:mushroom-climate-card
entity: climate.wz_hz
show_temperature_control: true
layout: vertical
primary_info: none
icon_type: none
hvac_modes: []
secondary_info: state
collapsible_controls: false
fill_container: false
card_mod:
style:
mushroom-climate-temperature-control$:
mushroom-input-number$: |
#container {
position: absolute;
width: 70%;
left: 15%;
z-index: 1 !important;
background-color: white;
.value {
font-size: 30px;
}
.: |
ha-card {
background-color: gray;
padding: 0px;
#border: 0px;
border: 2.5px outset orange;
box-shadow: 2px 2px 0px 0px lightgray;
text-align: center;
font-style: bold;
--primary-text-color: Black;
--primary-font-size: 30px;
--primary-font-weight: bolder;
--primary-line-height: 30px;
--card-secondary-font-size: 30px;
--card-secondary-font-weight: bolder;
--card-secondary-line-height: 30px;
--secondary-text-color: orange !important;
}
karwosts
(karwosts)
February 27, 2025, 1:59pm
2
This is a reported bug with card mod.
opened 09:08PM - 30 Dec 23 UTC
Chrome 120.0.6099.130 (Win10x64).
FF 121 (Win10x64).
My Home Assistant vers… ion: 2023.12.1
My lovelace configuration method (GUI or yaml): storage
What I am doing:
Adding card-mod code for `custom:bar-card` inside a standard `vertical-stack`.
Using a standard HA UI editor.
What I expected to happen:
Card-mod code is saved after saving a card.
What happened instead:
1. Either card-mod code is not saved after saving a card.
2. Or card-mod code is automatically deleted after typing.
**Minimal** steps to reproduce:
1. Add a new card - select any card like "Alarm card".
2. Switch to yaml editor.
3. Paste a code provided below.
4. Start typing "card_mod" for the "bar-card".
5. If you manage to type the "card_mod" line - then type the whole card-mod code (see below).
6. Save the card.
7. Reopen the card in the Editor.
8. Check that card-mod code was deleted.
9. Start typing card-mod again.
10. Check that "card_mod" line is auto-deleted after typing.

```
type: vertical-stack
cards:
- type: custom:bar-card
entities:
- entity: sensor.processor_use
```
```
type: vertical-stack
cards:
- type: custom:bar-card
entities:
- entity: sensor.processor_use
card_mod:
style: |
ha-card {color: red;}
```
Error messages from the browser console:
none related.
---
**By putting an X in the boxes ([]) below, I indicate that I:**
- [x] Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).
- [x] Have made sure I am using the latest version of the plugin.
- [x] Have followed the troubleshooting steps of the "Common Problems" section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.
- [x] Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.
1 Like
If you are on card_mod version 3.5 please revert to 3.4.4. Version 3.5.0 was pulled for issues like you are describing.
In addition, this code is not correct. That may be the core issue.
card_mod:
style:
mushroom-climate-temperature-control$:
mushroom-input-number$: |
#container {
position: absolute;
width: 70%;
left: 15%;
z-index: 1 !important;
background-color: white;
.value {
font-size: 30px;
}
Correct method
card_mod:
style:
mushroom-state-info$: |
.container {
your code
}
1 Like
dmu7004
(Dmu7004)
March 5, 2025, 6:10pm
4
Hi,
Have the same issues with v3.4.4
Another solution ?
thanks
dmu7004:
Another solution ?
Either edit a dashboard in a “raw configuration editor” - or start using yaml-mode dashboards w/o UI editor.
dmu7004
(Dmu7004)
March 18, 2025, 5:56pm
6
I was thinking about that … it works but not user friendly
thanks