Looks like you need my
Bathroom Humidity Exhaust Fan blueprint. It will also control the fan and keep the light on. It also has a automation link so you can use this blueprint and the other one.
The other way is to use a template sensor (REF - TS-3 in the link below for template sensors) so when your bathroom is above 60% it turns the bypass on. Probably use option 3 in the by-pass and maybe an auto off.
A better way that I would recommend is to get a door contact sensor and use
Bee In The Hive Sensor
template sensor. You will love it. The how to and all my examples of template sensors Click Here.
Blacky ![]()