Mini-graph-card hours-to-show and points-per-hour not working

Hi,
I can’t get the hours-to-show and points-per-hour settings to work. No matter what I put it keeps on using 24 hours and 0.5 data points. I also added the history. (Note that I don’t yet have 24hours of data)

type: 'custom:mini-graph-card'
entities:
  - entity: sensor.temp_eglantier
    name: Buitentemperatuur
hours-to-show: 1
points-per-hour: 6
align_state: center
name: Buitentemperatuur
icon: 'mdi:thermometer'
hour24: true
unit: C°

Welcome to the forums ExtinctSKB,

the correct format is:


hours_to_show:

points_per_hour:


1 Like

Here is an example of most of the other items in a mini-graph:

type: 'custom:mini-graph-card'
entities:
  - sensor.purpleair_dewpoint
unit: ''
name: ''
icon: ''
hour24: true
show:
  fill: true
  legend: false
  labels: false
  name: true
  points: false
  name_adaptive_color: true
  icon_adaptive_color: true
  show_legend: false
  state: false
  icon: true
  extrema: true
  average: true
font_size: 75
line_width: 3
points_per_hour: 4
hours_to_show: 24
color_thresholds_transition: hard
color_thresholds:
  - value: 0
    color: '#0513eb'
  - value: 30
    color: '#34bdeb'
  - value: 50
    color: '#68c843'
  - value: 55
    color: '#68aa43'
  - value: 60
    color: '#ffff55'
  - value: 65
    color: '#ef8533'
  - value: 70

gr

Did you fix this? I am getting the same problem.