Hello, i have configured a sensor to have all time max value of a sensor. But how can i display daily max or monthly max? Perfect will be also 24h max or yesterday max. This is all time max:
It all depends on your use case.
If it’s just for displaying it, you might just use the statistics card. This can also be set to ‘Yesterday’.
type: statistic
entity: sensor.grid_power
period:
calendar:
period: day
stat_type: max
name: Slar peak today
grid_options:
columns: 6
rows: auto
If you want to store the value, you might want to look at a statistics helper. There you can set the max age, unfortunately not “Today” or “Yesterday”. But today is the yesterday of tomorrow, so you might just have the yesterday value set at the end of today.