Xbmc ir remote control at the pi hut store for a very cheap price of 3 pounds sounds...
To be honest sounded a task that went over my head to achieve
Should mention this is using a rasperry pi 2
desperate fir conf file for pioneer plasma 507xd remote