I’m trying to create a statistic sensor that will show me how much rain has accumulated today (from midnight to current) and store that in an entity. In my example,
sensor.outdoor_rain is a state_class of
While I can easily do this in a statistic sensor for the last 24 hours, unsure how I can do one for today since midnight.
This easily works for the past 24 hours:
- platform: statistics
name: "24 Hour Rain"
And then this works for the frontend in a Lovelace card to get me midnight through now, but doesn’t give it to me in an entity:
How can I get the value that it computes in this Lovelace statistics card into an entity? It seems that the calendar option is not an option on the statistics sensor integration which would solve this problem. Anything I’ve missed?