Darren
I carried out the instructions below after first testing that I couldn’t access the TV via a browser using the above commands. These are from an iRule website that gives a guide on how to communicate with Sony Bravia TVs.
2. Install Simple Rest Client (https://chrome.google.com/webstore/detail/simple-rest-client/fhjcajmcbmldlhcimfajhfbgofnpcjmb)
3. Once Simple Rest Client is installed you should see uta blue globe looking icon to the right of the URL field in Chrome. Click on that icon.
4. In the URL field of the REST Client, type in http://192.168.1.31/sony/accessControl where you replace 192.168.1.31 with IP address of your TV.
5. Click on POST.
6. In the DATA field paste {"id":13,"method":"actRegister","version":"1.0","params":[{"clientid":"iRule:1","nickname":"iRule"},[{"clientid":"iRule:1","value":"yes","nickname":"iRule","function":"WOL"}]]}
7. Hit SEND. You should see a message on TV pop-up with PIN code and a Username and Password message pop-up in the Browser. Leave Username blank and in password field put in the PIN code that is displayed on TV.
I got the PIN from the screen, entered it and got a response (below). Does this mean that we have to carry out something similar to get control using Loxone?
STATUS: 200 OK
HEADERS: Access-Control-Allow-Origin: chrome-extension://fhjcajmcbmldlhcimfajhfbgofnpcjmb
Access-Control-Allow-Credentials: true
Connection: keep-alive
Content-Length: 21
Content-Type: application/json
DATA: {"result":[],"id":13}
I moved to Loxone Config and entered these details into a virtual output I made for the Sony Bravia:
Address: http://192.168.1.138/sony/IRCC
I also tried using this without the ‘sony/‘ bit (as outlined in one of the guides).
I then made a virtual output command for volume + and entered these details into Command for ON initially:
<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:X_SendIRCC xmlns:u="urn:schemas-sony-com:service:IRCC:1"><IRCCCode>AAAAAQAAAAEAAAASAw==</IRCCCode></u:X_SendIRCC></s:Body></s:Envelope>
I then used smaller sections of the code in both ‘command for ON’ and ‘HTTP Post command for ON’:
<IRCCCode>AAAAAQAAAAEAAAASAw==</IRCCCode>
AAAAAQAAAAEAAAASAw==
I made a virtual input to trigger the commands from my iPhone. None of the above actually changed the volume on the TV.
I also have another set of serial strings from a Crestron module, they do not look anything like those used above.
HDMI1 - *SCINPT0000000100000001
DPAD Up - *SCIRCC0000000000000114
DPAD Down - *SCIRCC0000000000000115
DPAD Enter - *SCIRCC0000000000000113
I have tried sending these commands using a virtual output with a combination of these settings:
Address: http://192.168.0.100/
Command for On: *SCINPT0000000100000001
HTTP extensions for On: *SCINPT0000000100000001
HTTP post command for On: *SCINPT0000000100000001
HTTP method for On: GET
None of these has worked, does anyone know where I am going wrong?
I would be very interested in the details to achieve this.
Thanks
James
Power On *SCPOWR0000000000000001
Power Off *SCPOWR0000000000000000
Get Power Status *SEPOWR################
Input TV *SCINPT0000000000000000
Input HDMI1 *SCINPT0000000100000001
Input HDMI2 *SCINPT0000000100000002
Input HDMI3 *SCINPT0000000100000003
Input HDMI4 *SCINPT0000000100000004
Vol Mute On *SCAMUT0000000000000001
Vol Mute Off *SCAMUT0000000000000001
Vol Mute Status *SEAMUT################
Vol + *SCIRCC0000000000000030
Vol - *SCIRCC0000000000000031
DPAd UP *SCIRCC0000000000000114
DPAd DOWN *SCIRCC0000000000000115
DPAd Left *SCIRCC0000000000000116
DPAd Right *SCIRCC0000000000000117
DPAd OK *SCIRCC0000000000000113
Netflix *SCIRCC0000000000000056
Number 1 *SCIRCC0000000000000018
Number 2 *SCIRCC0000000000000019
Number 3 *SCIRCC0000000000000020
Number 4 *SCIRCC0000000000000021
Number 5 *SCIRCC0000000000000022
Number 6 *SCIRCC0000000000000023
Number 7 *SCIRCC0000000000000024
Number 8 *SCIRCC0000000000000025
Number 9 *SCIRCC0000000000000026
Number 0 *SCIRCC0000000000000027
Channel + *SCIRCC0000000000000033
Channel - *SCIRCC0000000000000033
Home *SCIRCC0000000000000006
Play *SCIRCC0000000000000077
Rewind *SCIRCC0000000000000078
Prev *SCIRCC0000000000000078
Stop *SCIRCC0000000000000080
Next *SCIRCC0000000000000081
Record *SCIRCC0000000000000082
Pause *SCIRCC0000000000000083
Up *SCIRCC0000000000000009
Down *SCIRCC0000000000000010
Right *SCIRCC0000000000000011
Left *SCIRCC0000000000000012
Confirm *SCIRCC0000000000000013
Red *SCIRCC0000000000000014
Green *SCIRCC0000000000000015
Yellow *SCIRCC0000000000000016
Blue *SCIRCC0000000000000017
Return (back?) *SCIRCC0000000000000008
As you add the commands they become available in the Media Controller for use in there or anywhere else in the config.
Also could you let me know if using commands over IP is noticeably quicker than IR? When I want to go to HDMI1 for example using Loxone is way quicker than using the remote control.
Can someone share a template for a Sony TV?
HTH,
Robin