I have been looking around but have not had any luck finding what I am looking for, basically I want to create a rolling average that is done over say 1 week or 1 month etc but changes based on the time of day.
for example if it is just the last 2 days to use then @12:00 it would take the value 1 and 2 days ago @ or nearest to 12:00 and in priority calculate ave min max
I am thinking this will be useful to forecast the values ahead of us or simply to compare… eg what did the energy profile look like last year at this time? or last month? how much have prices for electricity increased since last year? etc… basically, to answer “are we doing better or worse than a span that is seen as comparable?”
something I have done in excel looks like this that I was hoping to do in home assistant a comparison of min/max and average of these statics and overlay it on the data today (blue, hand drawn ) :
have you all seen something like this done in home assistant?
seems if this does not already exist it looks to be requiring some sql ?
your help is appreciated!
if you have seen something you think can help with this please send it over!
if you have ideas how to best go about it - let me know!
1 post - 1 participant