2 different Apex cards both with one identical temperature entity show each a different temperature

I have two Apex cards that both show the same temperature (template) entity.
The buitentemp temperature shown on both cards is not the same.
What is the cause of that?

 ####### sensor.yaml
- platform: template
  sensors:
#garage sensors aanpassen
    buitentemp_garage_ds18b20_gecorrigeerd:
      friendly_name: "Buitentemp garagedak (corr)"
      unit_of_measurement: °C
      value_template: "{{ (states ('sensor.buitentemperatuur_ds18b20')| float - 1.8) | round(1) }}"
      unique_id: buitentemp_garage_ds18b20_gecorrigeerd

can you provide the yaml for both cards?

top card:

type: custom:apexcharts-card
experimental:
  color_threshold: true
graph_span: 24h
apex_config:
  yaxis:
    - id: first
      forceNiceScale: true
      decimalsInFloat: 0
      opposite: true
      name: C
      labels:
        show: true
        style:
          colors: red
    - id: second
      forceNiceScale: false
      decimalsInFloat: 1
      opposite: false
      name: W
      labels:
        show: true
        style:
          colors: lightblue
    - id: third
      forceNiceScale: true
      decimalsInFloat: 0
      opposite: true
      name: C
      labels:
        show: true
        style:
          colors: green
show:
  last_updated: true
header:
  standard_format: false
  show: true
  show_states: true
  colorize_states: true
  title: Elga Watt  vs Temp buiten
span:
  end: hour
series:
  - entity: sensor.elga_aanvoertemp_ds18b20_gecorrigeerd
    type: line
    group_by:
      func: last
      duration: 15m
    stroke_width: 2
    color: red
  - entity: sensor.smart_plug_elga_power
    type: line
    float_precision: 3
    group_by:
      func: last
      duration: 15m
    stroke_width: 2
  - entity: sensor.buitentemp_garage_ds18b20_gecorrigeerd
    type: line
    group_by:
      func: last
      duration: 15m
    stroke_width: 3
    name: buitentemp
    color: green

bottom card:

type: custom:apexcharts-card
graph_span: 24h
span:
  end: hour
header:
  standard_format: false
  show: true
  show_states: true
  colorize_states: true
  title: Gasverbruik laatste 24 uur
apex_config:
  yaxis:
    - id: first
      forceNiceScale: true
      decimalsInFloat: 3
      opposite: false
      name: Gas
      labels:
        show: true
        style:
          colors: orange
    - id: second
      forceNiceScale: true
      decimalsInFloat: 1
      opposite: true
      name: °C
      labels:
        show: true
        style:
          colors: green
    - id: third
      forceNiceScale: true
      decimalsInFloat: 1
      opposite: true
      name: °C
      labels:
        show: true
        style:
          colors: yellow
series:
  - entity: sensor.gasusage_this_hour
    unit: m3
    type: column
    name: gasverbruik
    color: '#EF810E'
    group_by:
      func: max
    show:
      datalabels: false
      extremas: false
  - entity: sensor.buitentemp_garage_ds18b20_gecorrigeerd
    unit: °C
    type: line
    stroke_width: 3
    name: buitentemp
    color: green
    group_by:
      func: max
    show:
      datalabels: false
      extremas: false
  - entity: sensor.temp_hum_woonkamer_temperature
    unit: °C
    type: line
    stroke_width: 3
    name: woonkamer temp
    color: yellow
    group_by:
      func: max
    show:
      datalabels: false
      extremas: false

I think it is this causing the slightly different results:

  group_by:
      func: last
      duration: 15m

and

  group_by:
      func: max

Thank you,
I 'll make them both the same and wait for the result

1 Like

They are now the same .

Thank you for the prompt solution.