The answer to 'dimmer switch gets hot' is that a dimmer switch getting hot is often caused by an overload on the circuit or a faulty dimmer switch. Symptoms may include the switch feeling very warm or hot to the touch, flickering or dimming lights, or even a burning smell. Solutions can include replacing the dimmer switch, reducing the number of lights on the circuit, or having an electrician evaluate the wiring and electrical load.
It's important to address a hot dimmer switch promptly, as it can be a fire hazard. Homeowners can try replacing the dimmer switch themselves if they feel comfortable working with electrical components, but it's generally recommended to call a licensed electrician, especially if the issue persists or the home's electrical system seems problematic.