kalkih / mini-graph-card

Minimalistic graph card for Home Assistant Lovelace UI
MIT License
2.85k stars 231 forks source link

Dynamic line color breaks at highest value #1108

Open FilmForge3D opened 1 month ago

FilmForge3D commented 1 month ago

When using the dynamic line color on my installation (fully up to date as of 2.6.2024) the coloring of the line stops working when the sensor value is over the color threshold. Instead of the highest value color the line color is one from a lower point on the graf.

Adding another value high above the ones that can ever be reached does not resolve the issue.

image

type: custom:mini-graph-card
name: Gartenklima
icon: mdi:thermometer-water
entities:
  - entity: sensor.thermometer_garten_temperature
    show_legend: false
    show_state: true
  - entity: sensor.thermometer_garten_humidity
    color: blue
    show_legend: false
    show_state: true
    y_axis: secondary
color_thresholds:
  - value: -5
    color: '#8000ff'
  - value: 0
    color: '#0045ff'
  - value: 10
    color: '#00c8ff'
  - color: '#c8ff80'
  - color: '#ffc800'
  - color: '#ff8000'
  - value: 25
    color: '#ff0000'
line_width: 2
points_per_hour: 2
hour24: true
smoothing: true
animate: true
MrcoSchrnr commented 4 weeks ago

+1 Vote from me!

a configuration with thresholds by a value of a sensor will be awesome

owldown commented 3 weeks ago

I am seeing the same issue