Changer background du type grid

Bonjour,
voici un exemple avec card-mod, a adapter a t’es besoin:

type: custom:mod-card
style: |
  ha-card {
    background-image: url("/local/images/SDB.png");
    background-repeat: no-repeat;
    background-size: 650px 295px
  }
card:
  type: grid
  square: true
  columns: 2
  title: Salle de bain
  cards:
    - show_name: true
      show_icon: true
      type: button
      tap_action:
        action: toggle
      entity: light.grp_lumieres_spot_sdb
      style: |
        ha-card {
          background-color: rgba(50,50,50,0.7)
        }
    - show_name: true
      show_icon: true
      type: button
      tap_action:
        action: toggle
      entity: light.grp_lumieres_sdb
      style: |
        ha-card {
          background-color: rgba(50,50,50,0.7)
        }

card_mod background

2 « J'aime »