Hello,
first of all I would like to say that mini graph card is really great card. I am new with HA so I would like ask you if I do something wrong.
What I want is that I will see graph blue for temperature bellow -10, light blue for bellow zero, orange over zero and red over 28.
I set this:
color_thresholds_transition: hard
color_thresholds:
- color: blue
value: -50
- color: '#039BE5'
value: -10
- color: var(--accent-color)
value: 0
- color: '#E74C3C'
value: 28
Problem is that I do not see expected graph with correct color, bu I se black graph.
What I have is that my temperature sensor have samples from 1,5C to 18C. It means that my database do not have temperatures bellow zero and over 28C.
I did some test.
TEST 1. When I set thresholds in “samples” range it works same way as I expected. But with wrong thresholds for me.
color_thresholds_transition: hard
color_thresholds:
- color: blue
value: 2
- color: '#039BE5'
value: 5
- color: var(--accent-color)
value: 7
- color: '#E74C3C'
value: 10
TEST 2. Last threshold over then existing data set highest part to black color, same behavior is for lowest threshold:
color_thresholds_transition: hard
color_thresholds:
- color: blue
value: 2
- color: '#039BE5'
value: 5
- color: var(--accent-color)
value: 7
- color: '#E74C3C'
value: 28
TEST 3. Required thresholds with lower and upper bound works, but it create small graph:
upper_bound: ~50
lower_bound: ~-50
color_thresholds_transition: hard
color_thresholds:
- color: blue
value: -50
- color: '#039BE5'
value: -10
- color: var(--accent-color)
value: 0
- color: '#E74C3C'
value: 28
TEST 4: If I change upper_bound lower then highest threshold graph is changed to black
I would like to use threshold for see temperature ranges. It does not mean that I will see all colors it should be depended on values from last 48 hours (set in hours_to_show).
Thank you for your advices and help