Need Help on Humidity Fan Automation

You can use a second automation for off with a condition that checks to see if the fan was turned on manually or by an automation. There’s an example of how to store this context when an entity is turned on here: Access to trigger.to_state.context from a different entity? - #3 by tom_l