Control your TV using IOTVRemote! This application communicates with the IOTReceiver which is required to control your TV. The code for the IOTReceiver can be obtained here: https://github.com/briankrupp/IOTVRemoteReceiver/
Application is built for iPhone, iPad, and Apple Watch!