kalkih / mini-graph-card

Minimalistic graph card for Home Assistant Lovelace UI
MIT License
3.04k stars 235 forks source link

FR: Allow templates and/or input_numbers in color_threshold values #852

Closed sciurius closed 2 years ago

sciurius commented 2 years ago

I would like to be able to write

color_thresholds:
  - value: 0
    color: "#00ff00"
  - value: input_number.some_threshold
    color: "#ff0000"

Alternatively, support for templates would be nice, e.g.

  - value: "{{ states('input_number.ithocve_humidity_threshold') }}"

Thanks,

jlsjonas commented 2 years ago

Duplicate of #697

sciurius commented 2 years ago

Okay, but shall we keep the input_numbers part?

ildar170975 commented 2 years ago

shall we keep the input_numbers part?

Better to be implemented as a template.