#Edit card color

1 messages · Page 1 of 1 (latest)

noble folio
#

if my light is off, i want it red, but when it is on i want it green? It is yellow right now

tranquil salmon
#

If you want these colours to apply to all lights and not just a particular one, check out themeing.

noble folio
#

I tried to do that, but I can’t get it to work

edgy stone
#

Need more information. What card are you using? What have you tried already?

noble folio
#

I tried the history card. I remember I did some stuff in yaml few years back and it worked. I took 5 year break

edgy stone
#

I would use card_mod to do it, but you could use the variables shown here in your theme. ```yaml
type: history-graph
entities:

  • entity: light.living_room_lights
    card_mod:
    style: |
    ha-card {
    --state-light-active-color: green;
    --state-light-inactive-color: red;
    }