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

[lovelace-card-mod] Badge with filter and with custom style

$
0
0

Is possible styling badge with filter? https://github.com/thomasloven/lovelace-card-mod
I try this… but not working.

      - type: entity-filter
        style: |
          :host {
            --label-badge-red: 
            {% if is_state('sensor.hacs', '0') %}
              var(--primary-color)
            {% else %}
              var(--warning-color)
            {% endif %}
            ;
          }
        entities:
          - sensor.hacs
        state_filter:
          - operator: <
            value: 2

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106364

Trending Articles



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