thomasloven / lovelace-card-mod

🔹 Add CSS styles to (almost) any lovelace card
MIT License
1.04k stars 169 forks source link

Icon color mod doesn't work in Android app after latest updates #350

Closed JaybeRF closed 5 months ago

JaybeRF commented 5 months ago

My Home Assistant version: 2024.1.2

My lovelace configuration method (GUI or yaml): yaml

What I am doing:

I created auto-entities card, if battery is > 69% or has state high, icon should be green. If battery state is numeric everything is ok, for high/low state i use card mod.

What I expected to happen:

Icons of entities should be green in both web and app

What happened instead:

After some updates (can't say what exactly) icons on web are green as usual but in android app they are default blue, so card mod is not working for HA companion

Minimal steps to reproduce:

# The least amount of code possible to reproduce my error

type: custom:auto-entities
show_empty: false
card:
  type: entities
  state_color: true
filter:
  include:
    - entity_id: '*batt*'
      state: '> 69'
    - entity_id: '*batt*'
      state: high
      options:
        style: |
          :host {
            --card-mod-icon-color: #4caf50;
          }
sort:
  method: state
  numeric: true

# End of code

Error messages from the browser console:


By putting an X in the boxes ([]) below, I indicate that I: