Home Automation Fun and Games

Sony TV Stuff

It's necessary to register your computer with the TV in order to use it. You may also need to turn on IPCC. Also, "later" TVs are needed for this; specifics are not really something I care to dig up. I have a 70" 4K TV and this works so far.

  • Get your TV and the device meant to control it, onto the same network segment.
  • You power up the TV by sending a wake-on-lan packet to its MAC address. You'll need to use the Systems Information screen to get that.
  • All other controls are done via the TV's IP address, using HTTP.

Get the list of commands

  • curl --silent -XPOST http://192.168.1.6/sony/system -d '{"method":"getRemoteControllerInfo","params":[],"id":10,"version":"1.0"}' | python -m json.tool

Send a command

You'll need to use the list of commands from above, if you want the TV to do anything for you.
  • curl -w "%{http_code}" --silent -XPOST http://$1/sony/IRCC -d "$cmd" -H 'Content-Type: text/xml; charset=UTF-8' -H 'SOAPACTION: "urn:schemas-sony-com:service:IRCC:1#X_SendIRCC"' -H "X-Auth-PSK: 0000"

Reference Material

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2016-05-03 - SeanNewton
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback