This page last changed on Mar 24, 2015 by gedelstyn.

I found this post http://www.openremote.org/display/forums/Sony+TV+HTTP+control
However it did not work for me, my TV Requires authentication using a 'auth cookie'.

So to get around this, i have found a project on git which allows you to execute commands to your tv via your computer. Credit to (https://blog.yrden.de/2014/11/14/remote-control-bravia-tvs-with-authentication.html)

Essentially you need to run this on your linux or mac machine which is running the open remote controller, ill outline the steps below.

In your Terminal, move to the root of your user directory, i.e. cd /Users/JohnSmith
Then execute
git clone https://github.com/breunigs/bravia-auth-and-remote
rename the folder that is created to 'bravia-ipctrl'

Then move into that directory, then edit the file auth.sh
You need to add your TV's IP into the script, also you should add a nickname for the controller. (Im doing this from memory, i think there are 2 fields where you have to change the name.)
Then save and quit.
You then will need to make the file auth.sh executable, run the command
sudo chmod +x auth.sh
Then execute ./auth.sh to execute the script.
The script will then register your computer with your TV, you will have to enter the PIN that is displayed on the TV into the script.
Once thats complete, you can look inside the file auth_cookie. This is your authentication key which registers you with the TV.
Next thing to do is to run the file print_ircc_codes.sh you might have to make it executable like before (sudo chmod +x print_ircc_codes.sh)

This will then print out all of the commands that will work with your TV. For reference it will be useful to copy and paste this into a word doc, you will need them later.
Now you have a list of commands that will work on the TV, your computer is also registered, its worth testing that this side of things actually works...

To do this make the file send_command.sh executable (sudo chmod +x send_command.sh)
Then execute (replace 192.168.0.0 AAAAAgAAABoAAAB8Aw== with your TV IP, and replace with the actual command code you want.
./send_command.sh 192.168.0.0 AAAAAgAAABoAAAB8Aw==

With a bit of luck your tv will do the command you sent In this instance it should open Netflix.

So now that is done, you can now move to making open remote use this, its a really simple process but will have to be repeated for each command you might want to send.

In open remote, create a new device, then add a New Command, this command should be a shell execution protocol.

Set the path to: /Users/JohnSmith/bravia-ipctrl/send_command.sh

Then set the command protocol to (replace 192.168.0.0 with your tv IP and replace AAAAAgAAABoAAAB8Aw== with the command you want to send):
192.168.0.0 AAAAAgAAABoAAAB8Aw==

And voila! That should work well Also i use the WOL command to switch on the TV.

Hello Guy,

I plan to buy a new TV but i want to be sure i can use it with open remote (not IR!!!)
Wich serie/model is yours?

Thanx

Posted by baloutre at Jul 26, 2015 19:47
Document generated by Confluence on Jun 05, 2016 09:34