Setting up pasystray

I am a noob idiot.
I had things going then I stuck my fingers where they did not belong and now it doesn’t work like it should.
I have all sound going through pulseeffects which is going well.
Right now the pulse controller needs to be reset each time I start a sound. The pulse effects line is defaulting to pulse effects sink which is like a loop because ever sound app is linked to the pulse effects. I believe that is what you want to use pulseeffects.
I do have pasystray installed. How do I set things so that the pulse effects defaults to HDMI when it is plugged in or audio speaker/headphones when it is not?