I was able to create statistics graphs of both sensors separately.
I can create a history graph. Is there a way to add mean of value to the history graph?
It’s working but it doesn’t show graph before adding state_class: measurement and I need a graph from a few days ago. Normally I would use history-graph but there is no mean/average option there. Any advice?
I’m experiencing the same problem. Sensor values are recalculated by use of template and lambda similar to the above, except I use interval: 10s instead of update interval.
I’ve added state_ and device_class as described here.
My dashboard shows the correct values from the lambda calculations, however the statistic chart cards shows “loading statistics” forever. And clicking on the sensor value in the entities card shows a history graph, so data is available.
Anyone any idea? Versions:
Core2024.4.4
Supervisor2024.04.0
Operating System12.2
Frontend20240404.2
I’ll submit .yaml data if there’s no immediate ideas popping up…