Button color change

Hi,

hopefully a simple question: I have two danalock devices connected to z-wave and want to change the color of an icon (invert). Now i have: yellow color when unlocked and white when locked and want to be the other way.

Can You help me where to change it ?

Regards,
Mike

Can you tell us which card you are using for the buttons, and share the config?

Yes
I’m using grid card. and here’s my yaml.
type: grid
cards:

  • type: button
    tap_action:
    action: toggle
    entity: lock.przedpokoj_zamek_gorny_416
    name: Zamek górny
  • type: button
    tap_action:
    action: toggle
    entity: lock.przedpokoj_zamek_dolny_417
  • type: button
    tap_action:
    action: toggle
    entity: light.przedpokoj_swiatlo_drzwi_183
    name: Drzwi wejściowe
  • type: button
    tap_action:
    action: toggle
    entity: light.przedpokoj_swiatlo_przedpokoj_196
    name: Przedpokój
  • type: button
    tap_action:
    action: toggle
    entity: light.garderoba_swiatlo_garderoba_69
    name: Garderoba
  • type: button
    tap_action:
    action: toggle
    entity: light.salon_swiatlo_salon_48
    name: Salon sufit
  • type: button
    tap_action:
    action: toggle
    entity: light.salon_lampa_salon_29
    name: Salon lampa
  • type: button
    tap_action:
    action: toggle
    entity: light.salon_lampka_salon_41
    name: Salon lampka
  • type: button
    tap_action:
    action: toggle
    entity: light.kuchnia_swiatlo_wyspa_179
    name: Kuchnia wyspa
  • type: button
    tap_action:
    action: toggle
    entity: light.kuchnia_swiatlo_blat_82
    name: Kuchnia blat
    state_color: false
  • type: button
    tap_action:
    action: toggle
    entity: light.sypialnia_swiatlo_sypialnia_19
    name: Sypialnia sufit
  • type: button
    tap_action:
    action: toggle
    entity: light.taras_swiatlo_taras_24
    name: Taras
    layout:
    key: 6a2b773d-4b6f-47ef-b15d-c840538a61d3