En résumé, j’ai rendu mes cards légèrement transparent avec card-mod, du coup les valeurs ne sont plus lisible.
J’aimerai changé le texte de valeurs en Blanc par exemple
Voici le code d’une de mes cards
square: true
columns: 7
type: grid
cards:
- type: custom:mushroom-light-card
card_mod:
style: |
ha-card {
background-color: rgba(10,10,10,0.8);
box-shadow: var( --ha-card-box-shadow, 0px 2px 1px -1px rgba(255, 255, 255, 0.2), 0px 1px 1px 0px rgba(255, 255, 255, 0.14), 0px 1px 3px 0px rgba(255, 255, 255, 0.12) );
}
entity: light.shelly_plus_1_cuisine
tap_action:
action: toggle
fill_container: true
use_light_color: false
name: Cuisine
layout: vertical
- type: custom:mushroom-light-card
card_mod:
style: |
ha-card {
background-color: rgba(10,10,10,0.8);
box-shadow: var( --ha-card-box-shadow, 0px 2px 1px -1px rgba(255, 255, 255, 0.2), 0px 1px 1px 0px rgba(255, 255, 255, 0.14), 0px 1px 3px 0px rgba(255, 255, 255, 0.12) );
}
entity: light.shelly_plus_1_salon
tap_action:
action: toggle
fill_container: true
name: Salon
layout: vertical
- type: custom:mushroom-light-card
card_mod:
style: |
ha-card {
background-color: rgba(10,10,10,0.8);
box-shadow: var( --ha-card-box-shadow, 0px 2px 1px -1px rgba(255, 255, 255, 0.2), 0px 1px 1px 0px rgba(255, 255, 255, 0.14), 0px 1px 3px 0px rgba(255, 255, 255, 0.12) );
}
entity: light.shelly_plus_1_sejour
tap_action:
action: toggle
name: Séjour
fill_container: true
layout: vertical
- type: custom:mushroom-entity-card
card_mod:
style: |
ha-card {
background-color: rgba(10,10,10,0.8);
box-shadow: var( --ha-card-box-shadow, 0px 2px 1px -1px rgba(255, 255, 255, 0.2), 0px 1px 1px 0px rgba(255, 255, 255, 0.14), 0px 1px 3px 0px rgba(255, 255, 255, 0.12) );
}
entity: switch.shelly_shellyplus1_441793aa8310
tap_action:
action: toggle
name: Prise PC
fill_container: true
layout: vertical
- type: custom:mushroom-entity-card
card_mod:
style: |
ha-card {
background-color: rgba(10,10,10,0.8);
box-shadow: var( --ha-card-box-shadow, 0px 2px 1px -1px rgba(255, 255, 255, 0.2), 0px 1px 1px 0px rgba(255, 255, 255, 0.14), 0px 1px 3px 0px rgba(255, 255, 255, 0.12) );
}
entity: switch.shelly_shellyplus1_441793aa958c
tap_action:
action: toggle
name: Chargeur
fill_container: true
layout: vertical
icon: ''
- type: custom:mushroom-entity-card
card_mod:
style: |
ha-card {
background-color: rgba(10,10,10,0.8);
box-shadow: var( --ha-card-box-shadow, 0px 2px 1px -1px rgba(255, 255, 255, 0.2), 0px 1px 1px 0px rgba(255, 255, 255, 0.14), 0px 1px 3px 0px rgba(255, 255, 255, 0.12) );
}
entity: switch.shelly_shellyplus1_441793aa2e64
icon: mdi:bell-ring
tap_action:
action: toggle
name: Sonnette
fill_container: true
layout: vertical
- type: custom:mushroom-entity-card
card_mod:
style: |
ha-card {
background-color: rgba(10,10,10,0.8);
box-shadow: var( --ha-card-box-shadow, 0px 2px 1px -1px rgba(255, 255, 255, 0.2), 0px 1px 1px 0px rgba(255, 255, 255, 0.14), 0px 1px 3px 0px rgba(255, 255, 255, 0.12) );
}
entity: switch.meross_etage_outlet
tap_action:
action: toggle
fill_container: true
layout: vertical
name: Étage
- type: custom:mushroom-entity-card
card_mod:
style: |
ha-card {
background-color: rgba(10,10,10,0.8);
box-shadow: var( --ha-card-box-shadow, 0px 2px 1px -1px rgba(255, 255, 255, 0.2), 0px 1px 1px 0px rgba(255, 255, 255, 0.14), 0px 1px 3px 0px rgba(255, 255, 255, 0.12) );
}
entity: switch.smart_switch_21012152451866290d3348e1e947b528_outlet_4
tap_action:
action: toggle
fill_container: true
layout: vertical
name: TV
- type: custom:mushroom-entity-card
card_mod:
style: |
ha-card {
background-color: rgba(10,10,10,0.8);
box-shadow: var( --ha-card-box-shadow, 0px 2px 1px -1px rgba(255, 255, 255, 0.2), 0px 1px 1px 0px rgba(255, 255, 255, 0.14), 0px 1px 3px 0px rgba(255, 255, 255, 0.12) );
}
entity: switch.smart_switch_21012152451866290d3348e1e947b528_outlet_5
tap_action:
action: toggle
fill_container: true
layout: vertical
name: Denon
- type: custom:mushroom-entity-card
card_mod:
style: |
ha-card {
background-color: rgba(10,10,10,0.8);
box-shadow: var( --ha-card-box-shadow, 0px 2px 1px -1px rgba(255, 255, 255, 0.2), 0px 1px 1px 0px rgba(255, 255, 255, 0.14), 0px 1px 3px 0px rgba(255, 255, 255, 0.12) );
}
entity: switch.smart_switch_21012152451866290d3348e1e947b528_outlet_3
tap_action:
action: toggle
fill_container: true
layout: vertical
name: Sub
- type: custom:mushroom-entity-card
card_mod:
style: |
ha-card {
background-color: rgba(10,10,10,0.8);
box-shadow: var( --ha-card-box-shadow, 0px 2px 1px -1px rgba(255, 255, 255, 0.2), 0px 1px 1px 0px rgba(255, 255, 255, 0.14), 0px 1px 3px 0px rgba(255, 255, 255, 0.12) );
}
entity: switch.smart_switch_21012152451866290d3348e1e947b528_outlet_2
tap_action:
action: toggle
fill_container: true
layout: vertical
name: Led TV
icon_color: orange
- type: custom:mushroom-entity-card
card_mod:
style: |
ha-card {
background-color: rgba(10,10,10,0.8);
box-shadow: var( --ha-card-box-shadow, 0px 2px 1px -1px rgba(255, 255, 255, 0.2), 0px 1px 1px 0px rgba(255, 255, 255, 0.14), 0px 1px 3px 0px rgba(255, 255, 255, 0.12) );
}
entity: switch.smart_switch_21012152451866290d3348e1e947b528_outlet_6
tap_action:
action: toggle
fill_container: true
layout: vertical
name: USB
- type: custom:mushroom-entity-card
card_mod:
style: |
ha-card {
background-color: rgba(10,10,10,0.8);
box-shadow: var( --ha-card-box-shadow, 0px 2px 1px -1px rgba(255, 255, 255, 0.2), 0px 1px 1px 0px rgba(255, 255, 255, 0.14), 0px 1px 3px 0px rgba(255, 255, 255, 0.12) );
}
entity: switch.chauffage_hall_outlet
tap_action:
action: toggle
fill_container: true
layout: vertical
icon: mdi:heat-wave
name: Chauffage Hall
icon_color: red
- type: custom:mushroom-entity-card
card_mod:
style: |
ha-card {
background-color: rgba(10,10,10,0.8);
box-shadow: var( --ha-card-box-shadow, 0px 2px 1px -1px rgba(255, 255, 255, 0.2), 0px 1px 1px 0px rgba(255, 255, 255, 0.14), 0px 1px 3px 0px rgba(255, 255, 255, 0.12) );
}
entity: switch.smart_switch_21012152451866290d3348e1e947b528_outlet
tap_action:
action: toggle
fill_container: true
layout: vertical
name: Multiprise TV
icon: ''
icon_color: green