Hi I’m new to HA and i appreciate the help.
mini-graph-card seems it cant read history data its value is stuck so its flat line actual values are at the end where it works. History works well as does graph card.
type: custom:mini-graph-card
entities:
- sensor.thermometer_tent
name: Temperature
line_color: blue
line_width: 8
font_size: 75
hours_to_show: 48
points_per_hour: 20
And points before i added the graph move in time just all values are 23.9
chart_type: line
period: hour
type: statistics-graph
entities:
- sensor.thermometer_tent
stat_types:
- mean
- min
- max
title: tent
The same sensor. And when i go to history i also see the information.
So i guess its not reading the history properly.
Here is the picture of history of same sensor.
A difference between mini-graph and history-graph:
when a sensor is unavailable or unknown (not created yet) - then m-g-c shows a flat (not correct), h-g shows a gap (correct).
But I am not sure if this is related to the case in the 1st post….
I would suggest to post a screenshot of history-graph with same hours-to-show.
You are showing a History view which contains LTS before ~04:00 , August 2.
Means - you have NO history before that moment.
And that is why mini-graph shows a flatline (just a guess since you have not mentioned at what time that mini-graph stops showing flatline).
Normally, data gets recorded in the states table in the DB, according to your recorder settings. The granularity will be as often as the sensor value changes.
Some sensors have extra attributes that allow them to be stored in the long-term stats table. Here, data is rolled up to a minimum of an hour granularity (and hence become a statistic for that interval). Data here is currently kept forever.
Thank you so much for explaining it so clearly. You did help and its appreciated and one more question? Can u set up recorded and just point me to the right direction. Thank you once more <3
I’m not following you completely, but if you’re asking what data can be used, then the answer is that it depends on the card whether it will retrieve long-term stats (LTS). As Ildar mentioned, the mini graph card doesn’t read it, but Apex Charts can.
Actually, History view shows “augmented” history - history and LTS. Not sure if any custom card can do it.
I guess that the main issue here is - “why my history is flatline”. Answer - because you have no recorded history. And may be OP should reconsider his settings for Recorder instead of searching for a card which allows to see a non-precise statistical data.