Although smart plugs are intended for only turning something on and off, there are some unique ones (ex. Leviton Decora Smart Plug-in Dimmer) that are able to dim lights.