There is a profile state "Headset Plugged in", "Any". That should work for you.
You may not want to do "any" on a bluetooth connection, since so much stuff is using bluetooth these days. On a bluetooth connection, you can have multiple devices on the same profile, with each device separated by a "/" (no quotes).