kalkih / mini-graph-card

Minimalistic graph card for Home Assistant Lovelace UI
MIT License
3.05k stars 238 forks source link

Line color don't match color_thresholds #663

Closed Quw1 closed 2 years ago

Quw1 commented 3 years ago

Line color never changes and always stays green when using color_thresholds. But this only happens with one sensor, another one works as expected. Same issue as in #70.

image

type: horizontal-stack
cards:
  - type: custom:mini-graph-card
    color_thresholds:
      - value: 22
        color: '#3bcf77'
      - value: 27
        color: '#d7da40'
      - value: 32
        color: '#df6943'
    entities:
      - entity: sensor.weather_home_temp
        state_adaptive_color: true
    hours_to_show: 1
    points_per_hour: 14
    decimals: 1
    font_size: 92
    align_icon: state
    align_state: center
    line_width: 7
    show:
      fill: false
      name: false
      icon_adaptive_color: true
      labels: false
      points: false
    animate: true

  - type: custom:mini-graph-card
    color_thresholds:
      - value: 40
        color: '#3cbcc8'
      - value: 50
        color: '#29aaff'
      - value: 60
        color: '#005bff'
    entities:
      - entity: sensor.weather_home_hum
        state_adaptive_color: true
    align_state: center
    font_size: 92
    line_width: 8
    points_per_hour: 14
    hours_to_show: 1
    decimals: 1
    align_icon: state
    show:
      fill: false
      icon_adaptive_color: true
      labels: false
      points: false
      name: false
    animate: true
stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this is still an active issue, please let us know!