Not sure about that one. Perhaps mechanical code? As for the switch I believe it must be located out of the room that houses the oil burner. If the burner is in an open basement the switch must be outside of the basement, such as on the first floor outside the door leading to the basement stairs.