A few days ago my wife mentioned that there was a "burning smell" near the kitchen, but it went away before I could investigate. Today I turned on the dimmer switch in my kitchen, and the lights began flickering. I turned off the switch, but not before a smell had started coming from the dimmer switch (pictured below). We've used the lights in my kitchen a bunch of times since my wife first had the issue, so it isn't consistent.
Is it likely the problem is faulty wiring or could the dimmer unit simply be going bad? I'd like to know my options before I replace it or pay for an electrician.