Leviton 20A timer in bathroom
I appreciate all your responses.
Just to clarify, the switch in the bathroom is housed inside a junction box with another switch. The other switch is for the lights. So black #2 delivers the power to the junction box. It's connected first to the fan switch and then ends up in the light switch.
I opened the junction box to get a better look of all the wirings. There are four cables coming into the box. One comes from the light, one from the fan, one is the feed, and the last one is for the three-way setup or you call travellers. The cables from the light, fan, feed are your typical black/white/ground.
I attempted to hook up the timer yesterday. To summarize the wiring I did,
Timer's BLACK to black#2 (which delivers the power from the feed)
Timer's BLUE to black#1 ((the one that was pushed in which I believe came from the fan)
Timer's GREEN to junction box ground
Timer's WHITE to travellers' white
I capped off the travellers' red. I did not touch the travellers' black as it was already bundled up with a set of black wires.
When I tried it, I could see a pilot light from the timer which probably means it has power. When I used one of the settings (5 mins), I could hear a low hum but the fan does not turn on. When I turn it timer off, it will stop humming.
I then tried to connect the Timer's WHITE to other whites already bunched together. I got the same results.
Now I wonder if I have the right switch since it says 20A when I have a 15A breaker in the breaker box.
Please pardon my use of non-technical terms.