Help with a fan control rule

I have a rule to control a fan in the utility room based on humidity relative to a another device. (screenshot)

I wanted the control to function only between certain times so a 'scheduling' rule sets a virtual switch (UtilityFanAuto) on between the on off times. (screenshot)

I would like the fan control rule to terminate when the virtual switch is set off and for preference switch off the fan as it terminates.

Need help achieving this.

Thanks


Can you add an additional condition to your wait for event that looks for the virtual switch turning off?

Thanks for the reply, I will give it a try.

Download the Hubitat app