Humidity change in last 2 minutes

Just couldn’t find any examples. Have a kitchen hood controlled by HA.
So i would like it to detect a rapid humidity change (let’s say 5% between reading or a period of time) and then fire up the max speed.
So how can i trigger and calculate such humidity change in automation?

After more investigating… Looks like it’s not possible. Please prove me wrong

Can you reset a statistical sensor every 2 mins and compare the min to max? You might need 2 sensors for each minute if you want 1 min responsiveness.

You could also have a look at templates in automations:

For the state-type triggers you get access to the old and the new state via trigger.from_state and trigger.to_state, that could be used for the conditions.
It should be possible, to build something out of that.
Not sure what a sensible trigger would look like in your case - maybe a threshold value for humidity.

Sebastian

Will up the topic as still coudn’t find a solution. What about the