I have a RG-9 rain sensor that reports if it is raining or not. It is quite sensitive so it’ll report as “Dry” if no rain drops have hit the sensor dome in the last few seconds, but it can also reports “Wet” if there is some morning dew forming.
I would like to close a window and garage door if it is persistently raining, not just drizzling (I live in Portland, OR – so there is a difference )
Can I specify a trigger if the rain sensor reported “Wet” for more than X minutes within the last Y-minutes window?? It is reported using a ESP32/ESPHome sensor, so the integration could be done at that end as well.