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