I think that everyone has been responding to the 'switch' part of the question.

If it is a means of egress, you'll need to provide illumination depending on however the AHJ interprets NFPA 101.

Here in the Chicago area, we need to provide illumination for the egress path out to "the Public Way".


Ghost307