Avoid having two songs with the same artist, title and album! Yammi will get really confused...
Yammi communicates with Xmms session 0. If you have problems with the communication, you might need to disable "Allow multiple instances" in Xmms (Preferences->Options).