I have a sensor that tracks my daily cost of electricity. It resets every day at midnight. I’m not clear on how to easily see or record the total for each day. I feel I’m missing something simple.
Or this one if your sensor does not generate statistics:
Thanks but I can’t make the statistics card do what I want. I need to see what the value of the sensor was just before it reset at midnight, but the only available option is “change” which is not that. Also it looks like it will only display a single value, but I want historical data. I can’t make the history card show anything except the same history that’s in the sensor.
Thank you, I’m sorry I didn’t appreciate the difference. Can I export or save the data that card produces?
No.
It seems my sensor doesn’t have any statistics as the graph just shows a fictitious number for today and nothing else. The numbers are there in the history but statistics don’t work. Is there any other solution?
Actually it seems this may be caused by the template sensor’s state class being set to total instead of measurement.
Nope, that’s not right, because now I can’t select state in the statistics graph. I’m really at sea here.
When did you create this sensor?
Statistics are generated from that point onwards, not retroactively for all data in the database.
Sorry for the late reply. I now have the daily chart working, it hadn’t stored statistics until that day because it didn’t have a measurement class. It works if I set that class to total. I still can’t get any other chart working though. I want to display by month or year but I can’t get it to add up the daily totals.