I would like to have a double wall switch for the toilet where one switch (#1) turns on both the light and the fan while the second switch (#2) turns only the fan. Please note the light and the fan are separate devices operating at 220V.
So if I turn on the switch #1 both the light and the fan are turned on and the switch #2 has no function while the switch #1 is turned on.
If I turn on the switch #2 while the switch #1 is turned off, I was the fan to be turned on while the light is turned off.
I usually deal with DC circuits and in that case I could most probably just throw 1N400X diode between the light and the fan both of which would be connected in parallel to the source. However, I'm dealing with 220V AC here and I'm not quite sure how to make it work in this case.