I have a script that turns off a fan when the humidity drops below (say) 75.
My question is this.
Does the trigger only fire when the humidity crosses that threshold, (say it goes from 77 to 74), or would any change thats below 75 also trigger it, such as 68 to 65.
My initial testing would suggest it only fires when it crosses the threshold.
I have an automation that turns on a fan when humidity reaches a certain threshold, it then keeps it on for 10 minutes, then 10 minutes later it turns if off.
But it should only turn the fan off if the humidity at that point (10 minutes later), is 75 or below.
Sometimes, at the 10 minute mark, the humidity has already dropped below the threshold, so the fan stays on. I want it to check any humidity change to see if thats 75 or below.
If the fan is left on, because the humidity is still high, I then have this automation thats supposed to ‘periodically check’ if the humidity is below 75 and turn the fan off:-
I would simply use the humidity level to determine the amount of time to run the fan. Turn on the fan when the humidity increases above 75 (and remains above 75 for at least a minute) then turn off the fan when the humidity decreases below 75 (and remains below 75 for at least a minute).