You cannot turn off the anti fog function unless a wall switch is used. I wired directly and the antifog is always on and in my situation it actually warmed the bathroom and was very warm to the touch....it was on 24/7 and although it may not use much electricity as a licensed contractor i was uncomfortable leaving it installed producing this much heat.