Are there any rules pertaining to mounting electrical objects in bathrooms?
Kind of. The code is written for lighting. Take a look at the drawing below for guidelines for mounting luminaries and their hardware. Some local code officials may use these rules for mounting our products. Do not send this diagram to customers.