How do they work? I'm talking about the simple two wire type with the knob like a dimmer switch used on residential ceiling fans.

Took one appart today and it's a rheostat with a transistor and that's not what I expected.