Xiaomi Humidity and temperature graph spikes

Hello everyone!
I’m having some issues with the history_graph in my frontend it displays in the most horrible way possible.
How would you fix it? :exploding_head:
(already tried median 1 median 2 median 5…)

spikes

the code:

history_graph:
   gr1:
    name: Temperatura
    entities:
      - sensor.termostato_temperature
      - sensor.termostato_humidity
    hours_to_show: 24
    refresh: 1800

And the sensor itself:

  - platform: mitemp_bt
    mac: ******
    name: Termostato
    median: 1
    monitored_conditions:
      - temperature
      - humidity
      - battery

Have you tried a Statistics Sensor of those sensors, and then graph that instead?

ill give it a try!!

nope, keeps looking the same :frowning: