I would like to have shown how much time the heater was on on a daily basis, and possibly get also a graph where I can choose to show weekly or monthly.
I think that will report for a period representing the last 24 hours. In other words, the starting time is the time you look at the sensor minus 24 hours.
If you want it to report for a period representing the current day you need to use start and set it to the beginning of the current day (using a calculation). The documentation provides an example:
All state values are stored as text (string). This sensor stores the elapsed time (in hours) as numeric text. The template uses float to convert the numeric text into a floating point number. It multiplies the number by 60 to convert from hours to minutes.
@petro yes, i have configured both. @Prathik_Gopal
it seems that the issue was related to MariaDB.
I decided to switch some days ago, since the hom-eassistant_v2.db was growing up really fast, even if I have
purge_keep_days: 7
purge_interval: 1
So, now I removed the db_url line of code and seems to work againā¦
Thanks all
I have to understand better where was the issueā¦
Recorder is what history pulls from if you use both recorder and history. I.E. You need to track it in recorder for it to show up in history. So if you arenāt recording that sensor in recorder, the history_stats wont work at all and the sensor wont appear in history even if you configure it to.
Without recorder, history is what controls what goes into history.