Today I created a custom device for Sharp Aquos (and other Sharp) TVs. This is a very simple device that allows you to turn the TV on and off, set the volume, change the inputs and mute/unmute.
This device has a ton of caveats. Please read the README:
SmartThings does not have the ability to parse return values from the Sharp console. Thus, the state of the device is kept internal to the SmartThings device, and may drift from reality.
In addition, you can only send one command every 8 seconds. I wrote some blocking code to prevent the device from drifting quickly, but if you send more than 3 commands in a 20 second window you will definitely drift.
I had to hardcode the inputs you’d like to select on line 92. I only use input “1” and “2”. You’ll have to update this for your own taste, as SmartThings will not let us pick an array from device preference()
As a last note, if you want to increase the reliability of the device, remove the login and password from your Sharp Network TV settings.