Hmmn. I think that a large factor could be that your mind doesn't like it when the light levels change in dreams. I think it is the light that is the problem and not the switch.

Whenever I want to change the lighting I have to use magic.