Numeric state trigger reacting to relative changes

Hi there,

I’d like to trigger my home ventilation by humidity sensors in our bathrooms, so showering results in increased venting.
Since humidity changes greatly over the year I’d prefer relative changes to trigger the event, e.g. a gain of 10% in humidity in 5 minutes.

I figured, I need to use template triggers to achieve that, but due fairly restricted programming skills, I’m stuck.

Can someone help me realise it? Thanks a lot in advance!

Hi. Give this one a try:

The example in the docs is very similar to your request.

Thanks for the tip, the example is indeed quite similar. I’ll try if I can make it work.
Don’t know why I couldn’t find that.

Edit: Works as expected! Thanks again!