I figured it out. When I initially programmed it I did it under the tv instead of programming it when I was in the activity.
Im having some trouble getting things setup maybe you guys could help. I have a Harmony one. I added the Panasonic tv as suggested. Now when I go to my activity of watch movies I cant control XBMC but if I choose devices and choose the Panasonic it works. How do I get it to control when in the activity. Thanks for any help.