Hmmm, I think at the moment there is no easy way to do that. With some custom indicator for sure. I think this was requested before, but I'm not sure how to make it - in the Condition block as options or somehow in a new category of blocks.
I don't like the first method because I must add who knows how many parameters (people always want more) and it will become a soup. Someone will say - I want this, but for the last X hours. Other will say - I want this, but the average value.
And the other method as well, because some hard-to-use blocks will appear 🙂