DBuit / Homekit-panel-card

Homekit panel card for home assistant
MIT License
306 stars 55 forks source link

rulesColor is not working #19

Closed briis closed 4 years ago

briis commented 4 years ago

I cannot get rulesColor to work. No matter what color I set it to, it stays white - and makes impossible to read on a light background. Below is a snippet of the configuration:

      - type: 'custom:homekit-card'
        home: true
        rules: >
          {% if states('sensor.current_lights_on') | float > 0 %} <li>{{states('sensor.current_lights_on')}} {% if states('sensor.current_lights_on') | float > 1 %}lamper {% else %}lampe {% endif %}tændt</li> {% endif %} 
          {% if states('sensor.current_cameras_recording') | float > 0 %} <li>{{states('sensor.current_cameras_recording')}} {% if states('sensor.current_cameras_recording') | float > 1 %}kameraer {% else %}kamera {% endif %}optager</li> {% endif %}
        rulesColor: '#EB5B4C'

Am I settings this up wrong?

DBuit commented 4 years ago

@briis just released V0.4.1 with a fix for the rulesColor :)