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

Mushroom template chip background color

$
0
0

Hi
Until now i have used card-mod to control background color of a mushroom template chip like this:

 card_mod:
      style: |
        ha-card {
            {% if states('switch.vvb') == 'on' %}
               --chip-background: rgba(0, 255, 0, 0.2);
            {%- else -%}
               --chip-background: rgba(255, 0, 0, 0.2);
            {%- endif %}
        }

But this wont work after updating to card-mod 3…

Anyone have a solution to this?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 107425

Trending Articles



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