Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106260

Card-mod - return to default card background

$
0
0

I’m using card-mod to change the background of a card dependent to the entity’s state:

card_mod:
  style: |
    :host {
      {% if is_state('switch.w2_waschmaschine_fertig', 'on') %}
      --ha-card-background: lightgreen;
      {% elif is_state('switch.w2_waschmaschine_fertig', 'off') %}
      --ha-card-background: [default]
      {% endif %}
      }

What i’s looking for is the term i should use instead of the placeholder [default]. I want the background to return to default color.
This is diffenet in different themes, so i can’t use “black” or “white”.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>