Opontios
(Agisilaos Ignatiadis)
August 13, 2024, 11:00am
1
Maybe someone could explain why the below stopped suddenly working after the latest 2024.8 update. Nothing has changed in the code regarding the card itself, as far as I can tell.
hui-card-features $ hui-climate-hvac-modes-card-feature $ ha-control-select $: |
div#option-auto.option.selected::before {
background: rgba(76, 175, 80, 0.3);
}
div#option-cool.option.selected::before {
background: rgba(33, 150, 243, 0.3);
}
div#option-dry.option.selected::before {
background: rgba(255, 152, 0, 0.3);
}
div#option-fan_only.option.selected::before {
background: rgba(0, 188, 212, 0.3);
}
div#option-heat.option.selected::before {
background: rgba(255, 111, 34, 0.3);
}
div#option-off.option.selected::before {
background: rgba(158, 158, 158, 0.3);
}
gokuro
October 10, 2024, 3:15pm
2
having the same issue with mine as well
even the example code does not work
- entity: sensor.chest_freezer_temperature
name: Freezer Govee
secondary_info: last-updated
card_mod: null
style: |
:host {
color:
{% if states(config.entity)| int > 5 %}
red
{% elif states(config.entity)| int > 0 %}
yellow
{% endif %}
;
}
- entity: sensor.storage_ac_plus1pm_temperature
name: Freezer Shelly
secondary_info: last-updated
card_mod:
style: |
ha-card {
color: red;
}
gokuro:
card_mod: null
style: |
Because this is wrong.
Check for a proper syntax in Docs.
gokuro
October 10, 2024, 6:54pm
4
the example from docs does not work either
card_mod:
style: |
ha-card {
color: red;
}
Because the example was provided for a CARD (particularly - Entities card) and you are trying to apply it to something else unspecified. I may only guess that this is Entities card as well and you are trying to apply the example to a ROW.
There is a dedicated card-mod thread here where you can ask card-mod related questions.
This is not a custom card. Instead it’s a plugin which changes the way all other cards work
How about this?
type: entities
style: |
ha-card {
color: red;
}
entities:
- light.bed_light
- light.ceiling_lights
- light.kitchen_lights
[51]
Not a custom: in sight.
Or this?
[mov]
(Please click this gif to open it. It seems to be prone to artifacting when compressed)
Or how about changing what happens when you click the name or icon in an entities-card?
FANTASTIC POST BY ILDAR…