Disable a rule if manual switch is used

Hi,
I have been researching but not found what I am looking for. I am looking for a way to disable a rule if a manual switch is used instead (to turn on same device)?
Here is my scenario; I have rule that turns on a switch that controls a ventilation fan based on a humidity sensor. I then have a rule that turns off the switch if humidity drops below a certain level. I would like to manually turn the switch on but not have the "turn off" rule turn off the fan once it determines the humidity is below the "turn off" threshold.
Any suggestions are appreciated...clearly I am very new at this.
Thanks
Scott

Use Required Expression in the rule that turns the fan off.
Put the manual switch in the Required Expression and that it has to be when you put the switch to on, the rule will not run.

You can read about required expressions in the document.

Does your switch report physical events? In the device events it'll look like this.
image

If so, the "turn off" rule could trigger with digital events only. Here it is in the trigger capability menu

Use a different (virtual) switch or variable that activates when you manually turn on the switch, as restriction for the turn off rule.