Template sensor min/max value show the same result?

Hi,

I created a template sensor from a attribute of my climate.vicare_heating entity which is working fine. I have some different custom mini graph cards that shows the min/max value but for some reason it’s not working for my created template sensor, the history graph from the sensor is working. Hope someone can help to solve my problem.

Created in configuration.yaml:

  - platform: template
    sensors:
      thermostaat_woonkamer:
       friendly_name: "Woonkamer temperatuur"
       value_template: "{{ state_attr('climate.vicare_heating', 'room_temperature') }}"
       unit_of_measurement: "°C"

The mini graph card:

entities:
  - entity: sensor.thermostaat_woonkamer
    name: Woonkamer
    color: '#09b523'
group: false
hour24: true
hours_to_show: 24
line_width: 4
name: Temperaturen overzicht
icon: 'mdi:home-thermometer'
points_per_hour: 1
show:
  extrema: true
  fill: fade
  labels: false
  name: true
  state: true
type: 'custom:mini-graph-card'

Maybe a dump question but did you wait long enough? With 1 point per hour it will take hours.
For me this works:

type: horizontal-stack
cards:
  - entities:
      - entity: sensor.lumi_6d760604_temperature
    font_size: 58
    height: 350
    hour24: true
    hours_to_show: 24
    index: 0
    line_color: blue
    line_width: 4
    name: Eingang
    points_per_hour: 60
    show:
      extrema: true
    type: 'custom:mini-graph-card'

Also your icon is not showing. You need to add:

show:
  extrema: true
  fill: fade
  labels: false
  name: true
  state: true
  icon: true  ####<--------

Thanks both for the answer. About the icon I know. :slight_smile:

Anyway i don’t get the min/max values working, keeps the same temp and time for both. Strange is that it works for all my other sensors created by default by installing add ons, etc. Also the graph history is working fine for the template attribute sensor. I think I’m missing something in the configuration.yaml but no clue what it is.

Edit: After changing the entity name of the sensor it’s working fine now. Seems that it’s needed after i changed the code in the configuration.yaml.