Controling ceiling fan and light with one switch?

Actually I was thinking this:

Just thinking outloud because this topic has some of my wheels spinning on possible use.

For a follow-up question. In the image you posted I assume the larger item is the fan switch. What is the smaller one. I assume the light dimmer. What brand / type?