Difference between revisions of "Install Bravia"

From xPL
Jump to: navigation, search
(Set-up the TV)
Line 10: Line 10:
 
= Set-up the TV =
 
= Set-up the TV =
  
Controlling the TV requires a mix of its
+
Controlling the TV requires a mix of its:
 
* IP address
 
* IP address
 
* device name
 
* device name
 
* device id
 
* device id
* PIN
+
* PIN (entered at setup time)
 
* Pre-Shared Key (PSK)
 
* Pre-Shared Key (PSK)
  
 
== Check the settings ==
 
== Check the settings ==
  
Install <code>pip</code> if it isn't done yet
+
Install <code>pip</code> if it isn't done yet:
 
  su
 
  su
 
  which pip
 
  which pip

Revision as of 12:13, 8 February 2018

The Sony Bravia series are powered by Android.

Different python packages allow to control the TV from a PC:

Set-up the TV

Controlling the TV requires a mix of its:

  • IP address
  • device name
  • device id
  • PIN (entered at setup time)
  • Pre-Shared Key (PSK)

Check the settings

Install pip if it isn't done yet:

su
which pip
easy_install pip
exit

Download Bravia Console.

cd /tmp/
cp ~/Downloads/bravia_console-master.zip .
unzip bravia_console-master.zip
sudo pip install requests
./bravia_console.py
  > exit

The console interface shows how to set-up the Pre-Shared Key (PSK). Edit bravia_console.py to match the script to your PSK:

self.psk = "0000"

Connect to the TV:

./bravia_console.py
  > show info
  > show commands
  > hdmi1
  > poweroff
  > tvpower

Change input source:

./bravia_console.py -c hdmi2 > /dev/null
./bravia_console.py -c hdmi1 > /dev/null