mpeill
(Malcolm Peill)
December 23, 2020, 3:26pm
1
I’m trying to force a static y axis with a low of 10 and high of 40 by using:
- type: ‘custom:mini-graph-card’
entities:
- entity: sensor.ble_humidity_filament_storage
name: Filament Humidity
hours_to_show: 5040
lower_bound: 10
upper_bound: 40
show:
labels: true
but the graph insists on scaling the y axis to fit the current range of the input. What am I missing here?
mpeill
(Malcolm Peill)
December 23, 2020, 4:17pm
2
ah, got it. Problem with indents in code only !!!
GlennHA
(Glenn)
December 24, 2020, 7:03am
3
For future reference us the </> above so the indention issues can actually be seen by others:
type: vertical-stack
cards:
- type: 'custom:mini-graph-card'
entities:
- sensor.purpleair_p_0_3_um_a
unit: PM 0.3
name: Ultrafine Particles 0.3 (A) (24hr)
icon: 'mdi:grain'
hour24: true
show:
fill: true
legend: false
labels: false
state: true
icon: true
extrema: true
average: true
name: true
points: false
name_adaptive_color: true
icon_adaptive_color: true
show_legend: false
font_size: 75
line_width: 3
points_per_hour: 4
hours_to_show: 24
color_thresholds_transition: hard
color_thresholds:
- value: 0
color: '#68FF43'
- value: 1000
color: '#FFFF55'
- value: 3000
color: '#EF8533'
- value: 10000
color: '#EA3324'
- value: 20000
color: '#8C1A4B'
- value: 30000
color: '#731425'
- type: 'custom:mini-graph-card'
entities:
- sensor.purpleair_p_0_5_um_a
unit: PM 0.5
name: Ultrafine Particles 0.5 (A)(24hr)
icon: 'mdi:grain'
hour24: true
show:
fill: true
legend: false
labels: false
state: true
icon: true
extrema: true
average: true
name: true
points: false
name_adaptive_color: true
icon_adaptive_color: true
show_legend: false
font_size: 75
line_width: 3
points_per_hour: 4
hours_to_show: 24
color_thresholds_transition: hard
color_thresholds:
- value: 0
color: '#68FF43'
- value: 1000
color: '#FFFF55'
- value: 2000
color: '#EF8533'
- value: 4000
color: '#EA3324'
- value: 8000
color: '#8C1A4B'
- value: 16000
color: '#731425'
- type: 'custom:mini-graph-card'
entities:
- sensor.purpleair_p_1_0_um_a
unit: PM 1
name: Ultrafine Particles 1 (A) (24hr)
icon: 'mdi:grain'
hour24: true
show:
fill: true
legend: false
labels: false
state: true
icon: true
extrema: true
average: true
name: true
points: false
name_adaptive_color: true
icon_adaptive_color: true
show_legend: false
font_size: 75
line_width: 3
points_per_hour: 4
hours_to_show: 24
color_thresholds_transition: hard
color_thresholds:
- value: 0
color: '#68FF43'
- value: 100
color: '#FFFF55'
- value: 200
color: '#EF8533'
- value: 400
color: '#EA3324'
- value: 600
color: '#8C1A4B'
- value: 800
color: '#731425'
- type: 'custom:mini-graph-card'
entities:
- sensor.purpleair_p_2_5_um_a
unit: PM 2.5
name: Fine Particles 2.5 (A) (24hr)
icon: 'mdi:grain'
hour24: true
show:
fill: true
legend: false
labels: false
state: true
icon: true
extrema: true
average: true
name: true
points: false
name_adaptive_color: true
icon_adaptive_color: true
show_legend: false
font_size: 75
line_width: 3
points_per_hour: 4
hours_to_show: 24
color_thresholds_transition: hard
color_thresholds:
- value: 0
color: '#68FF43'
- value: 8
color: '#FFFF55'
- value: 16
color: '#EF8533'
- value: 24
color: '#EA3324'
- value: 40
color: '#8C1A4B'
- value: 60
color: '#731425'
- type: 'custom:mini-graph-card'
entities:
- sensor.purpleair_p_5_0_um_a
unit: PM 5
name: Coarse Particles 5 (A) (24hr)
icon: 'mdi:grain'
hour24: true
show:
fill: true
legend: false
labels: false
state: true
icon: true
extrema: true
average: true
name: true
points: false
name_adaptive_color: true
icon_adaptive_color: true
show_legend: false
font_size: 75
line_width: 3
points_per_hour: 4
hours_to_show: 24
color_thresholds_transition: hard
color_thresholds:
- value: 0
color: '#68FF43'
- value: 4
color: '#FFFF55'
- value: 8
color: '#EF8533'
- value: 12
color: '#EA3324'
- value: 20
color: '#8C1A4B'
- value: 30
color: '#731425'
- type: 'custom:mini-graph-card'
entities:
- sensor.purpleair_p_10_0_um_a
unit: PM 10
name: Coarse Particles 10 (A) (24hr)
icon: 'mdi:grain'
hour24: true
show:
fill: true
legend: false
labels: false
state: true
icon: true
extrema: true
average: true
name: true
points: false
name_adaptive_color: true
icon_adaptive_color: true
show_legend: false
font_size: 75
line_width: 3
points_per_hour: 4
hours_to_show: 24
color_thresholds_transition: hard
color_thresholds:
- value: 0
color: '#68FF43'
- value: 2
color: '#FFFF55'
- value: 4
color: '#EF8533'
- value: 6
color: '#EA3324'
- value: 10
color: '#8C1A4B'
- value: 15
color: '#731425'
long time since you posted but your code example doesn’t appear to actually show where you placed and indented the upper and lower bound attributes? and that was the point of your post