Specific audio output device trigger?

If there any way to have a macro that executes when a specific audio output device is changed? Basically I want a macro to trigger when I plug my headphones in, and a different macro to trigger when I disconnect my headphones.

The action below is the only that I know of that recognizes audio output changes...