I have a sensor with steadily increasing values, for example rainfall.
I want to send the daily values to influxdb and grafana. If I do this with an utility meter, I get increasing values throughout the day. Sending this to influxdb and grafana is not a good idea, because then I always have to select the max value for every day.
I could make a template sensor and copy the value at 23:59, but this is also not very nice. Is there something like a filter for keeping only the last value of the day/week/month?
That is pretty much what the template entity is, specifically history stats.
https://www.home-assistant.io/integrations/history_stats/#examples