Art,
I have an Ocelot and have used Barry Gordon's GenIRDB to create lir files. Just email me your lir file to
jarmstrong@hanarmco.com and I will append the discrete power and discrete input commands for a Sony TV. I can decode your existing TV commands with Jay's tools to make sure of the device number but I have never seen a Sony TV that wasn't Sony 12 bit protocol/device 1.
If there are any other discrete commands for other equipment let me know I have a pretty good database and we can give them a try.
Jon